[gcalctool] Allow multiple instances of gcalctool



commit c0874ecc4df2a788060eccae6e7be79e70b44b44
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Sep 13 15:39:01 2012 +1200

    Allow multiple instances of gcalctool

 NEWS            |    4 ++++
 src/gcalctool.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/NEWS b/NEWS
index 0e7f0c1..a3f6f7b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Overview of changes in gcalctool 6.5.92
+
+    * Allow multiple instances of gcalctool
+
 Overview of changes in gcalctool 6.5.91
 
     * Translation updates
diff --git a/src/gcalctool.c b/src/gcalctool.c
index 78ab311..e481d37 100644
--- a/src/gcalctool.c
+++ b/src/gcalctool.c
@@ -568,7 +568,7 @@ main(int argc, char **argv)
 
     gtk_window_set_default_icon_name("accessories-calculator");
 
-    app = gtk_application_new("org.gnome.gcalctool", G_APPLICATION_FLAGS_NONE);
+    app = gtk_application_new(NULL, G_APPLICATION_NON_UNIQUE);
     g_signal_connect(app, "startup", G_CALLBACK(startup_cb), NULL);
     g_signal_connect(app, "activate", G_CALLBACK(activate_cb), NULL);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]