GtkEntry: Focus the entry without selecting the text

Focusing the text entry without selecting all the text is needed in
some places (GtkTreeView, and some uses of GtkSearchEntry) so
create a private helper to avoid replicating the hacks.

https://bugzilla.gnome.org/show_bug.cgi?id=700787
This commit is contained in:
Bastien Nocera
2013-05-21 18:26:48 +02:00
parent 875b1d07de
commit ffbe7f6eb6
2 changed files with 16 additions and 5 deletions

View File

@ -87,7 +87,8 @@ void _gtk_entry_get_borders (GtkEntry *entry,
GtkIMContext* _gtk_entry_get_im_context (GtkEntry *entry);
void _gtk_entry_set_is_cell_renderer (GtkEntry *entry,
gboolean is_cell_renderer);
void _gtk_entry_grab_focus (GtkEntry *entry,
gboolean select_all);
G_END_DECLS