summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/button-widget.c6
1 files changed, 6 insertions, 0 deletions
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);
}