summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-10 20:29:47 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-10 20:29:47 +0100
commitb57cfccec02400b470670c988adda6e99fe7a18f (patch)
treef14e4a11eda01f3785af455bfed6deedea483274 /src
parentecc616fc774a3bf576283cd291fc6cc5d7400a77 (diff)
downloadmate-screensaver-b57cfccec02400b470670c988adda6e99fe7a18f.tar.bz2
mate-screensaver-b57cfccec02400b470670c988adda6e99fe7a18f.tar.xz
GTK3: don't use deprecated gtk_button_box_new
Diffstat (limited to 'src')
-rw-r--r--src/gs-lock-plug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index e31163c..3387f29 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -1993,7 +1993,11 @@ create_page_one (GSLockPlug *plug)
gtk_box_pack_start (GTK_BOX (vbox), plug->priv->auth_message_label,
FALSE, FALSE, 0);
/* Buttons */
+#if GTK_CHECK_VERSION(3, 0, 0)
+ plug->priv->auth_action_area = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
+#else
plug->priv->auth_action_area = gtk_hbutton_box_new ();
+#endif
gtk_button_box_set_layout (GTK_BUTTON_BOX (plug->priv->auth_action_area),
GTK_BUTTONBOX_END);