From 2e4577b38bcac84eb4ec795fc8082ddb22d608cb Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 17 May 2014 19:10:19 +0200 Subject: gtk2 fixup --- src/dlg-batch-add.c | 8 -------- src/gtk-utils.c | 12 ------------ 2 files changed, 20 deletions(-) (limited to 'src') diff --git a/src/dlg-batch-add.c b/src/dlg-batch-add.c index e9d00a9..bc658bb 100644 --- a/src/dlg-batch-add.c +++ b/src/dlg-batch-add.c @@ -555,11 +555,7 @@ 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 @@ -567,11 +563,7 @@ dlg_batch_add_files (FrWindow *window, sort_mime_types_by_extension (data->supported_types); for (i = 0; data->supported_types[i] != -1; i++) -#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); diff --git a/src/gtk-utils.c b/src/gtk-utils.c index 3c55ffe..8082127 100644 --- a/src/gtk-utils.c +++ b/src/gtk-utils.c @@ -78,9 +78,6 @@ _gtk_message_dialog_new (GtkWindow *parent, content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); -#if !GTK_CHECK_VERSION(2,22,0) - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); -#endif gtk_container_set_border_width (GTK_CONTAINER (dialog), 6); gtk_container_set_border_width (GTK_CONTAINER (content_area), 6); gtk_box_set_spacing (GTK_BOX (content_area), 8); @@ -216,9 +213,6 @@ _gtk_request_dialog_run (GtkWindow *parent, content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); -#if !GTK_CHECK_VERSION(2,22,0) - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); -#endif gtk_container_set_border_width (GTK_CONTAINER (dialog), 6); gtk_container_set_border_width (GTK_CONTAINER (content_area), 6); gtk_box_set_spacing (GTK_BOX (content_area), 8); @@ -310,9 +304,6 @@ _gtk_yesno_dialog_new (GtkWindow *parent, content_area = gtk_dialog_get_content_area (GTK_DIALOG (d)); -#if !GTK_CHECK_VERSION(2,22,0) - gtk_dialog_set_has_separator (GTK_DIALOG (d), FALSE); -#endif gtk_container_set_border_width (GTK_CONTAINER (d), 6); gtk_container_set_border_width (GTK_CONTAINER (content_area), 6); gtk_box_set_spacing (GTK_BOX (content_area), 8); @@ -400,9 +391,6 @@ _gtk_error_dialog_new (GtkWindow *parent, content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); -#if !GTK_CHECK_VERSION(2,22,0) - gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); -#endif gtk_container_set_border_width (GTK_CONTAINER (dialog), 6); gtk_container_set_border_width (GTK_CONTAINER (content_area), 6); gtk_box_set_spacing (GTK_BOX (content_area), 8); -- cgit v1.2.1