GNOME Bugzilla – Bug 691090
sourceview: Add marks to an unloaded document the same way we reload marks.
Last modified: 2013-01-04 10:48:51 UTC
See attached patch.
Created attachment 232662 [details] [review] sourceview: Add marks to an unloaded document the same way we reload marks. Instead of using a lot of idle sources we can instead use the existing code for reloading marks to add the new mark when the document is loaded. This fixes a problem where the added idles would starve all other mainloop sources with a lower priority than G_PRIORITY_DEFAULT_IDLE. For example this would cause the loading of documents to completely fail when using GLib from git since the async read in sourceview-io.c uses G_PRIORITY_LOW. Previous versions of GLib would complete the asynchronous task using an idle with G_PRIORITY_DEFAULT regardless of the passed in priority. GLib from git instead completes the task using a idle with the passed in priority so the idle sources for adding marks now starves the completion of the asynchronous read.
Review of attachment 232662 [details] [review]: Looks good to me - thanks! It's sometimes interesting what the glib developers see as ABI stability... Could be related to #690676 in some way.
*** Bug 690676 has been marked as a duplicate of this bug. ***