diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-10-17 19:13:07 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-17 19:13:07 +0800 |
commit | 8bf99315f462257613969c0ca0ab051ff86ca763 (patch) | |
tree | 2a3c1e05ba3f88af134c6f9454f7c5cd79efe252 | |
parent | 9981edca4e05057d8130bd529d701d60bac76378 (diff) | |
download | gsoc2013-epiphany-8bf99315f462257613969c0ca0ab051ff86ca763.tar gsoc2013-epiphany-8bf99315f462257613969c0ca0ab051ff86ca763.tar.gz gsoc2013-epiphany-8bf99315f462257613969c0ca0ab051ff86ca763.tar.bz2 gsoc2013-epiphany-8bf99315f462257613969c0ca0ab051ff86ca763.tar.lz gsoc2013-epiphany-8bf99315f462257613969c0ca0ab051ff86ca763.tar.xz gsoc2013-epiphany-8bf99315f462257613969c0ca0ab051ff86ca763.tar.zst gsoc2013-epiphany-8bf99315f462257613969c0ca0ab051ff86ca763.zip |
Grab focus in the entry when showing because we dont rebuild the dialog.
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.
-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 |