Commit 59fbb7bb authored by Michael Terry's avatar Michael Terry
Browse files

Icon view fixes and update clipart extensions

- Make icon views lightly bigger (48px to 64px) - it's as big as we
  can get without using GtkGridView because we are limited to an enum
  for sizes.
- Don't cut off cache keys to 30 chars - it's possible to get cache
  collisions then. No reason to cut off, we can just use the full
  filename.
- Update clipart extension to latest

Related to inkscape#6201
parent 23061dae
Loading
Loading
Loading
Loading
Loading
+4 −0
Changes for inkex/gui/listview.py: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -323,6 +323,10 @@ class IconView(BaseView):
        """Setup the columns for the iconview"""
        self._list.set_markup_column(1)
        self._list.set_pixbuf_column(2)
        crt, crp = self._list.get_cells()
        # Until we port to using GtkGridView, we're forced to use icon sizes to specify the pixbuf size.
        # LARGE is as big as we can get.
        crp.set_property("icon-size", Gtk.IconSize.LARGE)
        super().setup()

    def add(self, target):
+1 −1
Changes for inkex/gui/pixmap.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ class PixmapManager:
                return None
            data = self.default_image

        key = data[-30:]  # bytes or string
        key = data  # bytes or string
        if not key in self.cache:
            # load the image from data or a filename/theme icon
            img = None
Compare 8d2948ce to f5681110
Changes for other/clipart: 1 added line, 1 removed line.
Original line number Diff line number Diff line
Subproject commit 8d2948ce2fe82b195fec99f909049a8fdd64298e
Subproject commit f56811105d5f83b04fb7f60936aaddc544e35327