summaryrefslogtreecommitdiff
path: root/src/copy-theme-dialog.c
diff options
context:
space:
mode:
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 ();