summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-03-26 21:21:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-03-26 21:21:24 (GMT)
commit4bc86c5dc8d3cfa9780103b56f52024a49913c22 (patch)
treeb71c0e7868441fa22067d6dc1bad0cfcc8bbec1d /src/gui
parent9895df71ae6ea14e09478cc243227b7b3a2139a3 (diff)
Fixed various bugs and mistakes.
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));