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 /extensions | |
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 'extensions')
-rw-r--r-- | extensions/cpsection/modemconfiguration/view.py | 2 | ||||
-rw-r--r-- | extensions/cpsection/updater/view.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/extensions/cpsection/modemconfiguration/view.py b/extensions/cpsection/modemconfiguration/view.py index 6b738af..2fe0a6f 100644 --- a/extensions/cpsection/modemconfiguration/view.py +++ b/extensions/cpsection/modemconfiguration/view.py @@ -32,7 +32,7 @@ class EntryWithLabel(Gtk.HBox): __gtype_name__ = 'SugarEntryWithLabel' def __init__(self, label_text): - GObject.GObject.__init__(self, spacing=style.DEFAULT_SPACING) + Gtk.HBox.__init__(self, spacing=style.DEFAULT_SPACING) self.label = Gtk.Label(label=label_text) self.label.modify_fg(Gtk.StateType.NORMAL, diff --git a/extensions/cpsection/updater/view.py b/extensions/cpsection/updater/view.py index df575ed..a73a5b9 100644 --- a/extensions/cpsection/updater/view.py +++ b/extensions/cpsection/updater/view.py @@ -186,7 +186,7 @@ class ProgressPane(Gtk.VBox): install.""" def __init__(self): - GObject.GObject.__init__(self) + Gtk.VBox.__init__(self) self.set_spacing(style.DEFAULT_PADDING) self.set_border_width(style.DEFAULT_SPACING * 2) @@ -220,7 +220,7 @@ class ProgressPane(Gtk.VBox): class UpdateBox(Gtk.VBox): def __init__(self, model): - GObject.GObject.__init__(self) + Gtk.VBox.__init__(self) self._model = model @@ -295,7 +295,7 @@ class UpdateList(Gtk.TreeView): def __init__(self, model): list_model = UpdateListModel(model) - GObject.GObject.__init__(self, list_model) + Gtk.TreeView.__init__(self, list_model) self.set_reorderable(False) self.set_enable_search(False) @@ -353,7 +353,7 @@ class UpdateListModel(Gtk.ListStore): SIZE = 4 def __init__(self, model): - GObject.GObject.__init__(self, str, bool, str, str, int) + Gtk.ListStore.__init__(self, str, bool, str, str, int) for bundle_update in model.updates: row = [None] * 5 |