[gtk+] gtkicontheme: Fix a missing case where we forget to set is_svg



commit c2bf7a887c1f455aceb51c2fc042165d3b5e4005
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Jun 16 10:41:35 2014 -0400

    gtkicontheme: Fix a missing case where we forget to set is_svg
    
    When duplicating the icon_info, we forgot to set is_svg. This meant that
    any application that used gtk_icon_info_load_icon_async wouldn't have
    is_svg set properly.
    
    This fixes blurry icons in the gnome-shell app picker.

 gtk/gtkicontheme.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c
index 0b51806..a6c7754 100644
--- a/gtk/gtkicontheme.c
+++ b/gtk/gtkicontheme.c
@@ -3483,6 +3483,8 @@ icon_info_dup (GtkIconInfo *icon_info)
   dup = icon_info_new (icon_info->dir_type, icon_info->dir_size, icon_info->dir_scale);
 
   dup->filename = g_strdup (icon_info->filename);
+  dup->is_svg = icon_info->is_svg;
+
   if (icon_info->icon_file)
     dup->icon_file = g_object_ref (icon_info->icon_file);
   if (icon_info->loadable)


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