aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rwxr-xr-xembed/find-dialog.c12
2 files changed, 12 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 02b9abe7f..9b901c377 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2003-06-24 Marco Pesenti Gritti <marco@it.gnome.org>
+ * embed/find-dialog.c: (impl_show):
+
+ Grab focus after the old text has been restored.
+
+2003-06-24 Marco Pesenti Gritti <marco@it.gnome.org>
+
* embed/mozilla/GlobalHistory.cpp:
Api change
diff --git a/embed/find-dialog.c b/embed/find-dialog.c
index 5e6c844a8..7dad18ddf 100755
--- a/embed/find-dialog.c
+++ b/embed/find-dialog.c
@@ -353,12 +353,6 @@ impl_show (EphyDialog *dialog)
find_dialog->priv->window = ephy_dialog_get_control (dialog, WINDOW_PROP);
find_get_info (dialog);
- /* Focus the text entry. This will correctly select or leave
- * unselected the existing text in the entry depending on the
- * 'gtk-entry-select-on-focus = 0 / 1' setting in user's gtkrc.
- */
- gtk_widget_grab_focus (ephy_dialog_get_control (dialog, WORD_PROP));
-
icon = gtk_widget_render_icon (find_dialog->priv->window,
GTK_STOCK_FIND,
GTK_ICON_SIZE_MENU,
@@ -367,6 +361,12 @@ impl_show (EphyDialog *dialog)
g_object_unref (icon);
EPHY_DIALOG_CLASS (parent_class)->show (dialog);
+
+ /* Focus the text entry. This will correctly select or leave
+ * unselected the existing text in the entry depending on the
+ * 'gtk-entry-select-on-focus = 0 / 1' setting in user's gtkrc.
+ */
+ gtk_widget_grab_focus (ephy_dialog_get_control (dialog, WORD_PROP));
}
static void