Various PyGObject fixes
authorPhilip Chimento <philip.chimento@gmail.com>
Sat, 25 Aug 2012 22:52:09 +0000 (00:52 +0200)
committerPhilip Chimento <philip.chimento@gmail.com>
Sat, 25 Aug 2012 22:52:09 +0000 (00:52 +0200)
player/player.py

index 8528f9e9a5412b26f3a89664b35d8ecbf5c0d749..8437458880fae3ae0886774fbdc094aaf123c78a 100644 (file)
@@ -53,7 +53,7 @@ class Player(GObject.GObject):
 
         uimanager = Gtk.UIManager()
         uimanager.add_ui_from_file('chimara.menus')
-        uimanager.insert_action_group(actiongroup, 0)
+        uimanager.insert_action_group(actiongroup)
         menubar = uimanager.get_widget('/menubar')
         toolbar = uimanager.get_widget('/toolbar')
         toolbar.no_show_all = True
@@ -66,8 +66,7 @@ class Player(GObject.GObject):
         accels = uimanager.get_accel_group()
         self.window.add_accel_group(accels)
 
-        self.glk = Chimara.IF()
-        self.glk.props.ignore_errors = True
+        self.glk = Chimara.IF(ignore_errors=True)
         css_file = _maybe(self.prefs_settings.get_value('css-file'))
         if css_file is None:
             css_file = 'style.css'
@@ -256,11 +255,11 @@ class Player(GObject.GObject):
             self.glk.graphics_file = blorbfile
 
     # Various signal handlers for GtkBuilder file
-    def gtk_widget_hide(self, *args):
-        return Gtk.Widget.hide(*args)
+    def gtk_widget_hide(self, widget, *args):
+        return Gtk.Widget.hide(widget)
 
-    def gtk_widget_hide_on_delete(self, *args):
-        return Gtk.Widget.hide_on_delete(*args)
+    def gtk_widget_hide_on_delete(self, widget, *args):
+        return Gtk.Widget.hide_on_delete(widget)
 
     def dummy_handler(self, *args):
         pass