summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkdockstation.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-04-01 11:44:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-04-01 11:44:00 (GMT)
commitc989181c56ff97d2c4918c0e9028762a1ed46623 (patch)
tree24a413f71c65d90994e435bf86f5c85ab732a244 /src/gtkext/gtkdockstation.c
parenta174ee784f5d9e554ed09181b8e6d8c0205f8ef5 (diff)
Moved all the File menu entries in the GUI menu.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@242 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkdockstation.c')
-rw-r--r--src/gtkext/gtkdockstation.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/gtkext/gtkdockstation.c b/src/gtkext/gtkdockstation.c
index d85d11e..a91998e 100644
--- a/src/gtkext/gtkdockstation.c
+++ b/src/gtkext/gtkdockstation.c
@@ -275,6 +275,33 @@ void gtk_dock_panel_change_active_widget(GtkDockStation *station, GtkWidget *wid
* *
* Paramètres : station = plateforme GTK à compléter. *
* widget = nouvel élément à intégrer. *
+* *
+* Description : Retire un paquet d'informations de l'affichage centralisé. *
+* *
+* Retour : - *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+void gtk_dock_panel_remove_widget(GtkDockStation *station, GtkWidget *widget)
+{
+ gint index; /* Indice de l'onglet visé */
+
+ index = gtk_notebook_page_num(station->notebook, widget);
+
+ gtk_notebook_remove_page(station->notebook, index);
+
+ if (gtk_notebook_get_n_pages(station->notebook) == 0)
+ gtk_container_remove(gtk_widget_get_parent(GTK_WIDGET(station)), GTK_WIDGET(station));
+
+}
+
+
+/******************************************************************************
+* *
+* Paramètres : station = plateforme GTK à compléter. *
+* widget = nouvel élément à intégrer. *
* caption = intitulé court à afficher sur les onglets. *
* *
* Description : Met à jour, si besoin est, le titre de l'affichage concentré.*