From 26a3d2bc96278d43fdb913c1b3430cd9be4c4663 Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Tue, 14 Jun 2016 17:34:20 +0200 Subject: Remove deprecated usage of gtk_image_new_from_stock if using gtk3 --- mate-screenshot/src/mate-screenshot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mate-screenshot/src/mate-screenshot.c b/mate-screenshot/src/mate-screenshot.c index c75020b1..0a114a5d 100644 --- a/mate-screenshot/src/mate-screenshot.c +++ b/mate-screenshot/src/mate-screenshot.c @@ -461,9 +461,13 @@ create_screenshot_frame (GtkWidget *outer_vbox, gtk_widget_set_size_request (align, 48, -1); gtk_box_pack_start (GTK_BOX (hbox), align, FALSE, FALSE, 0); gtk_widget_show (align); - +#if GTK_CHECK_VERSION (3, 0, 0) + image = gtk_image_new_from_icon_name (SCREENSHOOTER_ICON, + GTK_ICON_SIZE_DIALOG); +#else image = gtk_image_new_from_stock (SCREENSHOOTER_ICON, GTK_ICON_SIZE_DIALOG); +#endif gtk_container_add (GTK_CONTAINER (align), image); gtk_widget_show (image); -- cgit v1.2.1