diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-10-23 11:59:26 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-10-23 11:59:26 (GMT) |
commit | 3f05bacd4fec23824489b51d964a7ce3565bb85b (patch) | |
tree | 486cb1d96c11a33385a2155d2f326b88aae08e16 /src/gtkext/gtkviewpanel.c | |
parent | fa30b0fb42d2e229de9f760bfa842f25738efc18 (diff) |
Memorized all creators of line content at the line level and saved memory.
Diffstat (limited to 'src/gtkext/gtkviewpanel.c')
-rw-r--r-- | src/gtkext/gtkviewpanel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gtkext/gtkviewpanel.c b/src/gtkext/gtkviewpanel.c index a39ea24..b7b58d9 100644 --- a/src/gtkext/gtkviewpanel.c +++ b/src/gtkext/gtkviewpanel.c @@ -1021,24 +1021,24 @@ void gtk_view_panel_request_move(GtkViewPanel *panel, const vmpa2t *addr) * * ******************************************************************************/ -bool gtk_view_panel_get_position(const GtkViewPanel *panel, GBufferLine **line, GBufferSegment **segment) +bool gtk_view_panel_get_position(const GtkViewPanel *panel, GBufferLine **line, GObject **creator) { bool result; /* Bilan de l'opération */ *line = NULL; - if (segment != NULL) *segment = NULL; + if (creator != NULL) *creator = NULL; if (GTK_VIEW_PANEL_GET_CLASS(panel)->get_position == NULL) return false; - result = GTK_VIEW_PANEL_GET_CLASS(panel)->get_position(panel, line, segment); + result = GTK_VIEW_PANEL_GET_CLASS(panel)->get_position(panel, line, creator); if (result) { g_object_ref(G_OBJECT(*line)); - if (segment != NULL && *segment != NULL) - g_object_ref(G_OBJECT(*segment)); + if (creator != NULL && *creator != NULL) + g_object_ref(G_OBJECT(*creator)); } |