From fed38d6cf6f8141a8639723c6c5ccd5267fc5cc6 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Thu, 5 Nov 2015 14:45:05 +0100 Subject: GTK3 themes: fix deprecated usage of GTK_STOCK_CLOSE taken from: https://git.gnome.org/browse/notification-daemon/commit/?id=9d38817 --- src/themes/standard/theme.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/themes/standard') diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c index 36b947d..feabb71 100644 --- a/src/themes/standard/theme.c +++ b/src/themes/standard/theme.c @@ -779,7 +779,11 @@ GtkWindow* create_notification(UrlClickedCb url_clicked) atk_object_set_name(atkobj, ""); atk_object_set_description(atkobj, "Closes the notification."); +#if GTK_CHECK_VERSION (3, 10, 0) + image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_MENU); +#else image = gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU); +#endif gtk_widget_show(image); gtk_container_add(GTK_CONTAINER(close_button), image); -- cgit v1.2.1