[pitivi] medialibrary: Too large icons fix



commit b09b978c57d1817f16676a9319db323f9398b812
Author: Stefan Popa <stefanpopa2209 gmail com>
Date:   Fri Jul 21 23:20:25 2017 +0300

    medialibrary: Too large icons fix
    
    Audio assets icons weren't generated at the proper size because the
    method Gtk.IconTheme.load_icon didn't guarantee the resulting size
    of the icon by default. Adding the FORCE_SIZE flag fixed it.
    
    Fixes T7789.
    
    Reviewed-by: Thibault Saunier <tsaunier gnome org>
    Differential Revision: https://phabricator.freedesktop.org/D1801

 pitivi/medialibrary.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/medialibrary.py b/pitivi/medialibrary.py
index 51f9d46..c78e89d 100644
--- a/pitivi/medialibrary.py
+++ b/pitivi/medialibrary.py
@@ -302,7 +302,7 @@ class AssetThumbnail(Loggable):
     def __get_icon(cls, icon_name, size):
         icon_theme = Gtk.IconTheme.get_default()
         try:
-            icon = icon_theme.load_icon(icon_name, size, 0)
+            icon = icon_theme.load_icon(icon_name, size, Gtk.IconLookupFlags.FORCE_SIZE)
         except GLib.Error:
             icon = icon_theme.load_icon("dialog-question", size, 0)
         return icon


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]