diff options
author | David Bordoley <bordoley@msu.edu> | 2003-03-30 01:30:42 +0800 |
---|---|---|
committer | Dave Bordoley <Bordoley@src.gnome.org> | 2003-03-30 01:30:42 +0800 |
commit | 381356622a1181fe41cf5eda3261cf0e06b04647 (patch) | |
tree | 2e4d6ff4ce842071384e171ad1f7167dc9a45c57 /src/bookmarks/ephy-bookmarks-editor.c | |
parent | 1aadcfa011e7249c003a7fd59f56d23925d9c9ce (diff) | |
download | gsoc2013-epiphany-381356622a1181fe41cf5eda3261cf0e06b04647.tar gsoc2013-epiphany-381356622a1181fe41cf5eda3261cf0e06b04647.tar.gz gsoc2013-epiphany-381356622a1181fe41cf5eda3261cf0e06b04647.tar.bz2 gsoc2013-epiphany-381356622a1181fe41cf5eda3261cf0e06b04647.tar.lz gsoc2013-epiphany-381356622a1181fe41cf5eda3261cf0e06b04647.tar.xz gsoc2013-epiphany-381356622a1181fe41cf5eda3261cf0e06b04647.tar.zst gsoc2013-epiphany-381356622a1181fe41cf5eda3261cf0e06b04647.zip |
Add alt+s mneumonic to the search box and activate it.
2003-03-29 David Bordoley <bordoley@msu.edu>
* src/bookmarks/ephy-bookmarks-editor.c: (build_search_box):
Add alt+s mneumonic to the search box and activate it.
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-editor.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 7f9a983bd..ca74696d9 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -618,23 +618,27 @@ build_search_box (EphyBookmarksEditor *editor) box = gtk_hbox_new (FALSE, 6); gtk_widget_show (box); + entry = gtk_entry_new (); + editor->priv->search_entry = entry; + gtk_widget_show (entry); + g_signal_connect (G_OBJECT (entry), "changed", + G_CALLBACK (search_entry_changed_cb), + editor); + label = gtk_label_new (NULL); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); - str = g_strconcat ("<b>", _("Search:"), "</b>", NULL); - gtk_label_set_markup (GTK_LABEL (label), str); + str = g_strconcat ("<b>", _("_Search:"), "</b>", NULL); + gtk_label_set_markup_with_mnemonic (GTK_LABEL (label), str); g_free (str); + gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry); gtk_widget_show (label); + + gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 0); - - entry = gtk_entry_new (); - editor->priv->search_entry = entry; - gtk_widget_show (entry); gtk_box_pack_start (GTK_BOX (box), entry, TRUE, TRUE, 0); - g_signal_connect (G_OBJECT (entry), "changed", - G_CALLBACK (search_entry_changed_cb), - editor); + return box; } |