diff options
Diffstat (limited to 'battstat')
-rw-r--r-- | battstat/battstat_applet.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c index a369612c..8b366465 100644 --- a/battstat/battstat_applet.c +++ b/battstat/battstat_applet.c @@ -664,7 +664,7 @@ check_for_updates (gpointer data) (battstat->red_value_is_time && battstat->last_minutes > battstat->red_val && info.minutes <= battstat->red_val) - ) + ) && info.present) { /* Warn that battery dropped below red_val */ @@ -1062,10 +1062,6 @@ create_layout (ProgressData *battstat) { if (DEBUG) g_print ("create_layout ()\n"); - /* Have our background automatically painted. */ - mate_panel_applet_set_background_widget (MATE_PANEL_APPLET (battstat->applet), - GTK_WIDGET (battstat->applet)); - /* Allocate the four widgets that we need. */ battstat->grid = gtk_grid_new (); battstat->percent = gtk_label_new (""); |