From 5041985799b38cacf845c83ec4a9170e67707a12 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Mon, 16 Feb 2009 22:19:36 +0000 Subject: Replace deprecated GTK symbols svn path=/trunk/; revision=6707 --- gui/simple-greeter/libnotificationarea/obox.c | 4 ++-- gui/user-switch-applet/applet.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'gui') diff --git a/gui/simple-greeter/libnotificationarea/obox.c b/gui/simple-greeter/libnotificationarea/obox.c index 96e4265c..526ce026 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 d382358d..539814f2 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: -- cgit v1.2.1