summaryrefslogtreecommitdiff
path: root/src/gui/panels/panel-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels/panel-int.h')
-rw-r--r--src/gui/panels/panel-int.h57
1 files changed, 6 insertions, 51 deletions
diff --git a/src/gui/panels/panel-int.h b/src/gui/panels/panel-int.h
index e902722..5e906f0 100644
--- a/src/gui/panels/panel-int.h
+++ b/src/gui/panels/panel-int.h
@@ -54,52 +54,6 @@ struct _GPanelItem
};
-
-/* Elément de la hiérarchie des panneaux */
-typedef struct _panel_node
-{
- struct _panel_node *parent; /* Noeud parent */
-
- union
- {
- GtkWidget *widget; /* Accès généraliste */
- GtkWidget *station; /* Station d'accueil simple */
- GtkWidget *paned; /* Station d'accueil composée */
-
- };
-
- union
- {
- /* Version simple */
- struct
- {
- char *path; /* Chemin du nom courant */
- };
-
- /* Version composée */
- struct
- {
- struct _panel_node *first; /* Premier sous élément */
- struct _panel_node *second; /* Second sous élément */
- };
-
- };
-
-} panel_node;
-
-
-
-#define IS_SIMPLE_NODE(nd) \
- ({ \
- bool __result; \
- __result = GTK_IS_DOCK_STATION(nd->station); \
- assert(__result || GTK_IS_PANED(nd->paned)); \
- __result; \
- })
-
-
-
-
/* Elément réactif pour panneaux de l'éditeur (classe) */
struct _GPanelItemClass
{
@@ -108,7 +62,12 @@ struct _GPanelItemClass
bool unique; /* Panneau instanciable ? */
const char *bindings; /* Raccourci clavier éventuel */
- GtkBin *first; /* Elément racine */
+ //GtkBin *first; /* Elément racine */
+
+ /* Signaux */
+
+ void (* dock_request) (GPanelItem);
+ void (* undock_request) (GPanelItem);
};
@@ -117,9 +76,5 @@ struct _GPanelItemClass
#define panels_list_for_each(pos, head) dl_list_for_each(pos, head, GPanelItem, link)
-/* Initialise dynamique les propriétés de l'instance. */
-void g_panel_item_init_ext(GPanelItem *, GObject *, const char *, const char *, GtkWidget *, const char *);
-
-
#endif /* _GUI_PANELS_PANEL_INT_H */