summaryrefslogtreecommitdiff
path: root/src/app.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-07-21 23:04:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-07-21 23:04:53 (GMT)
commitd1874bdcaf52717ebf6f808010d275ca1f1693f3 (patch)
treec47941b305f6d4867e91edbb0b90e69f63778072 /src/app.h
parente4ccb9e56e822628e299527fee0b7325f0d25662 (diff)
Separate the GTK application and the GTK main window.
Diffstat (limited to 'src/app.h')
-rw-r--r--src/app.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/src/app.h b/src/app.h
index 7696df5..645fa6b 100644
--- a/src/app.h
+++ b/src/app.h
@@ -25,9 +25,31 @@
#define _APP_H
+#include <gtk/gtk.h>
-/* Installe au besoin une définition locale pour le système. */
-void ensure_wm_icon_and_name(void);
+
+#include "glibext/helpers.h"
+
+
+
+/* --------------------- DEFINITION D'APPLICATION PERSONNALISEE --------------------- */
+
+
+#define GTK_TYPE_CHRYSALIDE_FRAMEWORK (gtk_chrysalide_framework_get_type())
+
+DECLARE_GTYPE(GtkChrysalideFramework, gtk_chrysalide_framework, GTK, CHRYSALIDE_FRAMEWORK);
+
+
+/* Crée une nouvelle application principale pour Chrysalide. */
+GtkChrysalideFramework *gtk_chrysalide_framework_new(void);
+
+
+
+/* ---------------------- POINT D'ENTREE PRINCIPAL D'EXECUTION ---------------------- */
+
+
+/* Point d'entrée du programme. */
+int main(int, char **);