diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-29 16:14:19 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 2000-01-29 16:14:19 +0800 |
commit | 542fbe8d77f0505bf4e8ef4b03e8e2a1762309e6 (patch) | |
tree | f7d7890d9c359d0b8e26f8585a5043f6a6beb169 /mail/folder-browser-factory.c | |
parent | 12ba6679acf39fabedc1748a57998a418e549df6 (diff) | |
download | gsoc2013-evolution-542fbe8d77f0505bf4e8ef4b03e8e2a1762309e6.tar gsoc2013-evolution-542fbe8d77f0505bf4e8ef4b03e8e2a1762309e6.tar.gz gsoc2013-evolution-542fbe8d77f0505bf4e8ef4b03e8e2a1762309e6.tar.bz2 gsoc2013-evolution-542fbe8d77f0505bf4e8ef4b03e8e2a1762309e6.tar.lz gsoc2013-evolution-542fbe8d77f0505bf4e8ef4b03e8e2a1762309e6.tar.xz gsoc2013-evolution-542fbe8d77f0505bf4e8ef4b03e8e2a1762309e6.tar.zst gsoc2013-evolution-542fbe8d77f0505bf4e8ef4b03e8e2a1762309e6.zip |
Work on the factoyr
svn path=/trunk/; revision=1651
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r-- | mail/folder-browser-factory.c | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index 17947b5f71..ed4f8b580c 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -11,14 +11,38 @@ #include <bonobo/bonobo-main.h> #include <bonobo/bonobo-object.h> #include <bonobo/bonobo-generic-factory.h> +#include <bonobo/bonobo-control.h> #include "e-util/e-util.h" +#include "e-util/e-gui-utils.h" +#include "folder-browser.h" +#include "main.h" +/* + * Creates the Folder Browser, wraps it in a Bonobo Control, and + * sets the Bonobo Control properties to point to the Folder Browser + * Properties + */ static BonoboObject * folder_browser_factory (BonoboGenericFactory *factory, void *closure) { - g_error ("Fill me in!"); - - return NULL; + BonoboControl *control; + GtkWidget *folder_browser; + + folder_browser = folder_browser_new (); + if (folder_browser == NULL) + return NULL; + + control = bonobo_control_new (folder_browser); + if (control == NULL){ + gtk_object_destroy (GTK_OBJECT (folder_browser)); + return NULL; + } + + bonobo_control_set_property_bag ( + control, + FOLDER_BROWSER (folder_browser)->properties); + + return BONOBO_OBJECT (control); } void |