aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-find-toolbar.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@svn.gnome.org>2007-09-12 22:50:34 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-09-12 22:50:34 +0800
commitc1fc79ecff20dbdd4f79055f7d87e6b9253c22ce (patch)
tree43634b47fc1b4ac61d0565ed126bce67c2881444 /src/ephy-find-toolbar.c
parent8f1f21106f06ebdd8baf1d7263e7d19c2e22dec9 (diff)
downloadgsoc2013-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/ephy-find-toolbar.c')
-rw-r--r--src/ephy-find-toolbar.c10
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));