Kaydet (Commit) cff3f126 authored tarafından Enrico Tröger's avatar Enrico Tröger

Fix broken non-incremental search with the toolbar search entry when pressing…

Fix broken non-incremental search with the toolbar search entry when pressing Enter (closes #2638180).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3609 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 57c761de
......@@ -12,6 +12,9 @@
Update source files upon creation.
* data/c99.tags:
Update C tags for glibc 2.9.
* src/callbacks.c, src/toolbar.c:
Fix broken non-incremental search with the toolbar search entry when
pressing Enter (closes #2638180).
2009-02-26 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
......
......@@ -553,7 +553,7 @@ on_toolbar_search_entry_changed(GtkAction *action, const gchar *text, gpointer u
gboolean result;
setup_find_next(text);
result = document_search_bar_find(doc, search_data.text, 0, TRUE);
result = document_search_bar_find(doc, search_data.text, 0, GPOINTER_TO_INT(user_data));
if (search_data.search_bar)
ui_set_search_entry_background(toolbar_get_widget_child_by_name("SearchEntry"), result);
}
......
......@@ -199,9 +199,9 @@ GtkWidget *toolbar_init(void)
action_searchentry = geany_entry_action_new(
"SearchEntry", _("Search"), _("Find the entered text in the current file"), FALSE);
g_signal_connect(action_searchentry, "entry-activate",
G_CALLBACK(on_toolbar_search_entry_changed), NULL);
G_CALLBACK(on_toolbar_search_entry_changed), GINT_TO_POINTER(FALSE));
g_signal_connect(action_searchentry, "entry-changed",
G_CALLBACK(on_toolbar_search_entry_changed), NULL);
G_CALLBACK(on_toolbar_search_entry_changed), GINT_TO_POINTER(TRUE));
gtk_action_group_add_action(group, action_searchentry);
action_gotoentry = geany_entry_action_new(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment