diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-05-21 18:26:48 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-05-23 20:53:30 +0200 |
commit | ffbe7f6eb6de2933478a14fc9d734570d7820c21 (patch) | |
tree | 13cf190dc3b9f833c7b3ab5fc1ec75f2330e6444 /gtk/gtkentryprivate.h | |
parent | 875b1d07ded377b20acbf1a10cae847f56de05b4 (diff) | |
download | gtk+-ffbe7f6eb6de2933478a14fc9d734570d7820c21.tar.gz |
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
Diffstat (limited to 'gtk/gtkentryprivate.h')
-rw-r--r-- | gtk/gtkentryprivate.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkentryprivate.h b/gtk/gtkentryprivate.h index 0cc825a405..9d6f1e97e2 100644 --- a/gtk/gtkentryprivate.h +++ b/gtk/gtkentryprivate.h @@ -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 |