summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/menus/edition.c5
-rw-r--r--src/gui/menus/view.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/gui/menus/edition.c b/src/gui/menus/edition.c
index 3be2a8e..b507f0a 100644
--- a/src/gui/menus/edition.c
+++ b/src/gui/menus/edition.c
@@ -595,10 +595,7 @@ static void mcb_edition_bookmarks_toggle(GtkMenuItem *menuitem, GMenuBar *bar)
panel = g_editor_item_get_current_view(editem);
- if (!GTK_IS_BUFFER_VIEW(panel))
- curloc = NULL;
- else
- curloc = gtk_buffer_view_get_caret_location(GTK_BUFFER_VIEW(panel));
+ curloc = gtk_view_panel_get_caret_location(panel);
/* Accès à la collection */
diff --git a/src/gui/menus/view.c b/src/gui/menus/view.c
index def1859..d3bebc3 100644
--- a/src/gui/menus/view.c
+++ b/src/gui/menus/view.c
@@ -397,14 +397,12 @@ static void mcb_view_change_support(GtkRadioMenuItem *menuitem, GMenuBar *bar)
*
* - GtkBlockView / GtkGraphView / GtkSourceView (avec GtkViewport intégré)
* - 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(station); /* NoteBook */
station = gtk_widget_get_parent(station); /* DockStation */
binary = g_editor_item_get_current_binary(G_EDITOR_ITEM(bar));