summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/menus/view.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/menus/view.c b/src/gui/menus/view.c
index 9abcbd3..c907bc8 100644
--- a/src/gui/menus/view.c
+++ b/src/gui/menus/view.c
@@ -219,8 +219,7 @@ static void mcb_view_change_support(GtkRadioMenuItem *menuitem, GMenuBar *bar)
/**
* La hiérarchie des composants empilés est la suivante :
*
- * - GtkBlockView / GtkGraphView / GtkSourceView
- * - GtkViewport
+ * - GtkBlockView / GtkGraphView / GtkSourceView (avec GtkViewport intégré)
* - GtkScrolledWindow
* - GtkNotebook
* - GtkDockStation
@@ -228,8 +227,7 @@ static void mcb_view_change_support(GtkRadioMenuItem *menuitem, GMenuBar *bar)
*/
vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(bar));
- station = gtk_widget_get_parent(GTK_WIDGET(vpanel)); /* GtkViewport */
- station = gtk_widget_get_parent(GTK_WIDGET(station)); /* ScrollWindow */
+ station = gtk_widget_get_parent(GTK_WIDGET(vpanel)); /* ScrollWindow */
station = gtk_widget_get_parent(station); /* NoteBook */
station = gtk_widget_get_parent(station); /* DockStation */