aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-06 13:19:49 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-06 13:19:49 +0800
commit115a2836e1dc2826e389d25e12f0ed5f96c86cef (patch)
treef824de85936c6ede78cb595c23920e7c49e375ae /widgets
parenta75f6e461db980ecbff380e6a5bf4757cec52bb2 (diff)
downloadgsoc2013-evolution-115a2836e1dc2826e389d25e12f0ed5f96c86cef.tar.gz
gsoc2013-evolution-115a2836e1dc2826e389d25e12f0ed5f96c86cef.tar.zst
gsoc2013-evolution-115a2836e1dc2826e389d25e12f0ed5f96c86cef.zip
Set the query text into the filter name when saving it, for #10979.
2002-08-06 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (menubar_activated): Set the query text into the filter name when saving it, for #10979. svn path=/trunk/; revision=17710
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-filter-bar.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index baf814207e..4cf470a49a 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-06 Not Zed <NotZed@Ximian.com>
+
+ * e-filter-bar.c (menubar_activated): Set the query text into the
+ filter name when saving it, for #10979.
+
2002-07-24 Ettore Perazzoli <ettore@ximian.com>
* e-calendar-item.c (e_calendar_item_signal_emission_idle_cb): Add
diff --git a/widgets/misc/e-filter-bar.c b/widgets/misc/e-filter-bar.c
index 261147d03c..e2e546fed7 100644
--- a/widgets/misc/e-filter-bar.c
+++ b/widgets/misc/e-filter-bar.c
@@ -196,9 +196,15 @@ menubar_activated (ESearchBar *esb, int id, void *data)
GtkWidget *w;
GtkWidget *gd;
FilterRule *rule;
-
+ char *name, *text;
+
rule = filter_rule_clone (efb->current_query);
-
+ text = e_search_bar_get_text(esb);
+ name = g_strdup_printf("%s %s", rule->name, text&&text[0]?text:"''");
+ g_free(text);
+ filter_rule_set_name(rule, name);
+ g_free(name);
+
w = filter_rule_get_widget (rule, efb->context);
filter_rule_set_source (rule, FILTER_SOURCE_INCOMING);
gd = gnome_dialog_new (_("Save Search"), GNOME_STOCK_BUTTON_OK,