summaryrefslogtreecommitdiff
path: root/src/gtkext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-01-17 13:45:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-01-17 19:06:08 (GMT)
commitd13bccd74759cd1c63a2036c279f04d9f052ecf3 (patch)
treeadbd0b9d915748a2b46070282c07b3f16033d89e /src/gtkext
parent52ac5b1b340335f56ceb599dba63164a26f10b10 (diff)
Updated access to the Edition menu based on the current selection.
Diffstat (limited to 'src/gtkext')
-rw-r--r--src/gtkext/gtkviewpanel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gtkext/gtkviewpanel.c b/src/gtkext/gtkviewpanel.c
index 091482b..861b46f 100644
--- a/src/gtkext/gtkviewpanel.c
+++ b/src/gtkext/gtkviewpanel.c
@@ -903,6 +903,9 @@ bool gtk_view_panel_get_position(const GtkViewPanel *panel, GBufferLine **line,
{
bool result; /* Bilan de l'opération */
+ *line = NULL;
+ if (segment != NULL) *segment = NULL;
+
if (GTK_VIEW_PANEL_GET_CLASS(panel)->get_position == NULL)
return false;