summaryrefslogtreecommitdiff
path: root/src/gs-lock-plug.c
diff options
context:
space:
mode:
authorSorokin Alexei <[email protected]>2016-06-24 22:25:51 +0300
committerSorokin Alexei <[email protected]>2016-06-24 22:25:51 +0300
commit296b0562f1f9c8c65f1578fc36fb57f1d435238d (patch)
tree252bb41d29a09340c52c8dddcf5d4a3bfaced389 /src/gs-lock-plug.c
parent86bc5aaa1a8a4aefee2c675d83da055ea6e913b5 (diff)
downloadmate-screensaver-296b0562f1f9c8c65f1578fc36fb57f1d435238d.tar.bz2
mate-screensaver-296b0562f1f9c8c65f1578fc36fb57f1d435238d.tar.xz
use gtk_box_new instead of gtk_{h,v}box_new properly
Diffstat (limited to 'src/gs-lock-plug.c')
-rw-r--r--src/gs-lock-plug.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c
index 2893714..7dea3c3 100644
--- a/src/gs-lock-plug.c
+++ b/src/gs-lock-plug.c
@@ -82,9 +82,9 @@ static void gs_lock_plug_finalize (GObject *object);
#define GS_LOCK_PLUG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GS_TYPE_LOCK_PLUG, GSLockPlugPrivate))
-#if GTK_CHECK_VERSION (3, 0, 0)
-#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y)
-#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#if !GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_box_new(GTK_ORIENTATION_HORIZONTAL, b) gtk_hbox_new(FALSE, b)
+#define gtk_box_new(GTK_ORIENTATION_VERTICAL, b) gtk_vbox_new(FALSE, b)
#endif
#if !GTK_CHECK_VERSION (3, 20, 0)
@@ -1955,7 +1955,7 @@ create_page_one (GSLockPlug *plug)
gs_profile_start ("page one");
#if GTK_CHECK_VERSION(3, 0, 0)
- vbox = gtk_vbox_new (FALSE, 12);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_widget_set_halign (GTK_WIDGET (vbox),
GTK_ALIGN_CENTER);
gtk_widget_set_valign (GTK_WIDGET (vbox),
@@ -1966,11 +1966,11 @@ create_page_one (GSLockPlug *plug)
align = gtk_alignment_new (0.5, 0.5, 1, 1);
gtk_notebook_append_page (GTK_NOTEBOOK (plug->priv->notebook), align, NULL);
- vbox = gtk_vbox_new (FALSE, 12);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_container_add (GTK_CONTAINER (align), vbox);
#endif
- vbox2 = gtk_vbox_new (FALSE, 0);
+ vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (vbox), vbox2, FALSE, FALSE, 0);
str = g_strdup ("<span size=\"xx-large\" weight=\"ultrabold\">%s</span>");
@@ -2006,7 +2006,7 @@ create_page_one (GSLockPlug *plug)
gtk_misc_set_alignment (GTK_MISC (plug->priv->auth_face_image), 0.5, 1.0);
#endif
- vbox2 = gtk_vbox_new (FALSE, 0);
+ vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (vbox), vbox2, FALSE, FALSE, 0);
str = g_strdup ("<span size=\"x-large\">%R</span>");
@@ -2036,10 +2036,10 @@ create_page_one (GSLockPlug *plug)
gtk_label_set_use_markup (GTK_LABEL (plug->priv->auth_username_label), TRUE);
gtk_box_pack_start (GTK_BOX (vbox2), plug->priv->auth_username_label, FALSE, FALSE, 0);
- vbox2 = gtk_vbox_new (FALSE, 0);
+ vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start (GTK_BOX (vbox), vbox2, TRUE, TRUE, 0);
- hbox = gtk_hbox_new (FALSE, 6);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_box_pack_start (GTK_BOX (vbox2), hbox, FALSE, FALSE, 0);
plug->priv->auth_prompt_label = gtk_label_new_with_mnemonic (_("_Password:"));
@@ -2294,7 +2294,7 @@ gs_lock_plug_init (GSLockPlug *plug)
{
gs_debug ("Unable to load theme!");
- plug->priv->vbox = gtk_vbox_new (FALSE, 0);
+ plug->priv->vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (plug), plug->priv->vbox);