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 705854 - Center albums view
Center albums view
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-music-maint
gnome-music-maint
: 708224 709072 (view as bug list)
Depends on: 760164
Blocks:
 
 
Reported: 2013-08-12 15:25 UTC by Vadim Rutkovsky
Modified: 2016-08-22 14:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vadim Rutkovsky 2013-08-12 15:25:36 UTC
Center albums view to avoid empty space on the right while resizing the app

https://f.cloud.github.com/assets/114501/913084/b36fc8a4-fe0f-11e2-81b9-ef5017a07522.png
Comment 1 Vadim Rutkovsky 2013-09-17 11:58:38 UTC
*** Bug 708224 has been marked as a duplicate of this bug. ***
Comment 2 Vadim Rutkovsky 2013-09-30 09:00:29 UTC
*** Bug 709072 has been marked as a duplicate of this bug. ***
Comment 3 Arnel Borja 2013-10-01 12:27:49 UTC
I think there is a GNOME goal for this (found it in some blog post, I think it's a goal for 3.12) where the icon size changes with respect to the current window size, ensuring that there is no empty space.
Comment 4 Timur Kristóf 2014-03-07 15:07:33 UTC
Centering the albums view means (sadly) that the track titles of some albums are abbreviated with "..." even though there's still plenty of space for them.

Here's a screenshot from gnome-music-3.11.91-2.fc20.x86_64
http://venemo.net/owncloud/public.php?service=files&t=d6fe7740a78b888636ceaf5e033087f6
Comment 5 Allan Day 2014-04-17 17:59:37 UTC
(In reply to comment #3)
> I think there is a GNOME goal for this (found it in some blog post, I think
> it's a goal for 3.12) where the icon size changes with respect to the current
> window size, ensuring that there is no empty space.

Yes, we'd ideally want to scale the grid to the available space. This requires some additional functionality from GTK+ though. The approach described in this bug seems like a good stop gap measure.
Comment 6 Arnel Borja 2014-04-18 02:24:33 UTC
(In reply to comment #4)
> Centering the albums view means (sadly) that the track titles of some albums
> are abbreviated with "..." even though there's still plenty of space for them.
> 
> Here's a screenshot from gnome-music-3.11.91-2.fc20.x86_64
> http://venemo.net/owncloud/public.php?service=files&t=d6fe7740a78b888636ceaf5e033087f6

Seems like we are talking about a different thing here, this bug is for the view where all albums are shown in Albums view (which is a GtkIconView), while your screenshot is inside an album in Albums view.

I think you should open a different bug report for it.
Comment 7 Hashem Nasarat 2014-04-27 04:20:31 UTC
I took a look at fixing this issue, and gnome-documents has the same bug: Music sets the Album icon view in the ViewContainer class with:

        self.view = Gd.MainView(
            shadow_type=Gtk.ShadowType.NONE
        )

So since Documents has the same bug and Music is just using libgd for this, I assume that this bug should be moved to libgd. Thoughts?
Comment 8 Vadim Rutkovsky 2014-04-27 08:02:00 UTC
(In reply to comment #7)
> So since Documents has the same bug and Music is just using libgd for this, I
> assume that this bug should be moved to libgd. Thoughts?
Moving the bug will not help solving it. Also both Music and Documents need a tracking bug so the users would know which version has the fix
Comment 9 Arnel Borja 2014-04-27 10:27:12 UTC
I agree on last comment. Actually, the problem stems from GTK+ since Gd.MainView is based on Gtk.TreeView, which don't support centering the contents (based on my own experience only, it's possible that there is hack to do this...).
Comment 10 Allan Day 2016-01-06 13:16:27 UTC
Removing the available whiteboard - we're not really using it any more.
Comment 11 Marinus Schraal 2016-08-22 14:44:52 UTC
The new GtkFlowBox view does homogeneous spacing.

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.