After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 691121 - sourceview: Detect that a ifile_open() is a reload and save marks and position.
sourceview: Detect that a ifile_open() is a reload and save marks and position.
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: editor: gtksourceview
unspecified
Other All
: Normal normal
: ---
Assigned To: Johannes Schmid
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-04 10:53 UTC by Carl-Anton Ingmarsson
Modified: 2013-01-04 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sourceview: Detect that a ifile_open() is a reload and save marks and position. (1.80 KB, patch)
2013-01-04 10:53 UTC, Carl-Anton Ingmarsson
accepted-commit_now Details | Review

Description Carl-Anton Ingmarsson 2013-01-04 10:53:13 UTC
See attached patch.
Comment 1 Carl-Anton Ingmarsson 2013-01-04 10:53:15 UTC
Created attachment 232723 [details] [review]
sourceview: Detect that a ifile_open() is a reload and save marks and position.

So that when a document is reloaded from outside sourceview, marks
and position is restored. Eg. when a reload is triggered from the
DocumentManager menu item.
Comment 2 Johannes Schmid 2013-01-04 11:39:30 UTC
Review of attachment 232723 [details] [review]:

Thanks! Actually thanks for cleaning up the code of the sourceview plugin so much. It has been growing over time and some things aren't very elegant anymore.