diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2005-08-10 03:14:52 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2005-08-10 03:14:52 +0800 |
commit | f0d836444d0cf09a92bdcf3376e0090de97c3b16 (patch) | |
tree | 644b4bf535517bdd4e5e19f6adbb9c834c6a4a5f /src/ephy-find-toolbar.c | |
parent | 0edda6326b8a4e98f3c50847f5d1d161eb98a211 (diff) | |
download | gsoc2013-epiphany-f0d836444d0cf09a92bdcf3376e0090de97c3b16.tar.gz gsoc2013-epiphany-f0d836444d0cf09a92bdcf3376e0090de97c3b16.tar.zst gsoc2013-epiphany-f0d836444d0cf09a92bdcf3376e0090de97c3b16.zip |
When opening the find bar with Ctrl+F, search for the item, and select the
2005-08-09 Crispin Flowerday <gnome@flowerday.cx>
* src/ephy-find-toolbar.c (ephy_find_toolbar_open):
When opening the find bar with Ctrl+F, search for
the item, and select the text.
Diffstat (limited to 'src/ephy-find-toolbar.c')
-rw-r--r-- | src/ephy-find-toolbar.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 173deb095..2ae7d15ed 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -669,6 +669,10 @@ ephy_find_toolbar_open (EphyFindToolbar *toolbar, { gtk_entry_set_text (GTK_ENTRY (priv->entry), ""); } + else + { + gtk_editable_select_region (GTK_EDITABLE (priv->entry), 0, -1); + } gtk_widget_show (GTK_WIDGET (toolbar)); @@ -676,9 +680,15 @@ ephy_find_toolbar_open (EphyFindToolbar *toolbar, gtk_widget_grab_focus (GTK_WIDGET (priv->embed)); send_focus_change (priv->entry, TRUE); + + if (strlen(gtk_entry_get_text (GTK_ENTRY (priv->entry))) != 0) + { + entry_changed_cb (GTK_ENTRY (priv->entry), toolbar); + } #else gtk_widget_grab_focus (GTK_WIDGET (toolbar)); #endif + } void |