Disable remove activity in the frame, #4773

This commit is contained in:
Reinier Heeres 2007-11-20 14:04:19 +01:00
parent 070c90a2df
commit 7211a62c5c

View File

@ -54,11 +54,12 @@ class ActivityButton(TrayButton, gobject.GObject):
self.set_palette(palette)
palette.props.invoker = FrameWidgetInvoker(self)
if os.path.dirname(self._activity_info.path) == os.path.expanduser('~/Activities'):
menu_item = gtk.MenuItem(_('Remove'))
menu_item.connect('activate', self.item_remove_cb)
palette.menu.append(menu_item)
menu_item.show()
#TODO: Disabled this until later, see #4967
# if os.path.dirname(self._activity_info.path) == os.path.expanduser('~/Activities'):
# menu_item = gtk.MenuItem(_('Remove'))
# menu_item.connect('activate', self.item_remove_cb)
# palette.menu.append(menu_item)
# menu_item.show()
def item_remove_cb(self, widget):
self.emit('remove_activity')