aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-02-07 11:11:52 -0600
committerTed Gould <ted@gould.cx>2012-02-07 11:11:52 -0600
commit0d10a8e683b76a3bdb245c0f068027a757be12d4 (patch)
tree5aa983e81b5a21ce95f34cbcc9c285c7805d1fbf
parente9987ce4005173f81f177b3151208e5f749e7f7c (diff)
downloadayatana-indicator-session-0d10a8e683b76a3bdb245c0f068027a757be12d4.tar.gz
ayatana-indicator-session-0d10a8e683b76a3bdb245c0f068027a757be12d4.tar.bz2
ayatana-indicator-session-0d10a8e683b76a3bdb245c0f068027a757be12d4.zip
If we have GTK3 use the new gtk_box_new() function not the deprecated one
-rw-r--r--src/user-widget.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/user-widget.c b/src/user-widget.c
index 937a9eb..88ac11c 100644
--- a/src/user-widget.c
+++ b/src/user-widget.c
@@ -136,7 +136,11 @@ user_widget_init (UserWidget *self)
gtk_misc_set_padding (GTK_MISC(priv->user_image),0, 4.0);
priv->user_name = gtk_label_new ("");
+#if HAVE_GTK3
+ priv->container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+#else
priv->container = gtk_hbox_new (FALSE, 0);
+#endif
priv->tick_icon = gtk_image_new_from_icon_name ("account-logged-in",
GTK_ICON_SIZE_MENU);
gtk_misc_set_alignment(GTK_MISC(priv->tick_icon), 1.0, 0.5);