Browse Source

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>
(cherry picked from commit 48e1016394)
tags/xfce4-panel-4.10.1
Carlos Silva Nick Schermer 8 years ago
parent
commit
a51135ef6b
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libxfce4panel/xfce-panel-convenience.c

+ 1
- 3
libxfce4panel/xfce-panel-convenience.c View File

@@ -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
{


Loading…
Cancel
Save