diff options
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 12af53f9e2..8f9c886c63 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -1611,23 +1611,23 @@ folder_browser_gui_init (FolderBrowser *fb) /* quick-search bar */ { RuleContext *rc = (RuleContext *)rule_context_new (); - char *user = g_strdup_printf("%s/searches.xml", evolution_dir); + char *user = g_strdup_printf ("%s/searches.xml", evolution_dir); /* we reuse the vfolder types here, they should match */ char *system = EVOLUTION_DATADIR "/evolution/vfoldertypes.xml"; - - rule_context_add_part_set((RuleContext *)rc, "partset", filter_part_get_type(), - rule_context_add_part, rule_context_next_part); - rule_context_add_rule_set((RuleContext *)rc, "ruleset", filter_rule_get_type(), - rule_context_add_rule, rule_context_next_rule); - - fb->search = e_filter_bar_new(rc, system, user, folder_browser_config_search, fb); - e_search_bar_set_menu((ESearchBar *)fb->search, folder_browser_search_menu_items); + rule_context_add_part_set ((RuleContext *)rc, "partset", filter_part_get_type (), + rule_context_add_part, rule_context_next_part); + + rule_context_add_rule_set ((RuleContext *)rc, "ruleset", filter_rule_get_type (), + rule_context_add_rule, rule_context_next_rule); + + fb->search = e_filter_bar_new (rc, system, user, folder_browser_config_search, fb); + e_search_bar_set_menu ((ESearchBar *)fb->search, folder_browser_search_menu_items); /*e_search_bar_set_option((ESearchBar *)fb->search, folder_browser_search_option_items);*/ - g_free(user); - gtk_object_unref((GtkObject *)rc); + g_free (user); + gtk_object_unref (GTK_OBJECT (rc)); } - + gtk_widget_show (GTK_WIDGET (fb->search)); gtk_signal_connect (GTK_OBJECT (fb->search), "query_changed", |