diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2014-06-04 22:44:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2014-06-04 22:44:21 (GMT) |
commit | 11395d684736467fb010b93b0eaeefcc06bf0f5e (patch) | |
tree | d9f9e06d27f5b8721f308b6b4636cd043e4f7d20 /src/gui/menus | |
parent | 83ba2204e700501023cb78dfd84978c611fe61b0 (diff) |
Fixed bugs when dealing with views and updated the code for GTK3.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@378 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/menus')
-rw-r--r-- | src/gui/menus/view.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/menus/view.c b/src/gui/menus/view.c index 0bcc2fe..511d9db 100644 --- a/src/gui/menus/view.c +++ b/src/gui/menus/view.c @@ -192,8 +192,20 @@ static void mcb_view_change_support(GtkRadioMenuItem *menuitem, GMenuBar *bar) view = GPOINTER_TO_UINT(g_object_get_data(G_OBJECT(iter->data), "kind_of_view")); + /** + * La hiérarchie des composants empilés est la suivante : + * + * - GtkBlockView / GtkGraphView / GtkSourceView + * - GtkViewport + * - GtkScrolledWindow + * - GtkNotebook + * - GtkDockStation + * + */ + vpanel = g_editor_item_get_current_view(G_EDITOR_ITEM(bar)); - station = gtk_widget_get_parent(GTK_WIDGET(vpanel)); /* ScrollWindow */ + station = gtk_widget_get_parent(GTK_WIDGET(vpanel)); /* GtkViewport */ + station = gtk_widget_get_parent(GTK_WIDGET(station)); /* ScrollWindow */ station = gtk_widget_get_parent(station); /* NoteBook */ station = gtk_widget_get_parent(station); /* DockStation */ |