diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-12-09 05:18:46 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-12-09 05:18:46 +0800 |
commit | 164defcd7da31808773f1af4dd388f04b73a5da5 (patch) | |
tree | aacaebd176d05df3bf8ddb9ed2a7c9ff65621d3e | |
parent | 10cab4c208582f6d86361a2e6f679fcf8473f0bd (diff) | |
download | gsoc2013-evolution-164defcd7da31808773f1af4dd388f04b73a5da5.tar gsoc2013-evolution-164defcd7da31808773f1af4dd388f04b73a5da5.tar.gz gsoc2013-evolution-164defcd7da31808773f1af4dd388f04b73a5da5.tar.bz2 gsoc2013-evolution-164defcd7da31808773f1af4dd388f04b73a5da5.tar.lz gsoc2013-evolution-164defcd7da31808773f1af4dd388f04b73a5da5.tar.xz gsoc2013-evolution-164defcd7da31808773f1af4dd388f04b73a5da5.tar.zst gsoc2013-evolution-164defcd7da31808773f1af4dd388f04b73a5da5.zip |
Don't highlight the title if it's "Untitled" because switching widget
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.
svn path=/trunk/; revision=6870
-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); } |