aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2004-05-12 03:29:49 +0800
committerDan Winship <danw@src.gnome.org>2004-05-12 03:29:49 +0800
commitc0c98fc178b604a10c4b15d3ff1c73b50ccf8d6f (patch)
tree654bbd8862b56d8f5810beb14fdabb3ccb0b527e /mail/mail-component.c
parent1b15216f5e285a231bcf5c7165be88607642c259 (diff)
downloadgsoc2013-evolution-c0c98fc178b604a10c4b15d3ff1c73b50ccf8d6f.tar.gz
gsoc2013-evolution-c0c98fc178b604a10c4b15d3ff1c73b50ccf8d6f.tar.zst
gsoc2013-evolution-c0c98fc178b604a10c4b15d3ff1c73b50ccf8d6f.zip
Remove the mail folder control factory
* GNOME_Evolution_Mail.server.in.in: Remove the mail folder control factory * mail-component-factory.c (factory): Remove support for the mail folder control * mail-component.c: Remove the property bag stuff (mail_control_new): Gone svn path=/trunk/; revision=25858
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index 227fa3df34..71b82f89fd 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -331,42 +331,6 @@ folder_selected_cb (EMFolderTree *emft, const char *path, const char *uri, guint
em_folder_view_set_folder_uri (view, uri);
}
-#define PROPERTY_FOLDER_URI "folder_uri"
-#define PROPERTY_FOLDER_URI_IDX 1
-
-static void
-set_prop(BonoboPropertyBag *bag, const BonoboArg *arg, guint arg_id, CORBA_Environment *ev, gpointer user_data)
-{
- EMFolderView *view = (EMFolderView *)bonobo_control_get_widget (user_data);
-
- switch (arg_id) {
- case PROPERTY_FOLDER_URI_IDX:
- em_folder_view_set_folder_uri (view, BONOBO_ARG_GET_STRING (arg));
- break;
- default:
- g_warning ("Unhandled arg %d\n", arg_id);
- break;
- }
-}
-
-static void
-get_prop(BonoboPropertyBag *bag, BonoboArg *arg, guint arg_id, CORBA_Environment *ev, gpointer user_data)
-{
- GtkWidget *widget = bonobo_control_get_widget (user_data);
- EMFolderView *view = (EMFolderView *)widget;
-
- switch (arg_id) {
- case PROPERTY_FOLDER_URI_IDX:
- if (view->folder_uri)
- BONOBO_ARG_SET_STRING (arg, view->folder_uri);
- else
- BONOBO_ARG_SET_STRING (arg, "");
- break;
- default:
- g_warning ("Unhandled arg %d\n", arg_id);
- }
-}
-
static int
check_autosave(void *data)
{
@@ -850,38 +814,6 @@ mail_component_init (MailComponent *component)
}
/* Public API. */
-BonoboControl *
-mail_control_new (void)
-{
- BonoboControl *view_control;
- GtkWidget *view_widget;
- BonoboPropertyBag *pbag;
-
- view_widget = em_folder_browser_new ();
- em_folder_view_set_statusbar ((EMFolderView *) view_widget, FALSE);
- gtk_widget_show (view_widget);
-
- view_control = bonobo_control_new (view_widget);
- pbag = bonobo_property_bag_new (get_prop, set_prop, view_control);
-
- bonobo_property_bag_add (pbag,
- PROPERTY_FOLDER_URI,
- PROPERTY_FOLDER_URI_IDX,
- BONOBO_ARG_STRING,
- NULL,
- _("URI of the mail source that the view will display"),
- 0);
-
- bonobo_control_set_properties (view_control,
- bonobo_object_corba_objref (BONOBO_OBJECT (pbag)),
- NULL);
- bonobo_object_unref (BONOBO_OBJECT (pbag));
-
- g_signal_connect (view_control, "activate", G_CALLBACK (view_control_activate_cb), view_widget);
-
- return view_control;
-}
-
MailComponent *
mail_component_peek (void)
{