diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-01-17 13:45:49 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-01-17 19:06:08 (GMT) |
commit | d13bccd74759cd1c63a2036c279f04d9f052ecf3 (patch) | |
tree | adbd0b9d915748a2b46070282c07b3f16033d89e /src/gtkext | |
parent | 52ac5b1b340335f56ceb599dba63164a26f10b10 (diff) |
Updated access to the Edition menu based on the current selection.
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkviewpanel.c | 3 |
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; |