diff options
author | mbkma <[email protected]> | 2020-12-04 12:23:59 +0100 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2020-12-06 10:12:32 +0100 |
commit | e08b24d4a5399c1cd57b3c902cdb28acbcb12f2f (patch) | |
tree | 80bbf56c85ea0e0a73a17b7c9cec94a06e3ded6d /battstat/battstat_applet.c | |
parent | 3e60b7c1317eb7cfaf6079d2defb09bd07c93342 (diff) | |
download | mate-applets-e08b24d4a5399c1cd57b3c902cdb28acbcb12f2f.tar.bz2 mate-applets-e08b24d4a5399c1cd57b3c902cdb28acbcb12f2f.tar.xz |
remove dead function mate_panel_applet_set_background_widget
Diffstat (limited to 'battstat/battstat_applet.c')
-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 (""); |