diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/device.c | 8 | ||||
-rw-r--r-- | tests/test-notify.cc | 8 |
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(); |