From 381356622a1181fe41cf5eda3261cf0e06b04647 Mon Sep 17 00:00:00 2001 From: David Bordoley Date: Sat, 29 Mar 2003 17:30:42 +0000 Subject: Add alt+s mneumonic to the search box and activate it. 2003-03-29 David Bordoley * src/bookmarks/ephy-bookmarks-editor.c: (build_search_box): Add alt+s mneumonic to the search box and activate it. --- src/bookmarks/ephy-bookmarks-editor.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'src') 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 ("", _("Search:"), "", NULL); - gtk_label_set_markup (GTK_LABEL (label), str); + str = g_strconcat ("", _("_Search:"), "", 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; } -- cgit v1.2.3