summaryrefslogtreecommitdiff
path: root/src/framework.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-07-02 06:27:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-07-02 06:27:09 (GMT)
commitd3c74213cf2306453b21779c80d05d121fbffe66 (patch)
tree4222409777f72f77238c95adba34ed5b07746567 /src/framework.c
parent21788df2799eb8976c1c68cd84abf0ffe92a7a45 (diff)
Ensure minimal desktop support for icon and name.
Diffstat (limited to 'src/framework.c')
-rw-r--r--src/framework.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/framework.c b/src/framework.c
index 96c97c3..9e4f81c 100644
--- a/src/framework.c
+++ b/src/framework.c
@@ -26,6 +26,7 @@
#include <gtk/gtk.h>
+#include "app.h" // REMME
#include "framework.h"
#include "glibext/helpers.h"
#include "gui/core/core.h"
@@ -37,6 +38,9 @@
/* --------------------- DEFINITION D'APPLICATION PERSONNALISEE --------------------- */
+#define CHRYSALIDE_APP_ID "re.chrysalide.framework.gui"
+
+
/* Définition de l'application principale graphique (instance) */
struct _GtkChrysalideFramework
{
@@ -197,7 +201,7 @@ GtkChrysalideFramework *gtk_chrysalide_framework_new(void)
GtkChrysalideFramework *result; /* Instance à retourner */
result = g_object_new(GTK_TYPE_CHRYSALIDE_FRAMEWORK,
- "application-id", "re.chrysalide.framework",
+ "application-id", CHRYSALIDE_APP_ID,
"flags", G_APPLICATION_DEFAULT_FLAGS,
NULL);
@@ -348,6 +352,8 @@ int main(int argc, char **argv)
if (!load_gui_components(AGC_BUFFER_FEATURES))
return EXIT_FAILURE;
+ ensure_wm_icon_and_name();
+
app = gtk_chrysalide_framework_new();
result = g_application_run(G_APPLICATION(app), argc, argv);