gdm r6707 - in trunk: . gui/simple-greeter/libnotificationarea gui/user-switch-applet



Author: thomashpa
Date: Mon Feb 16 22:19:36 2009
New Revision: 6707
URL: http://svn.gnome.org/viewvc/gdm?rev=6707&view=rev

Log:
Replace deprecated GTK symbols

Modified:
   trunk/ChangeLog
   trunk/gui/simple-greeter/libnotificationarea/obox.c
   trunk/gui/user-switch-applet/applet.c

Modified: trunk/gui/simple-greeter/libnotificationarea/obox.c
==============================================================================
--- trunk/gui/simple-greeter/libnotificationarea/obox.c	(original)
+++ trunk/gui/simple-greeter/libnotificationarea/obox.c	Mon Feb 16 22:19:36 2009
@@ -73,10 +73,10 @@
   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 ();

Modified: trunk/gui/user-switch-applet/applet.c
==============================================================================
--- trunk/gui/user-switch-applet/applet.c	(original)
+++ trunk/gui/user-switch-applet/applet.c	Mon Feb 16 22:19:36 2009
@@ -316,7 +316,7 @@
         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]