aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-25 02:22:16 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-25 02:22:16 +0800
commit82f0ef521de1e11efc6476eed4f7c893f9f30888 (patch)
tree2848ef2b9160a76617022b355e4f76cea7f2c5b2 /embed
parentb5c21fd39fe8b7b33e673fbb2470e0284ec93c43 (diff)
downloadgsoc2013-epiphany-82f0ef521de1e11efc6476eed4f7c893f9f30888.tar
gsoc2013-epiphany-82f0ef521de1e11efc6476eed4f7c893f9f30888.tar.gz
gsoc2013-epiphany-82f0ef521de1e11efc6476eed4f7c893f9f30888.tar.bz2
gsoc2013-epiphany-82f0ef521de1e11efc6476eed4f7c893f9f30888.tar.lz
gsoc2013-epiphany-82f0ef521de1e11efc6476eed4f7c893f9f30888.tar.xz
gsoc2013-epiphany-82f0ef521de1e11efc6476eed4f7c893f9f30888.tar.zst
gsoc2013-epiphany-82f0ef521de1e11efc6476eed4f7c893f9f30888.zip
Grab focus after the old text has been restored.
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.
Diffstat (limited to 'embed')
-rwxr-xr-xembed/find-dialog.c12
1 files changed, 6 insertions, 6 deletions
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