From f0bc602802fd56095886b1d6b1b054a44320973d Mon Sep 17 00:00:00 2001 From: Travis Reitter Date: Fri, 22 Oct 2010 11:41:47 -0700 Subject: Make the Empathy core program act as a unique app. This means that instances beyond the first simply raise the initial instance and exit. Helps bgo#632912. --- src/empathy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/empathy.c b/src/empathy.c index 6e47af2de..1081fd1b7 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -189,7 +189,6 @@ empathy_app_new (guint argc, self = g_object_new (EMPATHY_TYPE_APP, "application-id", EMPATHY_DBUS_NAME, - "flags", G_APPLICATION_IS_SERVICE, NULL); if (self == NULL) @@ -233,6 +232,8 @@ empathy_app_activate (GApplication *app) */ self->start_hidden = FALSE; + g_application_hold (G_APPLICATION (app)); + empathy_window_present (GTK_WINDOW (self->window)); /* Display the accounts dialog if needed */ @@ -685,7 +686,6 @@ main (int argc, char *argv[]) app = empathy_app_new (argc, (const gchar * const *) argv, no_connect, start_hidden); - g_application_hold (G_APPLICATION (app)); g_application_run (G_APPLICATION (app), argc, argv); notify_uninit (); -- cgit v1.2.3