Summary Files Commits Branches @commit @diff @stats
path: root / badwolf.c
diff options
context:
space:
mode:
Commitffc2fc8762f7f496162e4c2fa0d535a9fe1a27fe (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-03-14 10:12:06 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-09-17 06:56:54 +0200
Files96dccbd953f77d158d8ee58bab9e25c25b370175 /badwolf.c
goodwolf-ffc2fc8762f7f496162e4c2fa0d535a9fe1a27fe.tar
goodwolf-ffc2fc8762f7f496162e4c2fa0d535a9fe1a27fe.tar.gz
goodwolf-ffc2fc8762f7f496162e4c2fa0d535a9fe1a27fe.zip
Parent6ee5839da2515bd3d44f549b10da4363b48ae685 (diff)
Initialize a GApplication
1 files changed, 7 insertions, 0 deletions
-rw-r--r--badwolf.c7
diff --git a/badwolf.c b/badwolf.c
index 1202944..6ef4cf3 100644
--- a/badwolf.c
+++ b/badwolf.c
@@ -1035,11 +1035,18 @@ int
main(int argc, char *argv[])
{
struct Window *window = &(struct Window){NULL, NULL, NULL, NULL, NULL, NULL};
+ GApplication *application;
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, DATADIR "/locale");
bind_textdomain_codeset(PACKAGE, "UTF-8");
textdomain(PACKAGE);
+ application = g_application_new("me.hacktivis.badwolf",
+ G_APPLICATION_HANDLES_COMMAND_LINE |
+ G_APPLICATION_SEND_ENVIRONMENT | G_APPLICATION_NON_UNIQUE);
+ g_application_register(application, NULL, NULL);
+ //g_application_activate(application);
+
gtk_init(&argc, &argv);
fprintf(stderr, _("Running Badwolf version: %s\n"), version);