aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-automation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-automation.c')
-rw-r--r--src/ephy-automation.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/ephy-automation.c b/src/ephy-automation.c
index 5980f9c09..0abb0d540 100644
--- a/src/ephy-automation.c
+++ b/src/ephy-automation.c
@@ -28,7 +28,6 @@
#include "ephy-bookmarks-import.h"
#include <string.h>
-#include <bonobo/bonobo-generic-factory.h>
#include <bonobo/bonobo-main.h>
#include <bonobo/bonobo-context.h>
@@ -75,18 +74,20 @@ ephy_automation_factory (BonoboGenericFactory *this_factory,
return BONOBO_OBJECT(a);
}
-BonoboObject *
-ephy_automation_new (void)
+BonoboGenericFactory *
+ephy_automation_factory_new (void)
{
- BonoboGenericFactory *factory;
+ BonoboGenericFactory *factory;
factory = bonobo_generic_factory_new (EPHY_FACTORY_OAFIID,
ephy_automation_factory,
NULL);
+ if (factory == NULL)
+ {
+ g_warning ("Could not initialize EphyAutomation factory");
+ }
- g_return_val_if_fail (factory != NULL, NULL);
-
- return BONOBO_OBJECT (factory);
+ return factory;
}
static void