diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-06-10 03:19:36 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-06-10 03:19:36 +0800 |
commit | 7f36752a67c274640378ec096f37e690fd5ca8ed (patch) | |
tree | dcc3124da275074dcf11803bb553d2af384858db /mail | |
parent | 59d329b5b090175e2ea5ffd06cb20dfcd41a7688 (diff) | |
download | gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.gz gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.tar.zst gsoc2013-evolution-7f36752a67c274640378ec096f37e690fd5ca8ed.zip |
Initial support for creating/removing folders. This implies some new
IDL methods and new functions to implement on the component side. I
have also added a simple folder creation dialog in the shell. It's
quite unfinished and untested.
svn path=/trunk/; revision=3491
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 8 | ||||
-rw-r--r-- | mail/component-factory.c | 13 |
2 files changed, 18 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 8c7a6daed5..28dbdbfa72 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2000-06-09 Ettore Perazzoli <ettore@helixcode.com> + + * component-factory.c (create_view): Updated to match the changes + to the definition of `EvolutionShellComponentCreateFn'. If @type + is not "mail", return an "unsupported type" error. + (factory_fn): Pass NULL for the `remove_folder' and + `create_folder' functions. + 2000-06-09 Dan Winship <danw@helixcode.com> * mail-format.c: Redo things a bit so that whitespace-only diff --git a/mail/component-factory.c b/mail/component-factory.c index adc8380754..0452efb846 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -59,14 +59,19 @@ static GList *browsers; /* EvolutionShellComponent methods and signals. */ -static BonoboControl * +static EvolutionShellComponentResult create_view (EvolutionShellComponent *shell_component, const char *physical_uri, + const char *folder_type, + BonoboControl **control_return, void *closure) { BonoboControl *control; GtkWidget *folder_browser_widget; + if (g_strcasecmp (folder_type, "mail") != 0) + return EVOLUTION_SHELL_COMPONENT_UNSUPPORTEDTYPE; + control = folder_browser_factory_new_control (); folder_browser_widget = bonobo_control_get_widget (control); @@ -83,7 +88,9 @@ create_view (EvolutionShellComponent *shell_component, /* FIXME: This never fails. :-/ */ folder_browser_set_uri (FOLDER_BROWSER (folder_browser_widget), physical_uri); - return control; + *control_return = control; + + return EVOLUTION_SHELL_COMPONENT_OK; } static void @@ -123,7 +130,7 @@ factory_fn (BonoboGenericFactory *factory, { EvolutionShellComponent *shell_component; - shell_component = evolution_shell_component_new (folder_types, create_view, NULL); + shell_component = evolution_shell_component_new (folder_types, create_view, NULL, NULL, NULL); gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set", GTK_SIGNAL_FUNC (owner_set_cb), NULL); |