diff options
Diffstat (limited to 'src/gui/panels/panel.h')
-rw-r--r-- | src/gui/panels/panel.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/gui/panels/panel.h b/src/gui/panels/panel.h index bdeffcc..b293fd3 100644 --- a/src/gui/panels/panel.h +++ b/src/gui/panels/panel.h @@ -31,9 +31,13 @@ #include "../editem.h" #include "../../glibext/configuration.h" +#include "../../gtkext/gtkstatusstack.h" +/* ------------------------- BASE D'UN PANNEAU POUR EDITEUR ------------------------- */ + + #define G_TYPE_PANEL_ITEM g_panel_item_get_type() #define G_PANEL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_panel_item_get_type(), GPanelItem)) #define G_IS_PANEL_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_panel_item_get_type())) @@ -101,4 +105,34 @@ void g_panel_item_undock(GPanelItem *); +/* ---------------------------- AIDE POUR LA MISE A JOUR ---------------------------- */ + + +#define G_TYPE_PANEL_UPDATE g_panel_update_get_type() +#define G_PANEL_UPDATE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_PANEL_UPDATE, GRoutinesStudy)) +#define G_IS_PANEL_UPDATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_PANEL_UPDATE)) +#define G_PANEL_UPDATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_PANEL_UPDATE, GRoutinesStudyClass)) +#define G_IS_PANEL_UPDATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_PANEL_UPDATE)) +#define G_PANEL_UPDATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_PANEL_UPDATE, GRoutinesStudyClass)) + + +/* Procédure de mise à jour de panneau graphique (instance) */ +typedef struct _GPanelUpdate GPanelUpdate; + +/* Procédure de mise à jour de panneau graphique (classe) */ +typedef struct _GPanelUpdateClass GPanelUpdateClass; + + +/* Assure l'étude des routines en différé. */ +typedef void (* pu_fallback_cb) (GPanelItem *, GtkStatusStack *, activity_id_t); + + +/* Indique le type défini pour les tâches d'étude de routines. */ +GType g_panel_update_get_type(void); + +/* Crée une tâche de mise à jour non bloquante. */ +GPanelUpdate *g_panel_update_new(GPanelItem *, const char *, size_t, pu_fallback_cb); + + + #endif /* _GUI_PANELS_PANEL_H */ |