From: Jean-Philippe Orsini Date: Wed, 29 Aug 2012 01:15:10 +0000 (+0000) Subject: fixed 'appindicator enabled' option not working correctly X-Git-Tag: v0.8.0.5~248 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=9ee852d47fbbfc82807b0b9498985e1c912c496b fixed 'appindicator enabled' option not working correctly for cpu usage. The option was inversed each it is displayed in the preference dialog. --- diff --git a/NEWS b/NEWS index 3d7bed0..ed673d0 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,9 @@ ** added Spanish translation from LP (Javier buik8roadmaster@hotmail.com). ** psensor-server: added sensors log file (--sensor-log-file). +** psensor: fixed 'appindicator enabled' option not working correctly + for cpu usage. The option was inversed each it is displayed in the + preference dialog. * v0.7.0.3 diff --git a/src/ui_sensorpref.c b/src/ui_sensorpref.c index 0d7649f..a015c5e 100644 --- a/src/ui_sensorpref.c +++ b/src/ui_sensorpref.c @@ -354,8 +354,6 @@ update_pref(struct psensor *s, gtk_widget_set_sensitive(GTK_WIDGET(w_alarm), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(w_high_threshold), TRUE); gtk_widget_set_sensitive(GTK_WIDGET(w_low_threshold), TRUE); - gtk_toggle_button_set_active(w_appindicator_enabled, - p->appindicator_enabled); } else { gtk_toggle_button_set_active(w_alarm, 0); gtk_spin_button_set_value(w_high_threshold, 0); @@ -363,9 +361,11 @@ update_pref(struct psensor *s, gtk_widget_set_sensitive(GTK_WIDGET(w_alarm), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(w_high_threshold), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(w_low_threshold), FALSE); - gtk_toggle_button_set_active(w_appindicator_enabled, - !p->appindicator_enabled); } + + gtk_toggle_button_set_active(w_appindicator_enabled, + p->appindicator_enabled); + } static void on_changed(GtkTreeSelection *selection, gpointer data)