Make remove_item take an item instead of an index.
This commit is contained in:
parent
710f3eba00
commit
46b3b96e96
@ -71,6 +71,11 @@ class ActivitiesBox(hippo.CanvasBox):
|
|||||||
for activity_info in activity_list:
|
for activity_info in activity_list:
|
||||||
if activity_info.show_launcher:
|
if activity_info.show_launcher:
|
||||||
self.add_activity(activity_info)
|
self.add_activity(activity_info)
|
||||||
|
self.add_activity(activity_info)
|
||||||
|
self.add_activity(activity_info)
|
||||||
|
self.add_activity(activity_info)
|
||||||
|
self.add_activity(activity_info)
|
||||||
|
self.add_activity(activity_info)
|
||||||
|
|
||||||
def _activity_clicked_cb(self, icon):
|
def _activity_clicked_cb(self, icon):
|
||||||
self._shell.start_activity(icon.get_bundle_id())
|
self._shell.start_activity(icon.get_bundle_id())
|
||||||
|
@ -116,8 +116,7 @@ class HTray(gtk.HBox):
|
|||||||
def add_item(self, item, index=-1):
|
def add_item(self, item, index=-1):
|
||||||
self._viewport.traybar.insert(item, index)
|
self._viewport.traybar.insert(item, index)
|
||||||
|
|
||||||
def remove_item(self, index):
|
def remove_item(self, item):
|
||||||
item = self._viewport.traybar.get_nth_item(index)
|
|
||||||
self._viewport.traybar.remove(item)
|
self._viewport.traybar.remove(item)
|
||||||
|
|
||||||
def get_item_index(self, item):
|
def get_item_index(self, item):
|
||||||
|
Loading…
Reference in New Issue
Block a user