[hyena/gtk3] Mark some methods as obsolete in GtkColors and GtkUtilities



commit dfe49c64e6a7c16888bf90b4be113a44af72162e
Author: Olivier Dufour <olivier duff gmail com>
Date:   Sat Jul 9 14:31:04 2011 +0200

    Mark some methods as obsolete in GtkColors and GtkUtilities
    
    They should probably be removed, but we're keeping them for now to get
    things to build.
    
    Signed-off-by: Bertrand Lorentz <bertrand lorentz gmail com>

 Hyena.Gui/Hyena.Gui.Theming/GtkColors.cs |    1 +
 Hyena.Gui/Hyena.Gui/GtkUtilities.cs      |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Gui.Theming/GtkColors.cs b/Hyena.Gui/Hyena.Gui.Theming/GtkColors.cs
index e278155..1dceedd 100644
--- a/Hyena.Gui/Hyena.Gui.Theming/GtkColors.cs
+++ b/Hyena.Gui/Hyena.Gui.Theming/GtkColors.cs
@@ -87,6 +87,7 @@ namespace Hyena.Gui.Theming
             RefreshColors ();
         }
 
+        [Obsolete ("Use StyleContext to take advantage of the theming infrastructure in GTK+")]
         public Cairo.Color GetWidgetColor (GtkColorClass @class, StateType state)
         {
             if (gtk_colors == null) {
diff --git a/Hyena.Gui/Hyena.Gui/GtkUtilities.cs b/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
index ab61abd..c5b9d34 100644
--- a/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
+++ b/Hyena.Gui/Hyena.Gui/GtkUtilities.cs
@@ -119,6 +119,7 @@ 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;
@@ -126,6 +127,7 @@ namespace Hyena.Gui
             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);



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