[hyena/gtk3] GtkUtilities: Remove obsolete and unused AdaptGtkRcStyle methods



commit 40cc872bb869476b12ad18adf9ba9d7ba19a774b
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Fri Jul 15 22:06:58 2011 +0200

    GtkUtilities: Remove obsolete and unused AdaptGtkRcStyle methods

 Hyena.Gui/Hyena.Gui/GtkUtilities.cs |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Gui/GtkUtilities.cs b/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
index d480e09..96dbf86 100644
--- a/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
+++ b/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
@@ -114,32 +114,6 @@ namespace Hyena.Gui
             return color;
         }
 
-        [Obsolete ("Use StyleContext to take advantage of the theming infrastructure in GTK+")]
-        public static void AdaptGtkRcStyle (Widget adaptee, Type adapter)
-        {
-            GLib.GType type = (GLib.GType)adapter;
-            string path = String.Format ("*.{0}", type);
-            AdaptGtkRcStyle (adaptee, type, path, path);
-        }
-
-        [Obsolete ("Use StyleContext to take advantage of the theming infrastructure in GTK+")]
-        public static void AdaptGtkRcStyle (Widget adaptee, GLib.GType adapter, string widgetPath, string classPath)
-        {
-            Style style = Gtk.Rc.GetStyleByPaths (adaptee.Settings, widgetPath, classPath, adapter);
-            if (style == null) {
-                return;
-            }
-
-            foreach (StateType state in Enum.GetValues (typeof (StateType))) {
-                adaptee.ModifyBase (state, style.Base (state));
-                adaptee.ModifyBg (state, style.Background (state));
-                adaptee.ModifyFg (state, style.Foreground (state));
-                adaptee.ModifyText (state, style.Text (state));
-                //adaptee.OverrideColor (state, style.Foreground (state));
-                //adaptee.ModifyText (state, style.Text (state));
-            }
-        }
-
         public static T StyleGetProperty<T> (Widget widget, string property, T default_value)
         {
             object result = null;



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