diff options
author | Stefano Karapetsas <[email protected]> | 2013-11-20 03:54:01 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-11-20 03:54:01 -0800 |
commit | 0e4df16ea5762fb11aac4cece97aa5210ccb6f0f (patch) | |
tree | 6bb18ba82419c259f1eec4bf6c1c3676a872992e /src/dlg-batch-add.c | |
parent | 36aefd0601529725931abbf7280684c1efdc3f34 (diff) | |
parent | 8d284101a0ee5714a198424926612a163c3c691f (diff) | |
download | engrampa-0e4df16ea5762fb11aac4cece97aa5210ccb6f0f.tar.bz2 engrampa-0e4df16ea5762fb11aac4cece97aa5210ccb6f0f.tar.xz |
Merge pull request #35 from eyelash/gtk3
add GTK3 support
Diffstat (limited to 'src/dlg-batch-add.c')
-rw-r--r-- | src/dlg-batch-add.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/dlg-batch-add.c b/src/dlg-batch-add.c index 28dbc01..e9d00a9 100644 --- a/src/dlg-batch-add.c +++ b/src/dlg-batch-add.c @@ -555,7 +555,11 @@ dlg_batch_add_files (FrWindow *window, /* archive type combobox */ +#if GTK_CHECK_VERSION(2,24,0) + data->a_archive_type_combo_box = gtk_combo_box_text_new (); +#else data->a_archive_type_combo_box = gtk_combo_box_new_text (); +#endif if (data->single_file) data->supported_types = single_file_save_type; else @@ -563,8 +567,11 @@ dlg_batch_add_files (FrWindow *window, sort_mime_types_by_extension (data->supported_types); for (i = 0; data->supported_types[i] != -1; i++) - gtk_combo_box_append_text (GTK_COMBO_BOX (data->a_archive_type_combo_box), - mime_type_desc[data->supported_types[i]].default_ext); +#if GTK_CHECK_VERSION(2,24,0) + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (data->a_archive_type_combo_box), mime_type_desc[data->supported_types[i]].default_ext); +#else + gtk_combo_box_append_text (GTK_COMBO_BOX (data->a_archive_type_combo_box), mime_type_desc[data->supported_types[i]].default_ext); +#endif gtk_box_pack_start (GTK_BOX (a_archive_type_box), data->a_archive_type_combo_box, TRUE, TRUE, 0); gtk_widget_show_all (a_archive_type_box); |