From dbfaa9910705a35d3017f1e8e65a9cf52e2f7d9b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 14 Nov 2017 19:43:13 -0500 Subject: image: Remove icon-size argument from icon setters Instead, add a function gtk_image_set_icon_size() for the cases where overriding the icon size is necessary. Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear() no longer unsets the icon size. --- gtk/gtkstackswitcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkstackswitcher.c') diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c index 06fd45700f..c34950b388 100644 --- a/gtk/gtkstackswitcher.c +++ b/gtk/gtkstackswitcher.c @@ -137,7 +137,7 @@ rebuild_child (GtkWidget *self, if (icon_name != NULL) { - button_child = gtk_image_new_from_icon_name (icon_name, icon_size); + button_child = gtk_image_new_from_icon_name (icon_name); if (title != NULL) gtk_widget_set_tooltip_text (GTK_WIDGET (self), title); -- cgit v1.2.1