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
This commit is contained in:
Enrico Tröger 2009-09-17 18:08:21 +00:00
parent a26e5b96ba
commit c786d69e00
2 changed files with 4 additions and 0 deletions

View File

@ -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 <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -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));
}
}