aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-09-03 18:40:39 +0200
committerRobert Tari <robert@tari.in>2020-09-03 18:40:39 +0200
commit2849569fffd380b4424278c848e9483e54e4a0c5 (patch)
tree3a1dcf4d462133a91328ae0e7977783896129079
parentca5a779dc20a5d33249a9298eb1ec834e63ecdee (diff)
downloadayatana-indicator-power-2849569fffd380b4424278c848e9483e54e4a0c5.tar.gz
ayatana-indicator-power-2849569fffd380b4424278c848e9483e54e4a0c5.tar.bz2
ayatana-indicator-power-2849569fffd380b4424278c848e9483e54e4a0c5.zip
Whitespace fix
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/device.c8
-rw-r--r--tests/test-notify.cc8
3 files changed, 9 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2a18bc0..11ed3f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,7 +10,7 @@ option (enable_tests "Build the package's automatic tests." ON)
##
## GNU standard installation directories
-##
+##
include (GNUInstallDirs)
set (CMAKE_INSTALL_PKGLIBEXECDIR "${CMAKE_INSTALL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}")
diff --git a/src/device.c b/src/device.c
index ef17ca6..524ce92 100644
--- a/src/device.c
+++ b/src/device.c
@@ -744,11 +744,11 @@ time_is_relevant (const IndicatorPowerDevice * device)
* * “X (charged)” if it is fully charged and not discharging;
* * “X (expanded time-remaining string)” if it is charging,
* or discharging with less than 24 hours left;
- * * “X” if it is discharging with 24 hours or more left.
+ * * “X” if it is discharging with 24 hours or more left.
*
* The accessible label for the menu item should be the same as the
* visible label, except with the accessible time-remaining string
- * instead of the expanded time-remaining string.
+ * instead of the expanded time-remaining string.
*/
static char *
get_menuitem_text (const IndicatorPowerDevice * device,
@@ -817,7 +817,7 @@ indicator_power_device_get_accessible_text (const IndicatorPowerDevice * device)
* If “Show Percentage in Menu Bar” is checked (as it should not be by default),
* the brackets should contain the percentage charge for that device.
*
- * If both conditions are true, the time and percentage should be separated by a space.
+ * If both conditions are true, the time and percentage should be separated by a space.
*/
char*
indicator_power_device_get_readable_title (const IndicatorPowerDevice * device,
@@ -873,7 +873,7 @@ indicator_power_device_get_readable_title (const IndicatorPowerDevice * device,
/**
* Regardless, the accessible name for the whole menu title should be the same
- * as the accessible name for that thing’s component inside the menu itself.
+ * as the accessible name for that thing’s component inside the menu itself.
*/
char *
indicator_power_device_get_accessible_title (const IndicatorPowerDevice * device,
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index a7e2beb..9a11984 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -88,8 +88,8 @@ protected:
NOTIFY_INTERFACE,
&error);
g_assert_no_error (error);
-
- // METHOD_GET_INFO
+
+ // METHOD_GET_INFO
dbus_test_dbus_mock_object_add_method(mock, obj, METHOD_GET_INFO,
nullptr,
G_VARIANT_TYPE("(ssss)"),
@@ -113,7 +113,7 @@ protected:
g_assert_no_error (error);
g_free (str);
- // METHOD_CLOSE
+ // METHOD_CLOSE
str = g_strdup_printf("self.EmitSignal('%s', '%s', 'uu', [ args[0], %d ])",
NOTIFY_INTERFACE,
SIGNAL_CLOSED,
@@ -293,7 +293,7 @@ TEST_F(NotifyFixture, LevelsDuringBatteryDrain)
nullptr);
// confirm that draining the battery puts
- // the power_level change through its paces
+ // the power_level change through its paces
for (int i=100; i>=0; --i)
{
changed_params = ChangedParams();