aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/ephy-find-toolbar.c10
2 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index adbb08c6f..f8f3c3321 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2005-08-09 Christian Persch <chpe@cvs.gnome.org>
* NEWS:
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