diff options
author | monsta <[email protected]> | 2016-06-30 15:55:55 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-06-30 15:55:55 +0300 |
commit | dd837483d4435bfac418ef9c006cff642990a83f (patch) | |
tree | a74b4fd0dd864f231e340568c4d28ebdaa9a8da2 /src/copy-theme-dialog.c | |
parent | 38d5cd1e7b60611e57bf8690f01d6f3baf030029 (diff) | |
download | mate-screensaver-dd837483d4435bfac418ef9c006cff642990a83f.tar.bz2 mate-screensaver-dd837483d4435bfac418ef9c006cff642990a83f.tar.xz |
fix UI issues introduced in 296b056
Diffstat (limited to 'src/copy-theme-dialog.c')
-rw-r--r-- | src/copy-theme-dialog.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/copy-theme-dialog.c b/src/copy-theme-dialog.c index 14794a0..6384d7f 100644 --- a/src/copy-theme-dialog.c +++ b/src/copy-theme-dialog.c @@ -31,11 +31,6 @@ #include "copy-theme-dialog.h" -#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 copy_theme_dialog_class_init (CopyThemeDialogClass *klass); static void @@ -212,7 +207,11 @@ copy_theme_dialog_init (CopyThemeDialog *dlg) 4); gtk_box_set_spacing (GTK_BOX (dialog_vbox), 4); +#if GTK_CHECK_VERSION (3, 0, 0) vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6); +#else + vbox = gtk_vbox_new (FALSE, 6); +#endif gtk_container_set_border_width (GTK_CONTAINER (vbox), 6); gtk_box_pack_start (GTK_BOX (dialog_vbox), vbox, TRUE, TRUE, 0); @@ -230,7 +229,11 @@ copy_theme_dialog_init (CopyThemeDialog *dlg) gtk_box_pack_start (GTK_BOX (vbox), dlg->priv->status, FALSE, FALSE, 0); +#if GTK_CHECK_VERSION (3, 0, 0) hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); +#else + hbox = gtk_hbox_new (FALSE, 0); +#endif gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); table = gtk_table_new (2, 2, FALSE); @@ -248,7 +251,11 @@ copy_theme_dialog_init (CopyThemeDialog *dlg) gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (table), FALSE, FALSE, 0); +#if GTK_CHECK_VERSION (3, 0, 0) progress_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); +#else + progress_vbox = gtk_vbox_new (FALSE, 0); +#endif gtk_box_set_homogeneous (progress_vbox, TRUE); gtk_box_pack_start (GTK_BOX (vbox), progress_vbox, FALSE, FALSE, 0); |