summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryetist <[email protected]>2015-06-18 23:13:07 +0800
committerinfirit <[email protected]>2015-08-26 14:23:22 +0200
commitb132423fde1c0befb0d3a327b534f3ada6fabf3f (patch)
tree461a6717263af49a0b0f265d28d3d924b6b965a0
parenta1cf5afd76d2671ed79ff60f42156b3338bc8166 (diff)
downloadmate-panel-b132423fde1c0befb0d3a327b534f3ada6fabf3f.tar.bz2
mate-panel-b132423fde1c0befb0d3a327b534f3ada6fabf3f.tar.xz
Gtk3: Don't use deprecated gtk_widget_render_icon_pixbuf
-rw-r--r--mate-panel/button-widget.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/mate-panel/button-widget.c b/mate-panel/button-widget.c
index f3f9bd1f..904ecbe6 100644
--- a/mate-panel/button-widget.c
+++ b/mate-panel/button-widget.c
@@ -234,16 +234,12 @@ button_widget_reload_pixbuf (ButtonWidget *button)
&error);
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),
+ GtkIconTheme *icon_theme = gtk_icon_theme_get_default();
+ button->priv->pixbuf = gtk_icon_theme_load_icon (icon_theme,
GTK_STOCK_MISSING_IMAGE,
- (GtkIconSize) -1);
-#else
- gtk_widget_render_icon (GTK_WIDGET (button),
- GTK_STOCK_MISSING_IMAGE,
- (GtkIconSize) -1, NULL);
-#endif
+ GTK_ICON_SIZE_BUTTON,
+ GTK_ICON_LOOKUP_FORCE_SVG | GTK_ICON_LOOKUP_USE_BUILTIN,
+ NULL);
g_free (error);
}