From c786d69e007353fc97f4591381a64bb08e4a2e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 17 Sep 2009 18:08:21 +0000 Subject: [PATCH] After clearing a text field using the embedded clear icon, put the input focus into this text field. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4210 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 3 +++ src/ui_utils.c | 1 + 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0c785307..f4aea69b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,9 @@ add_page_header(). * src/keyfile.c: Save an if expression. + * src/ui_utils.c: + After clearing a text field using the embedded clear icon, put the + input focus into this text field. 2009-09-17 Nick Treleaven diff --git a/src/ui_utils.c b/src/ui_utils.c index dd9e9e97..4cc62889 100644 --- a/src/ui_utils.c +++ b/src/ui_utils.c @@ -1324,6 +1324,7 @@ static void entry_clear_icon_release_cb(GtkEntry *entry, gint icon_pos, if (event->button.button == 1 && icon_pos == 1) { gtk_entry_set_text(entry, ""); + gtk_widget_grab_focus(GTK_WIDGET(entry)); } }