[Xfce4-commits] [panel-plugins/xfce4-systemload-plugin] 02/02: Add tooltips on power-saving interval GtkSpinButton and System Monitor GtkEntry

noreply at xfce.org noreply at xfce.org
Sat Dec 23 12:17:37 CET 2017


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

l   a   n   d   r   y       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 panel-plugins/xfce4-systemload-plugin.

commit 9fdd4a9c80fdf119d6ea5f6516144d4540f671dc
Author: Landry Breuil <landry at xfce.org>
Date:   Sat Dec 23 12:16:21 2017 +0100

    Add tooltips on power-saving interval GtkSpinButton and System Monitor GtkEntry
    
    So that ppl know when the command is launched and what does 'Power saving interval' means..
---
 panel-plugin/systemload.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index 0bcd6c0..1da162e 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -889,6 +889,7 @@ monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *global)
     /* Power-saving interval */
     button = gtk_spin_button_new_with_range (0, 10, 1);
     gtk_widget_set_halign (button, GTK_ALIGN_START);
+    gtk_widget_set_tooltip_text(GTK_WIDGET(button), _("Update interval when in power-saving mode"));
     gtk_spin_button_set_value (GTK_SPIN_BUTTON (button), (gfloat)global->timeout_seconds);
     g_object_set_data (G_OBJECT(button), "boolvar", &global->use_timeout_seconds);
     g_signal_connect (G_OBJECT (button), "value-changed", G_CALLBACK(change_timeout_seconds_cb), global);
@@ -902,6 +903,7 @@ monitor_create_options(XfcePanelPlugin *plugin, t_global_monitor *global)
     g_object_set_data (G_OBJECT(entry), "charvar", &global->command.command_text);
     gtk_entry_set_text (GTK_ENTRY(entry), global->command.command_text);
     g_object_set_data (G_OBJECT(entry), "boolvar", &global->command.enabled);
+    gtk_widget_set_tooltip_text(GTK_WIDGET(entry), _("Launched when clicking on the plugin"));
     g_signal_connect (G_OBJECT(entry), "changed",
                       G_CALLBACK(entry_changed_cb), global);
     gtk_grid_attach (GTK_GRID (grid), entry, 1, 3, 1, 1);

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


More information about the Xfce4-commits mailing list