Suppress sub-palettes in radiopalette

This commit is contained in:
Aleksey Lim
2009-07-29 16:15:38 +00:00
parent e5a701a1e6
commit 2655a8ccad
3 changed files with 16 additions and 14 deletions
+4 -6
View File
@@ -1061,16 +1061,14 @@ def share_button(activity, **kwargs):
palette = RadioPalette()
private = RadioToolButton(
icon_name='zoom-home',
tooltip=_('Private'))
palette.append(private)
icon_name='zoom-home')
palette.append(private, _('Private'))
neighborhood = RadioToolButton(
icon_name='zoom-neighborhood',
group=private,
tooltip=_('My Neighborhood'))
group=private)
neighborhood.connect('clicked', neighborhood_cb)
palette.append(neighborhood)
palette.append(neighborhood, _('My Neighborhood'))
def update_share():
neighborhood.handler_block_by_func(neighborhood_cb)