summaryrefslogtreecommitdiff
path: root/battstat
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-27 17:46:47 +0200
committerraveit65 <[email protected]>2021-11-21 15:08:09 +0100
commit8281e9833a31d8731e8dd405fea2b1138dcc4ff8 (patch)
treed1bc46ccb1855b1fb892779f25a2a333a9962820 /battstat
parentbb0195c17052309b55c23629e24465e1ef4dc70c (diff)
downloadmate-applets-8281e9833a31d8731e8dd405fea2b1138dcc4ff8.tar.bz2
mate-applets-8281e9833a31d8731e8dd405fea2b1138dcc4ff8.tar.xz
Use a blank line at most
Diffstat (limited to 'battstat')
-rw-r--r--battstat/acpi-linux.c1
-rw-r--r--battstat/apmlib/apmlib.c7
-rw-r--r--battstat/battstat-upower.c1
-rw-r--r--battstat/battstat_applet.c3
-rw-r--r--battstat/power-management.c2
5 files changed, 0 insertions, 14 deletions
diff --git a/battstat/acpi-linux.c b/battstat/acpi-linux.c
index c383bd2e..31daad5d 100644
--- a/battstat/acpi-linux.c
+++ b/battstat/acpi-linux.c
@@ -247,7 +247,6 @@ update_battery_info (struct acpi_info* acpiinfo)
return TRUE;
}
-
/* Initializes the ACPI-reading subsystem by opening a file
* descriptor to the ACPI event file. This can either be the
* /proc/acpi/event exported by the kernel, or if it's already
diff --git a/battstat/apmlib/apmlib.c b/battstat/apmlib/apmlib.c
index d7125f74..f0147ae1 100644
--- a/battstat/apmlib/apmlib.c
+++ b/battstat/apmlib/apmlib.c
@@ -47,7 +47,6 @@ apm_exists (void)
return apm_read (&i);
}
-
/* Read information from /proc/apm. Return 0 on success, 1 if APM not
* installed, 2 if APM installed, but old version.
*/
@@ -167,7 +166,6 @@ apm_read (apm_info * i)
return retcode;
}
-
/* Lookup the device number for the apm_bios device. */
dev_t apm_dev (void)
{
@@ -207,7 +205,6 @@ dev_t apm_dev (void)
return cached = -1;
}
-
/* Return a file descriptor for the apm_bios device, or -1 if there is an
* error. Is this method secure? Should we make the device in /dev
* instead of /tmp?
@@ -242,7 +239,6 @@ apm_open (void)
return -1;
}
-
/* Given a file descriptor for the apm_bios device, close it. */
int
apm_close (int fd)
@@ -278,7 +274,6 @@ apm_get_events (int fd, int timeout, apm_event_t * events, int n)
return read (fd, events, n * sizeof (apm_event_t)) / sizeof (apm_event_t);
}
-
/* Try to set the Power State to Suspend. */
int
apm_suspend (int fd)
@@ -287,7 +282,6 @@ apm_suspend (int fd)
return ioctl (fd, APM_IOC_SUSPEND, NULL);
}
-
/* Try to set the Power State to Standby. */
int
apm_standby (int fd)
@@ -425,7 +419,6 @@ apm_event_name (apm_event_t event)
return "Unknown";
}
-
/* This is a convenience function that has nothing to do with APM. It just
* formats a time nicely. If you don't like this format, then write your
* own.
diff --git a/battstat/battstat-upower.c b/battstat/battstat-upower.c
index da830c2b..5ba9a295 100644
--- a/battstat/battstat-upower.c
+++ b/battstat/battstat-upower.c
@@ -33,7 +33,6 @@
static UpClient *upc;
static void (*status_updated_callback) (void);
-
/* status_updated_callback () can not be called directly because at the time of
* the device-remove signal, the device is not actually removed from the list
* of devices known to the up_client object (see libupower-glib/up-client.c in
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c
index ce1598dc..3382a540 100644
--- a/battstat/battstat_applet.c
+++ b/battstat/battstat_applet.c
@@ -648,7 +648,6 @@ check_for_updates (gpointer data)
}
}
-
possibly_update_status_icon (battstat, &info);
if (!info.on_ac_power &&
@@ -798,7 +797,6 @@ battstat_show_help (ProgressData *battstat,
}
}
-
/* Called when the user selects the 'help' menu item.
*/
static void
@@ -1210,7 +1208,6 @@ battstat_applet_factory (MatePanelApplet *applet,
return retval;
}
-
MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("BattstatAppletFactory",
PANEL_TYPE_APPLET,
"battstat",
diff --git a/battstat/power-management.c b/battstat/power-management.c
index 5c4145c6..cd0e3f33 100644
--- a/battstat/power-management.c
+++ b/battstat/power-management.c
@@ -78,7 +78,6 @@ static int using_upower;
* the problem might be. This error message is not to be freed.
*/
-
/* Uncomment the following to enable a 'testing' backend. When you add the
applet to the panel a window will appear that allows you to manually
change the battery status values for testing purposes.
@@ -133,7 +132,6 @@ initialise_test (void)
G_CALLBACK (test_update_integer), &test_status.minutes);
gtk_box_pack_start (box, w, TRUE, TRUE, 0);
-
w = gtk_toggle_button_new_with_label ("on_ac_power");
g_signal_connect (w, "toggled",
G_CALLBACK (test_update_boolean),