summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-23 10:17:14 +0100
committerinfirit <[email protected]>2014-11-23 10:17:14 +0100
commit8f1cfbc8ba138281acd29b9f3704849262e2dc70 (patch)
tree74d6fdb1430d9876ea65a5b4d352c6672cf67477
parent782655a3d3d0626b8ae8717a02f60d56fe0a8fea (diff)
downloadmate-panel-8f1cfbc8ba138281acd29b9f3704849262e2dc70.tar.bz2
mate-panel-8f1cfbc8ba138281acd29b9f3704849262e2dc70.tar.xz
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 <[email protected]>
-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);
}