[Xfce4-commits] [apps/xfce4-notifyd] 04/04: panel-plugin: Add icon to clear-log menuitem

noreply at xfce.org noreply at xfce.org
Tue Nov 7 23:47:17 CET 2017


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-notifyd.

commit 86be1bb06d6e79c7da3ed9a99d6fa4b6840a29bf
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Nov 7 23:46:55 2017 +0100

    panel-plugin: Add icon to clear-log menuitem
---
 panel-plugin/notification-plugin-log.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/notification-plugin-log.c b/panel-plugin/notification-plugin-log.c
index 3ce1f77..d9bd85e 100644
--- a/panel-plugin/notification-plugin-log.c
+++ b/panel-plugin/notification-plugin-log.c
@@ -73,7 +73,7 @@ void
 notification_plugin_menu_populate (NotificationPlugin *notification_plugin)
 {
   GtkMenu *menu = GTK_MENU (notification_plugin->menu);
-  GtkWidget *mi;
+  GtkWidget *mi, *image;
   GKeyFile *notify_log;
   gint i;
   GDateTime *today;
@@ -257,7 +257,11 @@ G_GNUC_END_IGNORE_DEPRECATIONS
                     G_CALLBACK (dnd_toggled_cb), notification_plugin);
 
   /* checkmenuitem for the do not disturb mode of xfce4-notifyd */
-  mi = gtk_menu_item_new_with_mnemonic (_("_Clear log"));
+  image = gtk_image_new_from_icon_name ("edit-clear-symbolic", GTK_ICON_SIZE_MENU);
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+  mi = gtk_image_menu_item_new_with_mnemonic (_("_Clear log"));
+  gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (mi), image);
+G_GNUC_END_IGNORE_DEPRECATIONS
   gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi);
   gtk_widget_show (mi);
   g_signal_connect (mi, "activate", G_CALLBACK (xfce_notify_log_clear),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list