[gdm: 47/70] Replace deprecated GTK symbols



commit 5041985799b38cacf845c83ec4a9170e67707a12
Author: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
Date:   Mon Feb 16 22:19:36 2009 +0000

    Replace deprecated GTK symbols
    
    svn path=/trunk/; revision=6707
---
 ChangeLog                                     |    6 ++++++
 gui/simple-greeter/libnotificationarea/obox.c |    4 ++--
 gui/user-switch-applet/applet.c               |    2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 74fb36a..62e6750 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-16  Thomas H.P. Andersen  <phomes gmail com>
+
+	* gui/user-switch-applet/applet.c: (applet_change_background_cb):
+	* gui/simple-greeter/libnotificationarea/obox.c: (get_class):
+	Replace deprected GTK symbols. Bug #561956
+
 2009-02-11  Ray Strode  <rstrode redhat com>
 
 	* gui/simple-greeter/gdm-language-option-widget.c
diff --git a/gui/simple-greeter/libnotificationarea/obox.c b/gui/simple-greeter/libnotificationarea/obox.c
index 96e4265..526ce02 100644
--- a/gui/simple-greeter/libnotificationarea/obox.c
+++ b/gui/simple-greeter/libnotificationarea/obox.c
@@ -73,10 +73,10 @@ get_class (NaOBox *obox)
   switch (obox->orientation)
     {
     case GTK_ORIENTATION_HORIZONTAL:
-      klass = GTK_WIDGET_CLASS (gtk_type_class (GTK_TYPE_HBOX));
+      klass = GTK_WIDGET_CLASS (g_type_class_peek (GTK_TYPE_HBOX));
       break;
     case GTK_ORIENTATION_VERTICAL:
-      klass = GTK_WIDGET_CLASS (gtk_type_class (GTK_TYPE_VBOX));
+      klass = GTK_WIDGET_CLASS (g_type_class_peek (GTK_TYPE_VBOX));
       break;
     default:
       g_assert_not_reached ();
diff --git a/gui/user-switch-applet/applet.c b/gui/user-switch-applet/applet.c
index d382358..539814f 100644
--- a/gui/user-switch-applet/applet.c
+++ b/gui/user-switch-applet/applet.c
@@ -316,7 +316,7 @@ applet_change_background_cb (PanelApplet               *applet,
         gtk_widget_set_style (adata->menubar, NULL);
         rc_style = gtk_rc_style_new ();
         gtk_widget_modify_style (GTK_WIDGET (adata->menubar), rc_style);
-        gtk_rc_style_unref (rc_style);
+        g_object_unref (rc_style);
 
         switch (type) {
         case PANEL_NO_BACKGROUND:



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