mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
GtkIconTheme: Copy all fields in icon_info_dup
This functionality is only exercised by gnome-shell, currently. Therefore, forgetting to copy a field here means an instant gnome-shell crash :-(. More tests needed.
This commit is contained in:
parent
30982b6d4e
commit
3d0dac0aef
@ -3350,11 +3350,16 @@ icon_info_dup (GtkIconInfo *icon_info)
|
||||
if (icon_info->cache_pixbuf)
|
||||
dup->cache_pixbuf = g_object_ref (icon_info->cache_pixbuf);
|
||||
|
||||
dup->scale = icon_info->scale;
|
||||
dup->unscaled_scale = icon_info->unscaled_scale;
|
||||
dup->desired_size = icon_info->desired_size;
|
||||
dup->desired_scale = icon_info->desired_scale;
|
||||
dup->forced_size = icon_info->forced_size;
|
||||
dup->emblems_applied = icon_info->emblems_applied;
|
||||
dup->is_resource = icon_info->is_resource;
|
||||
dup->min_size = icon_info->min_size;
|
||||
dup->max_size = icon_info->max_size;
|
||||
dup->symbolic_size = icon_info->symbolic_size;
|
||||
|
||||
return dup;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user