[notification-daemon] don't use deprecated GTK_STOCK_CLOSE



commit 9d38817978de2113ce9167f43aa9400f7491867b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Nov 29 12:15:35 2014 +0200

    don't use deprecated GTK_STOCK_CLOSE

 src/nd-bubble.c           |    2 +-
 src/nd-notification-box.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nd-bubble.c b/src/nd-bubble.c
index 2373a1d..06817bc 100644
--- a/src/nd-bubble.c
+++ b/src/nd-bubble.c
@@ -620,7 +620,7 @@ nd_bubble_init (NdBubble *bubble)
         atk_object_set_name (atkobj, "");
         atk_object_set_description (atkobj, "Closes the notification.");
 
-        image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
+        image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_MENU);
         gtk_widget_show (image);
         gtk_container_add (GTK_CONTAINER (close_button), image);
 
diff --git a/src/nd-notification-box.c b/src/nd-notification-box.c
index 48f10a0..747140e 100644
--- a/src/nd-notification-box.c
+++ b/src/nd-notification-box.c
@@ -327,7 +327,7 @@ nd_notification_box_init (NdNotificationBox *notification_box)
         atk_object_set_name (atkobj, "");
         atk_object_set_description (atkobj, "Closes the notification.");
 
-        image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
+        image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_MENU);
         gtk_widget_show (image);
         gtk_container_add (GTK_CONTAINER (notification_box->priv->close_button), image);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]