diff options
-rw-r--r-- | filter/ChangeLog | 6 | ||||
-rw-r--r-- | filter/filter-rule.c | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 62e30d745c..341ba297b1 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,9 @@ +2000-12-08 Jeffrey Stedfast <fejj@helixcode.com> + + * filter-rule.c (get_widget): Don't highlight the title if it's + "Untitled" because switching widget focus doesn't cause this + selection to go away. + 2000-12-06 Kjartan Maraas <kmaraas@gnome.org> * filter-editor.c: Mark some strings for translation. diff --git a/filter/filter-rule.c b/filter/filter-rule.c index 11053a38da..180b070cb1 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -523,8 +523,10 @@ get_widget (FilterRule *fr, struct _RuleContext *f) if (!fr->name) { fr->name = g_strdup (_("Untitled")); gtk_entry_set_text (GTK_ENTRY (name), fr->name); - gtk_editable_select_region (GTK_EDITABLE (name), 0, -1); + /* FIXME: do we want the following code in the future? */ + /*gtk_editable_select_region (GTK_EDITABLE (name), 0, -1);*/ gtk_widget_grab_focus (GTK_WIDGET (name)); + gtk_widget_grab_default (GTK_WIDGET (name)); } else { e_utf8_gtk_entry_set_text (GTK_ENTRY (name), fr->name); } |