diff options
author | Simon Schampijer <simon@laptop.org> | 2012-09-03 16:25:26 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2012-09-07 09:14:25 (GMT) |
commit | 58c184d2d1ea26ecf6cf80dd4fc03a8e0a345222 (patch) | |
tree | c1b18cb208645f097a6b7b8a75be9b49ac173896 /src/jarabe/desktop/activitieslist.py | |
parent | 0f7952c4e587c2ff4dfdd2c2e06cfce6202ce83f (diff) |
All: Chain up to constructor of derived class
The pygi-convert.sh script does replace the chaining to the
constructor of the derived class and chains up to the GObject
constructor, those introduced missing imports and a few more
issues with arguments passing.
In general it is clearer to chain up to the constructor of
the derived class so while fixing the issues introduced by the
script we did switch to that behavior in all of the shell.
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'src/jarabe/desktop/activitieslist.py')
-rw-r--r-- | src/jarabe/desktop/activitieslist.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jarabe/desktop/activitieslist.py b/src/jarabe/desktop/activitieslist.py index 6afb916..5caa855 100644 --- a/src/jarabe/desktop/activitieslist.py +++ b/src/jarabe/desktop/activitieslist.py @@ -46,7 +46,7 @@ class ActivitiesTreeView(Gtk.TreeView): } def __init__(self): - GObject.GObject.__init__(self) + Gtk.TreeView.__init__(self) self._query = '' @@ -170,7 +170,7 @@ class ListModel(Gtk.TreeModelSort): def __init__(self): self._model = Gtk.ListStore(str, bool, str, str, str, str, int, str) self._model_filter = self._model.filter_new() - GObject.GObject.__init__(self, self._model_filter) + Gtk.TreeModelSort.__init__(self, self._model_filter) GObject.idle_add(self.__connect_to_bundle_registry_cb) @@ -302,7 +302,7 @@ class ActivitiesList(Gtk.VBox): def __init__(self): logging.debug('STARTUP: Loading the activities list') - GObject.GObject.__init__(self) + Gtk.VBox.__init__(self) scrolled_window = Gtk.ScrolledWindow() scrolled_window.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC) |