Browse files

thermal: use automatic levels by default

An explanation for this change is in the code.
  • Loading branch information...
1 parent 93bfb7e commit 815f98f77e157bca4246ad8e98d2546f45ad76c3 Henry Gebhardt committed with brother Apr 4, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/plugins/thermal/thermal.c
View
5 src/plugins/thermal/thermal.c
@@ -322,6 +322,11 @@ thermal_constructor(Plugin *p, char** fp)
th->main = p->pwid;
th->tip = gtk_tooltips_new();
+ /* By default, use automatic, that is, "not custom" temperature levels. If
+ * we were using custom levels, they would be 0°C at startup, so we would
+ * display in warning colors by default. */
+ th->not_custom_levels = TRUE;
+
g_signal_connect (G_OBJECT (p->pwid), "button_press_event",
G_CALLBACK (plugin_button_press_event), (gpointer) p);

0 comments on commit 815f98f

Please sign in to comment.