From 8f1cfbc8ba138281acd29b9f3704849262e2dc70 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 23 Nov 2014 10:17:14 +0100 Subject: Gtk3: button-widget: Use gtk_widget_render_icon_pixbuf() instead of gtk_widget_render_icon() Based on gnome-panel commit: 6f13318fa892afde6ff35b6784217121481e3963 From: Carlos Garcia Campos --- mate-panel/button-widget.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mate-panel/button-widget.c') diff --git a/mate-panel/button-widget.c b/mate-panel/button-widget.c index faea383f..e9074ab4 100644 --- a/mate-panel/button-widget.c +++ b/mate-panel/button-widget.c @@ -235,9 +235,15 @@ button_widget_reload_pixbuf (ButtonWidget *button) if (error) { //FIXME: this is not rendered at button->priv->size button->priv->pixbuf = +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_render_icon_pixbuf (GTK_WIDGET (button), + GTK_STOCK_MISSING_IMAGE, + (GtkIconSize) -1); +#else gtk_widget_render_icon (GTK_WIDGET (button), GTK_STOCK_MISSING_IMAGE, (GtkIconSize) -1, NULL); +#endif g_free (error); } -- cgit v1.2.1