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 704087 - GtkPlacesSidebar shouldn't open a bookmark when the activation is caused by clicking eject
GtkPlacesSidebar shouldn't open a bookmark when the activation is caused by c...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2013-07-12 12:44 UTC by Joshua Lock
Modified: 2013-09-21 02:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
places sidebar: don't open a bookmark when clicking eject (1.07 KB, patch)
2013-07-12 12:44 UTC, Joshua Lock
none Details | Review

Description Joshua Lock 2013-07-12 12:44:53 UTC
Created attachment 248999 [details] [review]
places sidebar: don't open a bookmark when clicking eject

Per the summary and bug 699183 filed against nautilus 3.8.x when the user activates a bookmark in the GtkPlacesSidebar by clicking the eject button we shouldn't open the bookmark as it's about to go away.

Find attached a port of the patch from nautilus to gtk+
Comment 1 Adam Williamson 2013-09-17 22:28:56 UTC
This is still valid and kinda silly, I see it all the time...
Comment 2 Federico Mena Quintero 2013-09-19 23:23:24 UTC
Thanks for catching this.  I pushed your patch to master as commit 24751cb.
Comment 3 Adam Williamson 2013-09-20 04:03:12 UTC
the bug still seems to affect nautilus in latest 3.9 here, note, so I'm not sure the patch is sufficient.
Comment 4 Federico Mena Quintero 2013-09-20 17:35:52 UTC
I tested this with gtk+ master and its own testfilechooser, not with Nautilus.  I'm jhbuliding up to Nautilus now to test it there.
Comment 5 Adam Williamson 2013-09-20 19:11:33 UTC
it may be just that I'm actually testing the sidebar and not nautilus per se: what I've been doing is switching to a Files window and clicking the 'eject' button in the sidebar of the Files window. on doing that, the stick is unmounted but nautilus also tries to open it, and throws an error.

that's nautilus but it's also a sidebar :) so i don't know which of the two paths it really is.
Comment 6 Federico Mena Quintero 2013-09-21 02:31:20 UTC
Yes, it's Nautilus using GtkPlacesSidebar.  I don't know why the behavior was different; maybe they load things in different async ways, and the "this row was deleted because something got unmounted" got to Nautilus later, or something.

Anyway, I just pushed 1e5dde7ea to master - it seems to fix this.