GNOME Bugzilla – Bug 726618
Fix the file browser's "deleted" message bus signal
Last modified: 2015-02-18 16:34:37 UTC
The file browser is emitting the "deleted" message bus signal when the GtkTreeModel's "row-deleted" signal is emitted. However, because it requires some of the row's data to properly emit the signal it is too late. The docs for "row-deleted" are very specific about this: "This should be called by models after a row has been removed. The location pointed to by path should be the location that the row previously was at. It may not be a valid location anymore." To fix this a "before-row-deleted" signal should be emitted and connected to for the "deleted" message bus signal.
Created attachment 272259 [details] [review] Bug 726618 - Fix the file browser's "deleted" message bus signal Tested with a modified git plugin and the "deleted" message bus signal now works properly.
Review of attachment 272259 [details] [review]: Ok, looks good. But if it breaks something else you get to keep the pieces :)
Can we get this in early this cycle so we know if it breaks something?
Any chance we can get this pushed, it fixes the current issue with the "deleted" signal giving invalid data. This also means that the git plugin doesn't grow the list of file nodes until you navigate in the browser.
Review of attachment 272259 [details] [review]: Yes, let's push this
This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.