no need for HAVE_GTK3 when you already check for GTK_CHECK_VERSION(2, 24, 1)

This commit is contained in:
Landry Breuil
2014-12-11 18:19:29 +01:00
parent 23c43d14ec
commit 16722479ab

View File

@@ -119,7 +119,7 @@ xtm_settings_dialog_init (XtmSettingsDialog *dialog)
XtmToolbarStyle toolbar_style;
box = GTK_WIDGET (gtk_builder_get_object (builder, "hbox-toolbar-style"));
#if HAVE_GTK3 || GTK_CHECK_VERSION(2, 24, 1)
#if GTK_CHECK_VERSION(2, 24, 1)
combobox = gtk_combo_box_text_new ();
#else
combobox = gtk_combo_box_new_text ();
@@ -129,7 +129,7 @@ xtm_settings_dialog_init (XtmSettingsDialog *dialog)
klass = g_type_class_ref (XTM_TYPE_TOOLBAR_STYLE);
for (n = 0; n < klass->n_values; ++n)
#if HAVE_GTK3 || GTK_CHECK_VERSION(2, 24, 1)
#if GTK_CHECK_VERSION(2, 24, 1)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combobox), _(klass->values[n].value_nick));
#else
gtk_combo_box_append_text (GTK_COMBO_BOX (combobox), _(klass->values[n].value_nick));