aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
authornobody <nobody@localhost>2000-02-13 19:05:13 +0800
committernobody <nobody@localhost>2000-02-13 19:05:13 +0800
commit8d3ccb45384f0af6138789980457ad936e806f29 (patch)
tree4ff302f0a139afe3dbe3cc9d5b9cf48bc1298844 /mail/folder-browser-factory.c
parent25faacf1396a1221114733e7a12c89d502c7212d (diff)
downloadgsoc2013-evolution-BEFORE_PARSER_REWRITE.tar.gz
gsoc2013-evolution-BEFORE_PARSER_REWRITE.tar.zst
gsoc2013-evolution-BEFORE_PARSER_REWRITE.zip
This commit was manufactured by cvs2svn to create tagBEFORE_PARSER_REWRITE
'BEFORE_PARSER_REWRITE'. svn path=/tags/BEFORE_PARSER_REWRITE/; revision=1749
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c66
1 files changed, 0 insertions, 66 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
deleted file mode 100644
index fd696395b8..0000000000
--- a/mail/folder-browser-factory.c
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * folder-browser-factory.c: A Bonobo Control factory for Folder Browsers
- *
- * Author:
- * Miguel de Icaza (miguel@helixcode.com)
- *
- * (C) 2000 Helix Code, Inc.
- */
-#include <config.h>
-#include <gnome.h>
-#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)
-{
- 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
-folder_browser_factory_init (void)
-{
- static BonoboGenericFactory *bonobo_folder_browser_factory = NULL;
-
- if (bonobo_folder_browser_factory != NULL)
- return;
-
- bonobo_folder_browser_factory =
- bonobo_generic_factory_new (
- "GOADID:Evolution:FolderBrowserFactory:1.0",
- folder_browser_factory, NULL);
-
- if (bonobo_folder_browser_factory == NULL){
- e_notice (NULL, GNOME_MESSAGE_BOX_ERROR,
- _("We are sorry, Evolution's Folder Browser can not be initialized."));
- exit (1);
- }
-}