From eed15ba5ab24d540f9cb5eb94d9e4741820fe57b Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Mon, 12 Feb 2007 08:41:11 +0000 Subject: Fixes bug #368983 svn path=/trunk/; revision=33203 --- widgets/misc/ChangeLog | 6 ++++++ widgets/misc/e-filter-bar.c | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 7763bc034a..f9479b5c11 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,9 @@ +2007-02-12 Srinivasa Ragavan + + ** Fix for bug #368983 from Ebby Wiselyn + + * e-filter-bar.c: (menubar_activated): + 2007-02-12 Srinivasa Ragavan ** Print migration updates from Ebby Wiselyn diff --git a/widgets/misc/e-filter-bar.c b/widgets/misc/e-filter-bar.c index 807c0e707a..49abd260e2 100644 --- a/widgets/misc/e-filter-bar.c +++ b/widgets/misc/e-filter-bar.c @@ -280,7 +280,17 @@ menubar_activated (ESearchBar *esb, int id, void *data) efb->setquery = TRUE; e_search_bar_set_item_id (esb, E_FILTERBAR_ADVANCED_ID); efb->setquery = FALSE; - + + /* saved searches activated */ + GtkStyle *style = gtk_widget_get_default_style (); + efb->setquery = TRUE; + gtk_widget_modify_base (esb->entry , GTK_STATE_NORMAL, &(style->base[GTK_STATE_SELECTED] )); + gtk_widget_modify_text (esb->entry, GTK_STATE_NORMAL, &(style->text [GTK_STATE_SELECTED] )); + gtk_widget_modify_base (esb->icon_entry, GTK_STATE_NORMAL, &(style->base [GTK_STATE_SELECTED] )); + gtk_widget_modify_base (esb->viewoption, GTK_STATE_NORMAL, &(style->base [GTK_STATE_SELECTED] )); + e_search_bar_set_text (esb,_("Advanced Search")); + g_signal_emit_by_name (efb, "search_activated", NULL); + efb->setquery = FALSE; } else { return; } -- cgit v1.2.3