aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/component-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'my-evolution/component-factory.c')
-rw-r--r--my-evolution/component-factory.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/my-evolution/component-factory.c b/my-evolution/component-factory.c
index a60bd2374a..e04e8ca3f7 100644
--- a/my-evolution/component-factory.c
+++ b/my-evolution/component-factory.c
@@ -28,14 +28,13 @@
#include <bonobo/bonobo-generic-factory.h>
#include <bonobo/bonobo-context.h>
#include <bonobo/bonobo-shlib-factory.h>
+#include <bonobo/bonobo-main.h>
#include <shell/evolution-shell-component.h>
#include <shell/Evolution.h>
#include <gal/widgets/e-gui-utils.h>
-#include <gtk/gtkmain.h>
-
#include "e-summary-factory.h"
#include "e-summary-offline-handler.h"
#include "e-summary.h"
@@ -109,20 +108,17 @@ static void
owner_unset_cb (EvolutionShellComponent *shell_component,
gpointer user_data)
{
- gtk_main_quit ();
+ bonobo_main_quit ();
}
static void
component_destroy (BonoboObject *factory,
- gpointer user_data)
+ gpointer user_data)
{
running_objects--;
- if (running_objects > 0) {
+ if (running_objects > 0)
return;
- }
-
- gtk_main_quit ();
}
static BonoboObject *