[meld] preferences: Fix bad super() calls and remove init_template calls
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] preferences: Fix bad super() calls and remove init_template calls
- Date: Sat, 31 Aug 2019 02:05:49 +0000 (UTC)
commit 85a3113f947f3faf876fde78ab9cf51575065c01
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Aug 31 08:47:17 2019 +1000
preferences: Fix bad super() calls and remove init_template calls
`init_template()` was a backwards compatibility hack that has some
issues with being called manually in current pygobject.
meld/preferences.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/meld/preferences.py b/meld/preferences.py
index 14d3b1be..ee6e3411 100644
--- a/meld/preferences.py
+++ b/meld/preferences.py
@@ -60,8 +60,7 @@ class FilterList(Gtk.Box, EditableListWidget):
)
def __init__(self, **kwargs):
- super().__init__(self, **kwargs)
- FilterList.init_template(self)
+ super().__init__(**kwargs)
self.model = self.treeview.get_model()
self.pattern_column.set_cell_data_func(
@@ -150,8 +149,7 @@ class ColumnList(Gtk.VBox, EditableListWidget):
)
def __init__(self, **kwargs):
- super().__init__(self, **kwargs)
- ColumnList.init_template(self)
+ super().__init__(**kwargs)
self.model = self.treeview.get_model()
# Unwrap the variant
@@ -291,7 +289,6 @@ class PreferencesDialog(Gtk.Dialog):
def __init__(self, **kwargs):
super().__init__(**kwargs)
- self.init_template()
bindings = [
('use-system-font', self.checkbutton_default_font, 'active'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]