summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJames Westman <flyingpimonster@flyingpimonster.net>2019-07-15 14:34:45 -0500
committerJames Westman <flyingpimonster@flyingpimonster.net>2019-07-15 14:34:45 -0500
commit58285e64e3bc346393b4986dc0aa969f15495ac0 (patch)
tree8282c00637eb09b53cba67972f51c7745a77cfa4 /plugins
parent9f4e57a0df0cb4aca5075ddd9966ba9e1bc84dae (diff)
downloadglade-58285e64e3bc346393b4986dc0aa969f15495ac0.tar.gz
GtkImage: Fix icon size being reset
When you reloaded a file or changed the image type, the icon size was reset (not in the sidebar, but in the editor).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtk+/glade-gtk-image.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/gtk+/glade-gtk-image.c b/plugins/gtk+/glade-gtk-image.c
index 22cd3f98..3295ab1a 100644
--- a/plugins/gtk+/glade-gtk-image.c
+++ b/plugins/gtk+/glade-gtk-image.c
@@ -203,6 +203,10 @@ glade_gtk_image_set_property (GladeWidgetAdaptor *adaptor,
GWA_GET_CLASS (GTK_TYPE_WIDGET)->set_property (adaptor, object,
id, value);
+
+ /* Set icon size back to what it should be */
+ if (!strcmp (id, "icon-name") || !strcmp (id, "stock"))
+ glade_property_sync (glade_widget_get_property (widget, "icon-size"));
}
}