public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in xfce-base/xfce4-panel/files: xfce4-panel-4.10.0-icons.patch
@ 2013-01-13  6:03 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2013-01-13  6:03 UTC (permalink / raw
  To: gentoo-commits

ssuominen    13/01/13 06:03:33

  Added:                xfce4-panel-4.10.0-icons.patch
  Log:
  Fix icons not probably resizing when requested wrt #447182 by Carlos Silva. The patch is from upstream git.
  
  (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

Revision  Changes    Path
1.1                  xfce-base/xfce4-panel/files/xfce4-panel-4.10.0-icons.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-base/xfce4-panel/files/xfce4-panel-4.10.0-icons.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/xfce-base/xfce4-panel/files/xfce4-panel-4.10.0-icons.patch?rev=1.1&content-type=text/plain

Index: xfce4-panel-4.10.0-icons.patch
===================================================================
http://bugs.gentoo.org/447182
http://bugzilla.xfce.org/show_bug.cgi?id=9615

From 48e1016394fa6bdb1d708823a23a12641482a561 Mon Sep 17 00:00:00 2001
From: Carlos Silva <r3pek@r3pek.org>
Date: Fri, 14 Dec 2012 01:14:36 +0000
Subject: Fix icons not probably resizing when requested.

Looks like gdk_pixbuf_new_from_file_at_scale and gdk_pixbuf_new_from_file_at_size really don't scale the image leaving the image loaded with its original size. So, just load the file without any scale and let the scale be done later on the function.

Signed-off-by: Carlos Silva <r3pek@r3pek.org>
---
diff --git a/libxfce4panel/xfce-panel-convenience.c b/libxfce4panel/xfce-panel-convenience.c
index 19c51bb..a3f3be1 100644
--- a/libxfce4panel/xfce-panel-convenience.c
+++ b/libxfce4panel/xfce-panel-convenience.c
@@ -170,15 +170,13 @@ xfce_panel_pixbuf_from_source_at_size (const gchar  *source,
 
   if (G_UNLIKELY (g_path_is_absolute (source)))
     {
-      pixbuf = gdk_pixbuf_new_from_file_at_scale (source, dest_width, dest_height, TRUE, &error);
+      pixbuf = gdk_pixbuf_new_from_file (source, &error);
       if (G_UNLIKELY (pixbuf == NULL))
         {
           g_message ("Failed to load image \"%s\": %s",
                      source, error->message);
           g_error_free (error);
         }
-
-      return pixbuf;
     }
   else
     {
--
cgit v0.9.0.3





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in xfce-base/xfce4-panel/files: xfce4-panel-4.10.0-icons.patch
@ 2014-04-22 13:48 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2014-04-22 13:48 UTC (permalink / raw
  To: gentoo-commits

ssuominen    14/04/22 13:48:59

  Removed:              xfce4-panel-4.10.0-icons.patch
  Log:
  old
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-22 13:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 13:48 [gentoo-commits] gentoo-x86 commit in xfce-base/xfce4-panel/files: xfce4-panel-4.10.0-icons.patch Samuli Suominen (ssuominen)
  -- strict thread matches above, loose matches on Subject: below --
2013-01-13  6:03 Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox