[Xfce4-commits] [xfce/xfce4-panel] 01/01: launcher: Fix tooltip icon size (Bug #15319)

noreply at xfce.org noreply at xfce.org
Fri Apr 26 23:08:49 CEST 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit bbfb18d41ce94ff9d3d33bd9b532b6fdfaf9332e
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Apr 26 23:07:51 2019 +0200

    launcher: Fix tooltip icon size (Bug #15319)
    
    The tooltip icons were only broken with absolute paths. The problem
    seemed to be that gdk_pixbuf_new_from_file_at_scale doesn't like the
    GTK_ICON_SIZE* macros.
---
 plugins/launcher/launcher.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/launcher/launcher.c b/plugins/launcher/launcher.c
index ea2e636..6d2d8b9 100644
--- a/plugins/launcher/launcher.c
+++ b/plugins/launcher/launcher.c
@@ -1460,8 +1460,7 @@ launcher_plugin_tooltip_pixbuf (GdkScreen   *screen,
 
   /* load directly from a file */
   if (G_UNLIKELY (g_path_is_absolute (icon_name)))
-    return gdk_pixbuf_new_from_file_at_scale (icon_name, GTK_ICON_SIZE_DND, GTK_ICON_SIZE_DND,
-                                              TRUE, NULL);
+    return gdk_pixbuf_new_from_file_at_scale (icon_name, 32, 32, TRUE, NULL);
 
   if (G_LIKELY (screen != NULL))
     theme = gtk_icon_theme_get_for_screen (screen);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list