summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <thomashpa@src.gnome.org>2009-02-16 22:19:36 +0000
committerThomas Hindoe Paaboel Andersen <thomashpa@src.gnome.org>2009-02-16 22:19:36 +0000
commit5041985799b38cacf845c83ec4a9170e67707a12 (patch)
tree2970666d93a01f0606b1d38380ac3aa07cb08a00 /gui
parent7102a122b16a48bca50b6e1d86c61846e2b8e677 (diff)
downloadgdm-5041985799b38cacf845c83ec4a9170e67707a12.tar.gz
Replace deprecated GTK symbols
svn path=/trunk/; revision=6707
Diffstat (limited to 'gui')
-rw-r--r--gui/simple-greeter/libnotificationarea/obox.c4
-rw-r--r--gui/user-switch-applet/applet.c2
2 files changed, 3 insertions, 3 deletions
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: