Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undo covergrid hacks #2481

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions quodlibet/quodlibet/browsers/covergrid/main.py
Expand Up @@ -95,9 +95,10 @@ def __init__(self, browser, model):
self.pack_start(button, True, True, 0)


# This now gives a severe performance
# penalty on some systems (tested on Fedora 15th July 2017)

class IconView(Gtk.IconView):
# XXX: disable height for width etc. Speeds things up and doesn't seem
# to break anyhting in a scrolled window

def do_get_preferred_width_for_height(self, height):
return (1, 1)
Expand All @@ -106,10 +107,10 @@ def do_get_preferred_width(self):
return (1, 1)

def do_get_preferred_height(self):
return (1, 1)
return (65536, 65536)

def do_get_preferred_height_for_width(self, width):
return (1, 1)
return (65536, 65536)


class CoverGrid(Browser, util.InstanceTracker, VisibleUpdate,
Expand Down