aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-09-18 05:19:04 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-09-18 05:19:04 +0800
commit81a0ff5bc44a3bd11399e6b3c985735737606c8c (patch)
tree54b5ed4342a6843c1db4c7e75f2e1b1fe9b82dff /mail/component-factory.c
parenta36a1bb70b6ebcb51ac39304370c89bda63e11b9 (diff)
downloadgsoc2013-evolution-81a0ff5bc44a3bd11399e6b3c985735737606c8c.tar
gsoc2013-evolution-81a0ff5bc44a3bd11399e6b3c985735737606c8c.tar.gz
gsoc2013-evolution-81a0ff5bc44a3bd11399e6b3c985735737606c8c.tar.bz2
gsoc2013-evolution-81a0ff5bc44a3bd11399e6b3c985735737606c8c.tar.lz
gsoc2013-evolution-81a0ff5bc44a3bd11399e6b3c985735737606c8c.tar.xz
gsoc2013-evolution-81a0ff5bc44a3bd11399e6b3c985735737606c8c.tar.zst
gsoc2013-evolution-81a0ff5bc44a3bd11399e6b3c985735737606c8c.zip
cvs removed.
2003-09-17 Not Zed <NotZed@Ximian.com> * folder-browser.c, folder-browser.h, folder-browser-ui.c folder-browser-ui.h, mail-callbacks.c, mail-callbacks.h mail-display.c, mail-display.h, mail-display-stream.c mail-display-stream.h, mail-format.c, mail-format.h mail-identify.c, mail-search.c, mail-search.h message-browser.c, message-browser.h, subscribe-dialog.c subscribe-dialog.h, mail-font-prefs.c, mail-font-prefs.h: cvs removed. * Makefile.am: Removed mail-font-prefs.[ch], hasn't been built for ages. * em-*.c: killed a bunch of printfs. * em-format-html-display.c (efhd_html_button_press_event): update for html object api chagnes. ** Merge in mail-refactor-2 branch. svn path=/trunk/; revision=22602
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 8789bcde8a..9fda34bec0 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -49,7 +49,6 @@
#include "folder-browser-factory.h"
#include "evolution-shell-component.h"
#include "evolution-shell-component-dnd.h"
-#include "folder-browser.h"
#include "folder-info.h"
#include "mail.h"
#include "mail-config.h"
@@ -64,7 +63,7 @@
#include "mail-mt.h"
#include "mail-importer.h"
#include "mail-folder-cache.h"
-
+#include "em-utils.h"
#include "component-factory.h"
#include "mail-send-recv.h"
@@ -417,17 +416,21 @@ static void
configure_folder_popup(BonoboUIComponent *component, void *user_data, const char *cname)
{
char *uri = user_data;
+
+ /* FIXME: re-implement */
if (strncmp(uri, "vfolder:", 8) == 0)
vfolder_edit_rule(uri);
+#if 0
else {
- FolderBrowser *fb = folder_browser_factory_get_browser(uri);
+ struct _EMFolderBrowser *fb = folder_browser_factory_get_browser(uri);
if (fb)
configure_folder(component, fb, cname);
else
mail_local_reconfigure_folder(uri, NULL, NULL);
}
+#endif
}
static void
@@ -801,7 +804,7 @@ owner_set_cb (EvolutionShellComponent *shell_component,
{
/* setup the global quick-search context */
char *user = g_strdup_printf ("%s/searches.xml", evolution_dir);
- char *system = g_strdup (EVOLUTION_PRIVDATADIR "/vfoldertypes.xml");
+ char *system = g_strdup (EVOLUTION_PRIVDATADIR "/searchtypes.xml");
search_context = rule_context_new ();
g_object_set_data_full(G_OBJECT(search_context), "user", user, g_free);
@@ -876,7 +879,7 @@ handle_external_uri_cb (EvolutionShellComponent *shell_component,
/* FIXME: Sigh. This shouldn't be here. But the code is messy, so
I'll just put it here anyway. */
- send_to_url (uri, NULL);
+ em_utils_compose_new_message_with_mailto(NULL, uri);
}
static void
@@ -887,10 +890,11 @@ user_create_new_item_cb (EvolutionShellComponent *shell_component,
gpointer data)
{
if (!strcmp (id, "message")) {
- send_to_url (NULL, parent_folder_physical_uri);
+ em_utils_compose_new_message_with_mailto(NULL, NULL);
+ /*send_to_url (NULL, parent_folder_physical_uri);*/
return;
} else if (!strcmp (id, "post")) {
- post_to_url (parent_folder_physical_uri);
+ em_utils_post_to_url (NULL, parent_folder_physical_uri);
return;
}
@@ -928,7 +932,7 @@ owner_unset_cb (EvolutionShellComponent *shell_component, gpointer user_data)
g_signal_handler_disconnect((GtkObject *)shell_component, shell_component_handlers[i].hand);
if (gconf_client_get_bool (gconf, "/apps/evolution/mail/trash/empty_on_exit", NULL))
- empty_trash (NULL, NULL, NULL);
+ em_utils_empty_trash(NULL);
unref_standard_folders ();
mail_local_storage_shutdown ();
@@ -1617,7 +1621,7 @@ factory (BonoboGenericFactory *factory,
|| strcmp (component_id, MAIL_COMPOSER_PREFS_CONTROL_ID) == 0)
return mail_config_control_factory_cb (factory, component_id, evolution_shell_client_corba_objref (global_shell_client));
else if (strcmp(component_id, COMPOSER_IID) == 0)
- return (BonoboObject *)evolution_composer_new(composer_send_cb, composer_save_draft_cb);
+ return (BonoboObject *)evolution_composer_new(em_utils_composer_send_cb, em_utils_composer_save_draft_cb);
g_warning (FACTORY_ID ": Don't know what to do with %s", component_id);
return NULL;