From 831fb5eb77fae42e3cc757217e06fe2d986923db Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 15 Mar 2012 00:52:47 +0000 Subject: [PATCH] Additional fix for Gtk+ < 2.24 --- src/editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor.c b/src/editor.c index 78b4b66..5e07f07 100644 --- a/src/editor.c +++ b/src/editor.c @@ -276,12 +276,12 @@ Editor * editor_new(void) #if GTK_CHECK_VERSION(2, 24, 0) editor->fi_text = gtk_combo_box_new_with_model_and_entry(GTK_TREE_MODEL( editor->fi_store)); + editor->fi_entry = gtk_bin_get_child(GTK_BIN(editor->fi_text)); gtk_combo_box_set_entry_text_column(GTK_COMBO_BOX(editor->fi_text), 0); #else - /* XXX the combo box is useless here */ - editor->fi_text = gtk_combo_box_new_with_entry(); + editor->fi_text = gtk_entry_new(); + editor->fi_entry = editor->fi_text; #endif - editor->fi_entry = gtk_bin_get_child(GTK_BIN(editor->fi_text)); g_signal_connect_swapped(editor->fi_entry, "activate", G_CALLBACK( _editor_on_find_clicked), editor); gtk_box_pack_start(GTK_BOX(hbox), editor->fi_text, FALSE, TRUE, 0);