[empathy] Make the Empathy core program act as a unique app.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Make the Empathy core program act as a unique app.
- Date: Fri, 29 Oct 2010 16:35:29 +0000 (UTC)
commit f0bc602802fd56095886b1d6b1b054a44320973d
Author: Travis Reitter <travis reitter collabora co uk>
Date: Fri Oct 22 11:41:47 2010 -0700
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy.c b/src/empathy.c
index 6e47af2..1081fd1 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]