3108: Cannot iterate through/with popup menu on active person's individual events\n and missing embedlist method
svn: r12829
This commit is contained in:
parent
f979f8ee63
commit
b59199e3c3
@ -477,3 +477,12 @@ class EmbeddedList(ButtonTab):
|
||||
|
||||
def post_rebuild(self):
|
||||
pass
|
||||
|
||||
def rebuild_callback(self):
|
||||
"""
|
||||
The view must be remade when data changes outside this tab.
|
||||
Use this method to connect to after a db change. It makes sure the
|
||||
data is obtained again from db and the view rebuild
|
||||
"""
|
||||
self.changed = True
|
||||
self.rebuild()
|
||||
|
@ -204,7 +204,7 @@ class EventEmbedList(GroupEmbeddedList):
|
||||
|
||||
def get_popup_menu_items(self):
|
||||
if self._tmpgroup == self._WORKGROUP:
|
||||
GroupEmbeddedList.get_popup_menu_items(self)
|
||||
return GroupEmbeddedList.get_popup_menu_items(self)
|
||||
else:
|
||||
return [
|
||||
(True, True, gtk.STOCK_ADD, self.add_button_clicked),
|
||||
|
Loading…
Reference in New Issue
Block a user