summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz N Tiram <[email protected]>2016-06-14 17:34:20 +0200
committerraveit65 <[email protected]>2016-06-20 10:24:10 +0200
commit26a3d2bc96278d43fdb913c1b3430cd9be4c4663 (patch)
treee6940d83e5775da3b44c4dab90f980518232e387
parent8c19823f0b4d6fce9676bc6cdca4bb2edf44ce58 (diff)
downloadmate-utils-26a3d2bc96278d43fdb913c1b3430cd9be4c4663.tar.bz2
mate-utils-26a3d2bc96278d43fdb913c1b3430cd9be4c4663.tar.xz
Remove deprecated usage of gtk_image_new_from_stock
if using gtk3
-rw-r--r--mate-screenshot/src/mate-screenshot.c6
1 files changed, 5 insertions, 1 deletions
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);