From 8f27b982a364c72b819e8bd0ed6ac3a7a37c1313 Mon Sep 17 00:00:00 2001 From: Mengjie Yu Date: Wed, 1 Dec 2004 05:59:07 +0000 Subject: add mnemonic widget in search box. 2004-11-29 Mengjie Yu * filter-rule.c: (get_widget):add mnemonic widget in search box. svn path=/trunk/; revision=28031 --- filter/ChangeLog | 4 ++++ filter/filter-rule.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/filter/ChangeLog b/filter/ChangeLog index 7983607f09..646468afcc 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,7 @@ +2004-11-29 Mengjie Yu + + * filter-rule.c: (get_widget):add mnemonic widget in search box. + 2004-07-29 Carlos Garnacho Parro * filter-file.c: added the "use_filechooser" property to the diff --git a/filter/filter-rule.c b/filter/filter-rule.c index bd48afeb2e..c3028c99eb 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -787,9 +787,10 @@ get_widget (FilterRule *fr, struct _RuleContext *f) rule parts need to be a vbox */ vbox = gtk_vbox_new (FALSE, 6); - label = gtk_label_new (_("Rule name:")); + label = gtk_label_new_with_mnemonic (_("_Rule name:")); name = gtk_entry_new (); - + gtk_label_set_mnemonic_widget (label, name); + if (!fr->name) { fr->name = g_strdup (_("Untitled")); gtk_entry_set_text (GTK_ENTRY (name), fr->name); -- cgit v1.2.3