diff options
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 5e2673cc54..7cf89d58f7 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -839,9 +839,9 @@ folder_browser_gui_init (FolderBrowser *fb) /* quick-search bar */ { RuleContext *rc = (RuleContext *)rule_context_new (); - char *userrules = 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 *systemrules = g_strdup_printf("%s/evolution/vfoldertypes.xml", EVOLUTION_DATADIR); + 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); @@ -849,11 +849,10 @@ folder_browser_gui_init (FolderBrowser *fb) 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, systemrules, userrules, folder_browser_config_search, fb); + 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(userrules); - g_free(systemrules); + g_free(user); gtk_object_unref((GtkObject *)rc); } |