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 772348 - placesviewrow: busy_spinner when visible offsets the rest of the widgets on the row
placesviewrow: busy_spinner when visible offsets the rest of the widgets on t...
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks: 771161
 
 
Reported: 2016-10-02 22:20 UTC by Daniel Boles
Modified: 2016-10-10 21:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible (932 bytes, patch)
2016-10-02 22:21 UTC, Daniel Boles
none Details | Review
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible (6.58 KB, patch)
2016-10-02 22:23 UTC, Daniel Boles
none Details | Review
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible (6.36 KB, patch)
2016-10-04 20:56 UTC, Daniel Boles
committed Details | Review
screencast with patch applied, showing busy/eject/none working as expected (768.62 KB, video/webm)
2016-10-04 21:02 UTC, Daniel Boles
  Details

Description Daniel Boles 2016-10-02 22:20:38 UTC
This is a counterpart for https://bugzilla.gnome.org/show_bug.cgi?id=772345 and the earlier report https://bugzilla.gnome.org/show_bug.cgi?id=771161 to which (because it was still open) I've uploaded patches for the Nautilus versions of the gtkplacesview* widgets. Please see those bugs for the background info.
Comment 1 Daniel Boles 2016-10-02 22:21:48 UTC
Created attachment 336785 [details] [review]
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible

...by putting it in a stack. The busy_spinner and eject_button are
mutually exclusive, but only the latter was coded to ensure that its
visibility did not cause the rest of the row to reflow. By putting both
widgets in a stack and setting child_visible on that, the row allocates
enough space to show one - or none - at once, avoiding any misalignment.
Comment 2 Daniel Boles 2016-10-02 22:23:07 UTC
Created attachment 336786 [details] [review]
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible

This time, I'll upload the right patch.
Comment 3 Daniel Boles 2016-10-04 20:56:55 UTC
Created attachment 336953 [details] [review]
gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible

Fix the <packing> position too.
Comment 4 Daniel Boles 2016-10-04 21:02:08 UTC
Created attachment 336954 [details]
screencast with patch applied, showing busy/eject/none working as expected
Comment 5 Matthias Clasen 2016-10-10 19:14:16 UTC
Attachment 336953 [details] pushed as fe6030a - gtkplacesviewrow: stop busy_spinner from offsetting the other widgets when visible
Comment 6 Daniel Boles 2016-10-10 21:57:18 UTC
Thanks Matthias! Glad my patch helped.