From 06b279e00ed04b43b24aaeb84d36c7221d1ff2bc Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 3 May 2010 16:08:05 +0000 Subject: [PATCH] Minor usability fix with the "search text" window --- src/editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor.c b/src/editor.c index 05ad6b4..e05fedc 100644 --- a/src/editor.c +++ b/src/editor.c @@ -290,9 +290,9 @@ void editor_find(Editor * editor, char const * text) { if(editor->fi_dialog == NULL) _find_dialog(editor); - gtk_entry_set_text(GTK_ENTRY(editor->fi_text), (text != NULL) ? text - : ""); - gtk_widget_show(editor->fi_dialog); + if(text != NULL) + gtk_entry_set_text(GTK_ENTRY(editor->fi_text), text); + gtk_window_present(GTK_WINDOW(editor->fi_dialog)); } static void _find_dialog(Editor * editor)