summaryrefslogtreecommitdiff
path: root/src/gui/panels
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/panels')
-rw-r--r--src/gui/panels/panel.c24
-rw-r--r--src/gui/panels/panel.h3
2 files changed, 27 insertions, 0 deletions
diff --git a/src/gui/panels/panel.c b/src/gui/panels/panel.c
index a12c675..b13c074 100644
--- a/src/gui/panels/panel.c
+++ b/src/gui/panels/panel.c
@@ -285,6 +285,30 @@ void g_panel_item_dock(GPanelItem *item)
/******************************************************************************
* *
+* Paramètres : item = composant à retirer de l'affichage. *
+* *
+* Description : Supprime un panneau de l'ensemble affiché. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void g_panel_item_undock(GPanelItem *item)
+{
+ GtkWidget *station; /* Base du remplacement */
+
+ station = gtk_widget_get_parent(G_EDITOR_ITEM(item)->widget); /* NoteBook */
+ station = gtk_widget_get_parent(station); /* DockStation */
+
+ gtk_dock_panel_remove_widget(GTK_DOCK_STATION(station), G_EDITOR_ITEM(item)->widget);
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : base = support sujet à analyse. *
* pos = position de la tête de lecture dans le chemin. *
* target = indentifiant de positionnement recherché. *
diff --git a/src/gui/panels/panel.h b/src/gui/panels/panel.h
index 9c6fa89..893c48b 100644
--- a/src/gui/panels/panel.h
+++ b/src/gui/panels/panel.h
@@ -57,6 +57,9 @@ GPanelItem *g_panel_item_get(const char *);
/* Place un panneau dans l'ensemble affiché. */
void g_panel_item_dock(GPanelItem *);
+/* Supprime un panneau de l'ensemble affiché. */
+void g_panel_item_undock(GPanelItem *);
+
/* ----------------------- PLACEMENTS DES DIFFERENTS PANNEAUX ----------------------- */