aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-17 19:19:16 +0800
committerChristian Persch <chpe@src.gnome.org>2003-10-17 19:19:16 +0800
commit0bea4909916ca8e221ea39c0ad530b37f31cd2c1 (patch)
tree7e6fd64a467a23c4c01761104b10d01da4a170eb
parent38ae2cf3b7edcea303f297ef16560fd4acea21cf (diff)
downloadgsoc2013-epiphany-0bea4909916ca8e221ea39c0ad530b37f31cd2c1.tar.gz
gsoc2013-epiphany-0bea4909916ca8e221ea39c0ad530b37f31cd2c1.tar.zst
gsoc2013-epiphany-0bea4909916ca8e221ea39c0ad530b37f31cd2c1.zip
Grab the entry focus on show(), not in construct().
2003-10-17 Marco Pesenti Gritti <marco@gnome.org> * src/bookmarks/ephy-bookmarks-editor.c: (ephy_bookmarks_editor_show), (ephy_bookmarks_editor_class_init): Grab the entry focus on show(), not in construct().
-rw-r--r--ChangeLog7
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c13
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f93750288..68c762665 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-17 Marco Pesenti Gritti <marco@gnome.org>
+
+ * src/bookmarks/ephy-bookmarks-editor.c:
+ (ephy_bookmarks_editor_show), (ephy_bookmarks_editor_class_init):
+
+ Grab the entry focus on show(), not in construct().
+
2003-10-16 Mark McLoughlin <mark@skynet.ie>
Change the behaviour of --nautilus-view such that the process
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 40cb85541..c38aaf642 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -685,9 +685,20 @@ ephy_bookmarks_editor_get_type (void)
}
static void
+ephy_bookmarks_editor_show (GtkWidget *widget)
+{
+ EphyBookmarksEditor *editor = EPHY_BOOKMARKS_EDITOR (widget);
+
+ gtk_widget_grab_focus (editor->priv->search_entry);
+
+ GTK_WIDGET_CLASS (parent_class)->show (widget);
+}
+
+static void
ephy_bookmarks_editor_class_init (EphyBookmarksEditorClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
@@ -697,6 +708,8 @@ ephy_bookmarks_editor_class_init (EphyBookmarksEditorClass *klass)
object_class->set_property = ephy_bookmarks_editor_set_property;
object_class->get_property = ephy_bookmarks_editor_get_property;
+ widget_class->show = ephy_bookmarks_editor_show;
+
g_object_class_install_property (object_class,
PROP_BOOKMARKS,
g_param_spec_object ("bookmarks",