summaryrefslogtreecommitdiff
path: root/src/copy-theme-dialog.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/copy-theme-dialog.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/copy-theme-dialog.c')
-rw-r--r--src/copy-theme-dialog.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/copy-theme-dialog.c b/src/copy-theme-dialog.c
index 0fd64f2..14794a0 100644
--- a/src/copy-theme-dialog.c
+++ b/src/copy-theme-dialog.c
@@ -31,9 +31,9 @@
#include "copy-theme-dialog.h"
-#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
static void
@@ -212,7 +212,7 @@ copy_theme_dialog_init (CopyThemeDialog *dlg)
4);
gtk_box_set_spacing (GTK_BOX (dialog_vbox), 4);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
gtk_box_pack_start (GTK_BOX (dialog_vbox), vbox, TRUE, TRUE, 0);
@@ -230,7 +230,7 @@ copy_theme_dialog_init (CopyThemeDialog *dlg)
gtk_box_pack_start (GTK_BOX (vbox), dlg->priv->status, FALSE, FALSE, 0);
- hbox = gtk_hbox_new (FALSE, 0);
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
table = gtk_table_new (2, 2, FALSE);
@@ -248,7 +248,8 @@ copy_theme_dialog_init (CopyThemeDialog *dlg)
gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (table), FALSE, FALSE, 0);
- progress_vbox = gtk_vbox_new (TRUE, 0);
+ progress_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+ gtk_box_set_homogeneous (progress_vbox, TRUE);
gtk_box_pack_start (GTK_BOX (vbox), progress_vbox, FALSE, FALSE, 0);
dlg->priv->progress = gtk_progress_bar_new ();