[Xfce4-commits] [apps/xfce4-notifyd] 22/29: Use icons for refreshing and clearing the log and add tooltips

noreply at xfce.org noreply at xfce.org
Sun Jan 29 20:52:12 CET 2017


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

ochosi pushed a commit to branch master
in repository apps/xfce4-notifyd.

commit 4cda6f8b006642a169eeb16fd1a5a231ad51eabf
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Sat Jan 7 16:47:50 2017 +0100

    Use icons for refreshing and clearing the log and add tooltips
---
 xfce4-notifyd-config/main.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index 405f50a..0a16fb9 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -621,6 +621,7 @@ xfce4_notifyd_config_setup_dialog(GtkBuilder *builder)
     GtkToolbar *log_toolbar;
     GtkToolItem *log_clear_button;
     GtkToolItem *log_refresh_button;
+    GtkWidget *icon;
     GtkWidget *primary_monitor;
     GtkWidget *do_fadeout;
     GtkAdjustment *adj;
@@ -767,11 +768,15 @@ xfce4_notifyd_config_setup_dialog(GtkBuilder *builder)
     xfce4_notifyd_log_populate (log_listbox);
 
     log_toolbar = GTK_TOOLBAR (gtk_builder_get_object (builder, "log_toolbar"));
-    log_refresh_button = gtk_tool_button_new (NULL, _("Refresh"));
+    icon = gtk_image_new_from_icon_name ("view-refresh-symbolic", GTK_ICON_SIZE_LARGE_TOOLBAR);
+    log_refresh_button = gtk_tool_button_new (icon, _("Refresh"));
+    gtk_widget_set_tooltip_text (GTK_WIDGET (log_refresh_button), _("Refresh the notification log"));
     gtk_toolbar_insert(log_toolbar, GTK_TOOL_ITEM(log_refresh_button), 0);
     g_signal_connect (G_OBJECT (log_refresh_button), "clicked",
                       G_CALLBACK (xfce4_notifyd_log_refresh), log_listbox);
-    log_clear_button = gtk_tool_button_new (NULL, _("Clear"));
+    icon = gtk_image_new_from_icon_name ("edit-clear-symbolic", GTK_ICON_SIZE_LARGE_TOOLBAR);
+    log_clear_button = gtk_tool_button_new (icon, _("Clear"));
+    gtk_widget_set_tooltip_text (GTK_WIDGET (log_clear_button), _("Clear the notification log"));
     gtk_toolbar_insert(log_toolbar, GTK_TOOL_ITEM(log_clear_button), 1);
     g_signal_connect (G_OBJECT (log_clear_button), "clicked",
                       G_CALLBACK (xfce_notify_log_clear_button_clicked), log_listbox);

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


More information about the Xfce4-commits mailing list