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) self.set_palette(palette)
palette.props.invoker = FrameWidgetInvoker(self) palette.props.invoker = FrameWidgetInvoker(self)
if os.path.dirname(self._activity_info.path) == os.path.expanduser('~/Activities'): #TODO: Disabled this until later, see #4967
menu_item = gtk.MenuItem(_('Remove')) # if os.path.dirname(self._activity_info.path) == os.path.expanduser('~/Activities'):
menu_item.connect('activate', self.item_remove_cb) # menu_item = gtk.MenuItem(_('Remove'))
palette.menu.append(menu_item) # menu_item.connect('activate', self.item_remove_cb)
menu_item.show() # palette.menu.append(menu_item)
# menu_item.show()
def item_remove_cb(self, widget): def item_remove_cb(self, widget):
self.emit('remove_activity') self.emit('remove_activity')