summaryrefslogtreecommitdiff
path: root/src/dlg-add-folder.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-05-27 14:06:08 +0300
committermonsta <[email protected]>2016-05-27 14:06:08 +0300
commitf47350b1da9c2d91d6cd6a25085badc3be0c7925 (patch)
treeb7ade22a67cd7d8876ab669c83b735cf0a4f8c37 /src/dlg-add-folder.c
parent9bf273fb9b31f878fe597c605a8faa18d220c37a (diff)
downloadengrampa-f47350b1da9c2d91d6cd6a25085badc3be0c7925.tar.bz2
engrampa-f47350b1da9c2d91d6cd6a25085badc3be0c7925.tar.xz
drop old GTK+2 code
Diffstat (limited to 'src/dlg-add-folder.c')
-rw-r--r--src/dlg-add-folder.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c
index ebd0668..5531100 100644
--- a/src/dlg-add-folder.c
+++ b/src/dlg-add-folder.c
@@ -40,11 +40,6 @@
#define UNUSED_VARIABLE
#endif
-#if GTK_CHECK_VERSION (3, 0, 0)
-#define gtk_vbox_new(X, Y) gtk_box_new(GTK_ORIENTATION_VERTICAL, Y)
-#define gtk_hbox_new(X, Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL, Y)
-#endif
-
typedef struct {
FrWindow *window;
GSettings *settings;
@@ -266,11 +261,11 @@ add_folder_cb (GtkWidget *widget,
data->save_button = gtk_button_new_with_mnemonic (_("Sa_ve Options"));
data->clear_button = gtk_button_new_with_mnemonic (_("_Reset Options"));
- main_box = gtk_hbox_new (FALSE, 20);
+ main_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 20);
gtk_container_set_border_width (GTK_CONTAINER (main_box), 0);
gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (file_sel), main_box);
- vbox = gtk_vbox_new (FALSE, 6);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 0);
gtk_box_pack_start (GTK_BOX (main_box), vbox, TRUE, TRUE, 0);
@@ -330,7 +325,7 @@ add_folder_cb (GtkWidget *widget,
/**/
- vbox = gtk_vbox_new (FALSE, 5);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 0);
gtk_box_pack_start (GTK_BOX (main_box), vbox, FALSE, FALSE, 0);