[Xfce4-commits] [panel-plugins/xfce4-systemload-plugin] 01/01: Make sure the switches' state is correct

noreply at xfce.org noreply at xfce.org
Fri Dec 22 00:44:36 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 panel-plugins/xfce4-systemload-plugin.

commit 366f6fa63bfe8b8636991b66e714312118598715
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Dec 22 00:44:06 2017 +0100

    Make sure the switches' state is correct
---
 panel-plugin/systemload.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index e04cbc1..61c10b0 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -724,6 +724,7 @@ switch_cb(GtkSwitch *check_button, gboolean state, t_global_monitor *global)
     sensitive_widget = g_object_get_data(G_OBJECT(check_button), "sensitive_widget");
     oldstate = *boolvar;
     *boolvar = state;
+    gtk_switch_set_state (check_button, state);
     if (sensitive_widget)
         gtk_widget_set_sensitive(GTK_WIDGET(sensitive_widget), *boolvar);
     if (boolvar == &(global->command.enabled)) {

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


More information about the Xfce4-commits mailing list