Index: gui/user-switch-applet/applet.c
===================================================================
--- gui/user-switch-applet/applet.c	(revision 6703)
+++ gui/user-switch-applet/applet.c	(working copy)
@@ -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:
Index: gui/simple-greeter/libnotificationarea/obox.c
===================================================================
--- gui/simple-greeter/libnotificationarea/obox.c	(revision 6703)
+++ gui/simple-greeter/libnotificationarea/obox.c	(working copy)
@@ -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 ();
