From e0ef7f6f5919d45394635c26c30afb2e7c3d9fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 29 Aug 2018 13:29:07 +0200 Subject: [PATCH] main: Factor out the appliction ID --- src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 591ea68..f74827b 100644 --- a/src/main.c +++ b/src/main.c @@ -31,6 +31,8 @@ #include "calls-main-window.h" #include "calls-mm-provider.h" +#define APP_ID "sm.puri.Calls" + static void show_window (GtkApplication *app) { @@ -67,7 +69,7 @@ main (int argc, GtkApplication *app; int status; - app = gtk_application_new ("sm.puri.Calls", G_APPLICATION_FLAGS_NONE); + app = gtk_application_new (APP_ID, G_APPLICATION_FLAGS_NONE); g_signal_connect (app, "activate", G_CALLBACK (show_window), NULL); status = g_application_run (G_APPLICATION (app), argc, argv); g_object_unref (app);