aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 982f87f7e..e902f3bdf 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -781,9 +781,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);
@@ -793,6 +804,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",
@@ -1505,8 +1518,6 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
130);
set_columns_visibility (editor, details_value);
-
- gtk_widget_grab_focus (editor->priv->search_entry);
}
void