Commit 0308eca9 authored by Kai Willadsen's avatar Kai Willadsen

Don't rely on the default argument for UIManager.insert_action_group()

The existing code relies on the default value of the pos argument, but the
default was added after pygtk 2.12. For compatibility with earlier versions of
pygtk, add the pos argument here.

Patch contributed by Andrew Beyer.

svn path=/trunk/; revision=1218
parent c8fcddea
......@@ -267,7 +267,7 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
def on_container_switch_in_event(self, ui):
melddoc.MeldDoc.on_container_switch_in_event(self, ui)
ui.insert_action_group(self.filter_actiongroup, -1)
self.custom_merge_id = ui.new_merge_id()
for x in self.filter_ui:
ui.add_ui(self.custom_merge_id, *x)
......@@ -116,7 +116,7 @@ class MeldDoc(gobject.GObject):
"""Called when the container app switches to this tab.
self.ui_merge_id = uimanager.add_ui_from_file(self.ui_file)
uimanager.insert_action_group(self.actiongroup, -1)
self.popup_menu = uimanager.get_widget("/Popup")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment