diff options
author | Denis Fomin <fominde@gmail.com> | 2013-07-30 23:00:27 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2013-07-30 23:00:27 +0400 |
commit | de2383407c0b84255f96a56a75260189fe784f85 (patch) | |
tree | a728ddb7f3c3f187426758468f7a8a07d828a05b /src/plugins | |
parent | 1b9e079826a438217ceee28d992015f204fa46d6 (diff) |
GObject -> GLib
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gui.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/gui.py b/src/plugins/gui.py index 0f3fe8471..c9ab6abe6 100644 --- a/src/plugins/gui.py +++ b/src/plugins/gui.py @@ -29,7 +29,7 @@ __all__ = ['PluginsWindow'] from gi.repository import Pango from gi.repository import Gtk from gi.repository import GdkPixbuf -from gi.repository import GObject +from gi.repository import GLib import os import gtkgui_helpers @@ -68,8 +68,7 @@ class PluginsWindow(object): for widget_name in widgets_to_extract: setattr(self, widget_name, self.xml.get_object(widget_name)) - self.installed_plugins_model = Gtk.ListStore(GObject.TYPE_PYOBJECT, - GObject.TYPE_STRING, GObject.TYPE_BOOLEAN, GObject.TYPE_BOOLEAN, + self.installed_plugins_model = Gtk.ListStore(object, str, bool, bool, GdkPixbuf.Pixbuf) self.installed_plugins_treeview.set_model(self.installed_plugins_model) self.installed_plugins_treeview.set_rules_hint(True) @@ -117,7 +116,7 @@ class PluginsWindow(object): def on_plugins_notebook_switch_page(self, widget, page, page_num): - GObject.idle_add(self.xml.get_object('close_button').grab_focus) + GLib.idle_add(self.xml.get_object('close_button').grab_focus) @log_calls('PluginsWindow') def installed_plugins_treeview_selection_changed(self, treeview_selection): |