summaryrefslogtreecommitdiff
path: root/battstat/battstat_applet.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-12-04 12:23:59 +0100
committerRobert Antoni Buj Gelonch <[email protected]>2020-12-06 10:12:32 +0100
commite08b24d4a5399c1cd57b3c902cdb28acbcb12f2f (patch)
tree80bbf56c85ea0e0a73a17b7c9cec94a06e3ded6d /battstat/battstat_applet.c
parent3e60b7c1317eb7cfaf6079d2defb09bd07c93342 (diff)
downloadmate-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.c6
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 ("");