[shotwell/shotwell-0.30] publishing: Do not restrict horizontal icon scale



commit 0ad38f9fda6049710a899ad7c1ee8b0575f136fb
Author: Jens Georg <mail jensge org>
Date:   Fri May 22 11:38:34 2020 +0200

    publishing: Do not restrict horizontal icon scale
    
    Make sure it has the correct (i.e. 24px) height, but the keep the
    relative width

 plugins/common/Resources.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/common/Resources.vala b/plugins/common/Resources.vala
index ecbf2f87..16306f2a 100644
--- a/plugins/common/Resources.vala
+++ b/plugins/common/Resources.vala
@@ -58,7 +58,7 @@ public Gdk.Pixbuf[]? load_from_resource (string resource_path) {
     Gdk.Pixbuf? icon = null;
     try {
         debug ("Loading icon from %s", resource_path);
-        icon = new Gdk.Pixbuf.from_resource_at_scale (resource_path, 24, 24, true);
+        icon = new Gdk.Pixbuf.from_resource_at_scale (resource_path, -1, 24, true);
     } catch (Error error) {
         warning ("Couldn't load icon set from %s: %s", resource_path, error.message);
     }


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