diff options
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks-editor.c | 15 |
2 files changed, 22 insertions, 2 deletions
@@ -1,5 +1,14 @@ 2003-10-17 Marco Pesenti Gritti <marco@gnome.org> + * src/bookmarks/ephy-bookmarks-editor.c: + (ephy_bookmarks_editor_show), (ephy_bookmarks_editor_class_init), + (ephy_bookmarks_editor_construct): + + Grab focus in the entry when showing because we dont + rebuild the dialog. + +2003-10-17 Marco Pesenti Gritti <marco@gnome.org> + * embed/mozilla/mozilla-embed-persist.cpp: Fix Save As, we need ever to pass the url now. 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 |