summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-21 14:55:35 +0300
committermonsta <[email protected]>2016-01-21 14:55:35 +0300
commitcb41e6337e553f74dd2109aef852cae74601307e (patch)
tree9328c30375c8844c8261620b44c023df8efdfac0 /src
parenta21f6fc389907ae0d51969263023357a80e8daca (diff)
downloadmate-notification-daemon-cb41e6337e553f74dd2109aef852cae74601307e.tar.bz2
mate-notification-daemon-cb41e6337e553f74dd2109aef852cae74601307e.tar.xz
use gtk_image_new_from_icon_name in both GTK+ builds
Diffstat (limited to 'src')
-rw-r--r--src/themes/nodoka/nodoka-theme.c4
-rw-r--r--src/themes/slider/theme.c4
-rw-r--r--src/themes/standard/theme.c4
3 files changed, 0 insertions, 12 deletions
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 6276ad8..fa7ae76 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -943,11 +943,7 @@ 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);
diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c
index d86295c..1921cb7 100644
--- a/src/themes/slider/theme.c
+++ b/src/themes/slider/theme.c
@@ -725,11 +725,7 @@ 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);
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index feabb71..1a57b7c 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -779,11 +779,7 @@ 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);