Advertisement
Guest User

Untitled

a guest
Jul 19th, 2017
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.28 KB | None | 0 0
  1. From 21760d00c8e255f4bf83ddce1f387b1c034599f4 Mon Sep 17 00:00:00 2001
  2. From: Viktor Odintsev <ninetls@xfce.org>
  3. Date: Thu, 20 Jul 2017 02:20:00 +0300
  4. Subject: [PATCH] Always use preferred icon size for GtkIconTheme
  5.  
  6. ---
  7. panel-plugin/sn-icon-box.c | 4 ++--
  8.  1 file changed, 2 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/panel-plugin/sn-icon-box.c b/panel-plugin/sn-icon-box.c
  11. index 8326f91..2ea64b1 100644
  12. --- a/panel-plugin/sn-icon-box.c
  13. +++ b/panel-plugin/sn-icon-box.c
  14. @@ -270,14 +270,14 @@ sn_icon_box_apply_icon (GtkWidget    *image,
  15.          {
  16.            work_pixbuf = gtk_icon_theme_load_icon (icon_theme_from_path,
  17.                                                    sn_preferred_name (),
  18. -                                                  -1, 0, NULL);
  19. +                                                  icon_size, 0, NULL);
  20.          }
  21.  
  22.        if (work_pixbuf == NULL)
  23.          {
  24.            icon_info = gtk_icon_theme_lookup_icon (icon_theme,
  25.                                                    sn_preferred_name (),
  26. -                                                  16, 0);
  27. +                                                  icon_size, 0);
  28.            if (icon_info != NULL)
  29.              {
  30.                gtk_image_set_from_icon_name (GTK_IMAGE (image),
  31. --
  32. 2.13.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement