summaryrefslogtreecommitdiff
path: root/src/gui/panels/welcome.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-07-20 23:23:43 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-07-20 23:23:43 (GMT)
commite4ccb9e56e822628e299527fee0b7325f0d25662 (patch)
tree10d5eb35fad4ba01b757d4c403c912f209eacb3e /src/gui/panels/welcome.h
parent9d0d5edf372a9f681bbfd0a3639ee8fc367ce96d (diff)
Prepare a welcome screen.
Diffstat (limited to 'src/gui/panels/welcome.h')
-rw-r--r--src/gui/panels/welcome.h38
1 files changed, 17 insertions, 21 deletions
diff --git a/src/gui/panels/welcome.h b/src/gui/panels/welcome.h
index 5cdd6a1..d267f80 100644
--- a/src/gui/panels/welcome.h
+++ b/src/gui/panels/welcome.h
@@ -2,7 +2,7 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
* welcome.h - prototypes pour le panneau d'accueil par défaut
*
- * Copyright (C) 2012-2019 Cyrille Bagard
+ * Copyright (C) 2012-2024 Cyrille Bagard
*
* This file is part of Chrysalide.
*
@@ -26,42 +26,38 @@
#define _GUI_PANELS_WELCOME_H
-#include <i18n.h>
+#include <gtk/gtk.h>
#include "../panel.h"
+#include "../../glibext/helpers.h"
+#include "../../gtkext/panel.h"
-#define PANEL_WELCOME_ID "welcome"
+/* ------------------------- COEUR D'UN PANNEAU D'AFFICHAGE ------------------------- */
-#define G_TYPE_WELCOME_PANEL g_welcome_panel_get_type()
-#define G_WELCOME_PANEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_welcome_panel_get_type(), GWelcomePanel))
-#define G_IS_WELCOME_PANEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_welcome_panel_get_type()))
-#define G_WELCOME_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_WELCOME_PANEL, GWelcomePanelClass))
-#define G_IS_WELCOME_PANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_WELCOME_PANEL))
-#define G_WELCOME_PANEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_WELCOME_PANEL, GWelcomePanelClass))
+#define GTK_TYPE_WELCOME_PANEL (gtk_welcome_panel_get_type())
+DECLARE_GTYPE(GtkWelcomePanel, gtk_welcome_panel, GTK, WELCOME_PANEL);
-/* Panneau d'accueil par défaut (instance) */
-typedef struct _GWelcomePanel GWelcomePanel;
-/* Panneau d'accueil par défaut (classe) */
-typedef struct _GWelcomePanelClass GWelcomePanelClass;
+/* Crée une nouvelle instance de panneau d'accueil. */
+GtkTiledPanel *gtk_welcome_panel_new(void);
-/* Indique le type défini pour un panneau d'accueil. */
-GType g_welcome_panel_get_type(void);
-/* Crée un panneau d'accueil par défaut. */
-GPanelItem *g_welcome_panel_new(void);
+/* ---------------------- MANIPULATIONS D'UN PANNEAU GRAPHIQUE ---------------------- */
+
+
+#define G_TYPE_WELCOME_PANEL (g_welcome_panel_get_type())
-/* Indique l'origine de l'affichage du panneau d'accueil. */
-bool g_welcome_panel_get_user_origin(const GWelcomePanel *);
+DECLARE_GTYPE(GWelcomePanel, g_welcome_panel, G, WELCOME_PANEL);
-/* Détermine l'origine de l'affichage du panneau d'accueil. */
-void g_welcome_panel_set_user_origin(GWelcomePanel *, bool);
+
+/* Constitue une définition de manipulation de panneau. */
+GPanelItem *g_welcome_panel_new(void);