diff options
author | Cosimo Cecchi <cosimoc@svn.gnome.org> | 2007-09-12 22:50:34 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@src.gnome.org> | 2007-09-12 22:50:34 +0800 |
commit | c1fc79ecff20dbdd4f79055f7d87e6b9253c22ce (patch) | |
tree | 43634b47fc1b4ac61d0565ed126bce67c2881444 /src | |
parent | 8f1f21106f06ebdd8baf1d7263e7d19c2e22dec9 (diff) | |
download | gsoc2013-epiphany-c1fc79ecff20dbdd4f79055f7d87e6b9253c22ce.tar gsoc2013-epiphany-c1fc79ecff20dbdd4f79055f7d87e6b9253c22ce.tar.gz gsoc2013-epiphany-c1fc79ecff20dbdd4f79055f7d87e6b9253c22ce.tar.bz2 gsoc2013-epiphany-c1fc79ecff20dbdd4f79055f7d87e6b9253c22ce.tar.lz gsoc2013-epiphany-c1fc79ecff20dbdd4f79055f7d87e6b9253c22ce.tar.xz gsoc2013-epiphany-c1fc79ecff20dbdd4f79055f7d87e6b9253c22ce.tar.zst gsoc2013-epiphany-c1fc79ecff20dbdd4f79055f7d87e6b9253c22ce.zip |
Find toolbar now remembers last pattern searched also when opened with
2007-09-12 Cosimo Cecchi <cosimoc@svn.gnome.org>
* src/ephy-find-toolbar.c: (ephy_find_toolbar_open):
Find toolbar now remembers last pattern searched also when opened with
GDK_slash or GDK_apostrophe. Fixes bug #343337.
svn path=/trunk/; revision=7390
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-find-toolbar.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 4202710e5..cf528976e 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -669,7 +669,6 @@ ephy_find_toolbar_open (EphyFindToolbar *toolbar, gboolean typing_ahead) { EphyFindToolbarPrivate *priv = toolbar->priv; - gboolean clear_search = typing_ahead; g_return_if_fail (priv->embed != NULL); @@ -678,14 +677,7 @@ ephy_find_toolbar_open (EphyFindToolbar *toolbar, clear_status (toolbar); - if (clear_search) - { - gtk_entry_set_text (GTK_ENTRY (priv->entry), ""); - } - else - { - gtk_editable_select_region (GTK_EDITABLE (priv->entry), 0, -1); - } + gtk_editable_select_region (GTK_EDITABLE (priv->entry), 0, -1); gtk_widget_show (GTK_WIDGET (toolbar)); gtk_widget_grab_focus (GTK_WIDGET (toolbar)); |