[gnome-tweak-tool] Drop gconf support



commit 69fc6069f546e9178b7949aac6934b5453f9767a
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Sun Jul 14 12:25:35 2013 -0400

    Drop gconf support
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704202

 configure.ac      |    5 ---
 gtweak/gconf.py   |   81 -----------------------------------------------------
 gtweak/utils.py   |    3 --
 gtweak/widgets.py |   45 -----------------------------
 4 files changed, 0 insertions(+), 134 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b60f22b..574bf88 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,11 +12,6 @@ PKG_CHECK_MODULES([GSETTINGS_DESKTOP_SCHEMAS], [gsettings-desktop-schemas >= $DE
 PKG_CHECK_MODULES([PYGOBJECT3], [pygobject-3.0 >= $PYGOBJECT_REQUIRED_VERSION],,
     [PKG_CHECK_MODULES([PYGOBJECT2], [pygobject-2.0 >= 2.28.0])])
 
-AC_CHECK_PROG(GCONFTOOL,gconftool-2,gconftool-2,no)
-if test "$GCONFTOOL" = no ; then
-       AC_MSG_ERROR(Cannot find gconftool-2)
-fi
-
 IT_PROG_INTLTOOL([0.40.0])
 AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([0.17])
diff --git a/gtweak/utils.py b/gtweak/utils.py
index d3e5411..7d72b77 100644
--- a/gtweak/utils.py
+++ b/gtweak/utils.py
@@ -23,7 +23,6 @@ import subprocess
 
 import gtweak
 from gtweak.gsettings import GSettingsSetting
-from gtweak.gconf import GConfSetting
 
 from gi.repository import GLib
 
@@ -196,8 +195,6 @@ class AutostartManager:
                 if method == "GSettings":
                     schema, key = value.split(" ")
                     GSettingsSetting(schema).set_boolean(key, update)
-                elif method == "GNOME":
-                    GConfSetting(shema, bool).set_value(update)
                 else:
                     raise Exception("Method not supported")
             except:
diff --git a/gtweak/widgets.py b/gtweak/widgets.py
index df44027..afd0fae 100644
--- a/gtweak/widgets.py
+++ b/gtweak/widgets.py
@@ -23,7 +23,6 @@ from gi.repository import GLib, Gtk, Gdk, Gio, Pango
 from gtweak.tweakmodel import Tweak
 from gtweak.gsettings import GSettingsSetting, GSettingsFakeSetting, GSettingsMissingError
 from gtweak.gtksettings import GtkSettingsManager
-from gtweak.gconf import GConfSetting
 from gtweak.gshellwrapper import GnomeShellFactory
 
 UI_BOX_SPACING = 4
@@ -288,50 +287,6 @@ class GSettingsComboTweak(_GSettingsTweak):
             value = combo.get_model().get_value(_iter, 0)
             self.settings.set_string(self.key_name, value)
 
-class _GConfTweak(Tweak):
-    def __init__(self, key_name, key_type, **options):
-        self.gconf = GConfSetting(key_name, key_type)
-        Tweak.__init__(self,
-            options.get("summary",self.gconf.schema_get_summary()),
-            options.get("description",self.gconf.schema_get_description()),
-            **options)
-
-class GConfComboTweak(_GConfTweak):
-    def __init__(self, key_name, key_type, key_options, **options):
-        _GConfTweak.__init__(self, key_name, key_type, **options)
-
-        #check key_options is iterable
-        #and if supplied, check it is a list of 2-tuples
-        assert len(key_options) >= 0
-        if len(key_options):
-            assert len(key_options[0]) == 2
-
-        combo = build_combo_box_text(
-            self.gconf.get_value(),
-            *key_options)
-        combo.connect('changed', self._on_combo_changed)
-        self.widget = build_label_beside_widget(self.name, combo)
-        self.widget_for_size_group = combo
-
-    def _on_combo_changed(self, combo):
-        _iter = combo.get_active_iter()
-        if _iter:
-            value = combo.get_model().get_value(_iter, 0)
-            self.gconf.set_value(value)
-
-class GConfFontButtonTweak(_GConfTweak):
-    def __init__(self, key_name, key_type, **options):
-        _GConfTweak.__init__(self, key_name, key_type, **options)
-
-        w = Gtk.FontButton()
-        w.props.font_name = self.gconf.get_value()
-        w.connect("notify::font-name", self._on_fontbutton_changed)
-        self.widget = build_label_beside_widget(self.name, w)
-        self.widget_for_size_group = w
-
-    def _on_fontbutton_changed(self, btn, param):
-        self.gconf.set_value(btn.props.font_name)
-
 class FileChooserButton(Gtk.FileChooserButton):
     def __init__(self, title, local_only, mimetypes):
         Gtk.FileChooserButton.__init__(self, title=title)


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