[meld] preferences: Remove now-unused prefs arg



commit 8e0a2e3a8aebb19bccf3122d6c2bd9d7682f72d6
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Fri Dec 6 08:02:22 2013 +1000

    preferences: Remove now-unused prefs arg

 meld/meldapp.py     |    3 +--
 meld/preferences.py |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/meld/meldapp.py b/meld/meldapp.py
index 920f68f..6b19adb 100644
--- a/meld/meldapp.py
+++ b/meld/meldapp.py
@@ -90,8 +90,7 @@ class MeldApp(Gtk.Application):
     #     return response
 
     def preferences_callback(self, action, parameter):
-        meld.preferences.PreferencesDialog(self.get_active_window(),
-                                           self.prefs)
+        meld.preferences.PreferencesDialog(self.get_active_window())
 
     def help_callback(self, action, parameter):
         Gtk.show_uri(Gdk.Screen.get_default(), "help:meld",
diff --git a/meld/preferences.py b/meld/preferences.py
index 8e057cd..8ec8771 100644
--- a/meld/preferences.py
+++ b/meld/preferences.py
@@ -165,13 +165,12 @@ class GSettingsBoolComboBox(GSettingsComboBox):
 
 class PreferencesDialog(gnomeglade.Component):
 
-    def __init__(self, parent, prefs):
+    def __init__(self, parent):
         gnomeglade.Component.__init__(self, "preferences.ui",
                                       "preferencesdialog",
                                       ["adjustment1", "adjustment2", "fileorderstore",
                                        "sizegroup_editor", "timestampstore"])
         self.widget.set_transient_for(parent)
-        self.prefs = prefs
 
         bindings = [
             ('use-system-font', self.checkbutton_default_font, 'active'),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]