Fix spelling issues with codespell

This commit is contained in:
Kate Hsuan 2025-01-07 15:56:33 +08:00
parent 17e5903670
commit bab81e5e44
17 changed files with 29 additions and 29 deletions

10
NEWS
View file

@ -65,7 +65,7 @@ Released: 2023-07-04
connected through Bluetooth would show as 2 batteries) connected through Bluetooth would show as 2 batteries)
- Hide duplicate Logitech wireless devices when they get connected - Hide duplicate Logitech wireless devices when they get connected
through USB as well through USB as well
- Fix Bluetooth device names not synchronising, and use user-chosen - Fix Bluetooth device names not synchronizing, and use user-chosen
names when available names when available
- Handle the "present" sysfs attribute changing - Handle the "present" sysfs attribute changing
- Fix iDevices not appearing - Fix iDevices not appearing
@ -631,7 +631,7 @@ Bugfixes:
- Depend on stable GUdev API (Michael Biebl) - Depend on stable GUdev API (Michael Biebl)
- Drop devkit and devkit-power-daemon symlinks (Michael Biebl) - Drop devkit and devkit-power-daemon symlinks (Michael Biebl)
- Fix bitmap check in the input code (Arnaud Patard) - Fix bitmap check in the input code (Arnaud Patard)
- Honour ACLOCAL_FLAGS in Makefile.am (Richard Hughes) - Honor ACLOCAL_FLAGS in Makefile.am (Richard Hughes)
Version 0.9.8 Version 0.9.8
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
@ -851,7 +851,7 @@ Bugfixes:
- Update the list of HID UPS (Arnaud Quette) - Update the list of HID UPS (Arnaud Quette)
- Use a gdouble for percentage to fix on-battery reporting (Byron Clark) - Use a gdouble for percentage to fix on-battery reporting (Byron Clark)
- Bug 24262 incorrect battery recall warning for Lenovo T61 (Martin Pitt) - Bug 24262 incorrect battery recall warning for Lenovo T61 (Martin Pitt)
- Fix the toshiba battery recal notices by matching up the double quotes (Richard Hughes) - Fix the toshiba battery recall notices by matching up the double quotes (Richard Hughes)
- Avoid going from discharging to pending-discharge when the expansion battery - Avoid going from discharging to pending-discharge when the expansion battery
is very low (Richard Hughes) is very low (Richard Hughes)
- Some vendors fill the NVRAM full of junk. Don't crash the daemon if the - Some vendors fill the NVRAM full of junk. Don't crash the daemon if the
@ -990,7 +990,7 @@ Bugfixes:
- Remove the 0x prefix from some rule matches (Ronald) - Remove the 0x prefix from some rule matches (Ronald)
- Allow all DBus properties to be read with the new DBus (Richard Hughes) - Allow all DBus properties to be read with the new DBus (Richard Hughes)
- Only reset the update-time if the read was successful (Richard Hughes) - Only reset the update-time if the read was successful (Richard Hughes)
- Optimise the udev rules to skip non-usb devices (Richard Hughes) - Optimize the udev rules to skip non-usb devices (Richard Hughes)
- Ensure we get properties on devices correctly that have not yet been changed (Richard Hughes) - Ensure we get properties on devices correctly that have not yet been changed (Richard Hughes)
- Make the suspend and hibernate scripts execute synchronously. Fixes rh#497563 (Richard Hughes) - Make the suspend and hibernate scripts execute synchronously. Fixes rh#497563 (Richard Hughes)
- Ignore method timeouts when we suspend and hibernate (Richard Hughes) - Ignore method timeouts when we suspend and hibernate (Richard Hughes)
@ -1020,7 +1020,7 @@ New Features:
- Get rid of internal Object and instead use the GObject property system (Richard Hughes) - Get rid of internal Object and instead use the GObject property system (Richard Hughes)
- Move the library directory from libdevkit-power to devkit-power-gobject (Richard Hughes) - Move the library directory from libdevkit-power to devkit-power-gobject (Richard Hughes)
- Ship a shared library. There are now three external projects using copies of - Ship a shared library. There are now three external projects using copies of
this, which is rediculous (Richard Hughes) this, which is ridiculous (Richard Hughes)
- Require I_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE (Richard Hughes) - Require I_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE (Richard Hughes)
Bugfixes: Bugfixes:

View file

@ -148,7 +148,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
</doc:description> </doc:description>
<doc:permission>Callers will need to make sure that the daemon was started in debug mode</doc:permission> <doc:permission>Callers will need to make sure that the daemon was started in debug mode</doc:permission>
<doc:errors> <doc:errors>
<doc:error name="&ERROR_GENERAL;">if an error occured while refreshing</doc:error> <doc:error name="&ERROR_GENERAL;">if an error occurred while refreshing</doc:error>
</doc:errors> </doc:errors>
</doc:doc> </doc:doc>
</method> </method>
@ -263,7 +263,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
</doc:para> </doc:para>
</doc:description> </doc:description>
<doc:errors> <doc:errors>
<doc:error name="&ERROR_GENERAL;">if an error occured while setting the battery charge limits</doc:error> <doc:error name="&ERROR_GENERAL;">if an error occurred while setting the battery charge limits</doc:error>
</doc:errors> </doc:errors>
</doc:doc> </doc:doc>
</method> </method>
@ -416,7 +416,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
<doc:term>27</doc:term><doc:definition>Toy</doc:definition> <doc:term>27</doc:term><doc:definition>Toy</doc:definition>
</doc:item> </doc:item>
<doc:item> <doc:item>
<doc:term>28</doc:term><doc:definition>Bluetooth Genreic</doc:definition> <doc:term>28</doc:term><doc:definition>Bluetooth Generic</doc:definition>
</doc:item> </doc:item>
</doc:list> </doc:list>
<doc:para> <doc:para>

View file

@ -31,7 +31,7 @@
</doc:para> </doc:para>
</doc:description> </doc:description>
<doc:errors> <doc:errors>
<doc:error name="&ERROR_GENERAL;">if an error occured while getting the maximum brightness</doc:error> <doc:error name="&ERROR_GENERAL;">if an error occurred while getting the maximum brightness</doc:error>
</doc:errors> </doc:errors>
</doc:doc> </doc:doc>
</method> </method>
@ -52,7 +52,7 @@
</doc:para> </doc:para>
</doc:description> </doc:description>
<doc:errors> <doc:errors>
<doc:error name="&ERROR_GENERAL;">if an error occured while getting the brightness</doc:error> <doc:error name="&ERROR_GENERAL;">if an error occurred while getting the brightness</doc:error>
</doc:errors> </doc:errors>
</doc:doc> </doc:doc>
</method> </method>
@ -73,7 +73,7 @@
</doc:para> </doc:para>
</doc:description> </doc:description>
<doc:errors> <doc:errors>
<doc:error name="&ERROR_GENERAL;">if an error occured while setting the brightness</doc:error> <doc:error name="&ERROR_GENERAL;">if an error occurred while setting the brightness</doc:error>
</doc:errors> </doc:errors>
</doc:doc> </doc:doc>
</method> </method>

View file

@ -86,7 +86,7 @@
<title>libupower-glib helpers</title> <title>libupower-glib helpers</title>
<partintro> <partintro>
<para> <para>
This part documents helper funtions in libupower-glib. This part documents helper functions in libupower-glib.
</para> </para>
</partintro> </partintro>
<xi:include href="xml/up-types.xml"/> <xi:include href="xml/up-types.xml"/>

View file

@ -84,7 +84,7 @@ TimeAction=120
# Enable the risky CriticalPowerAction-Suspend # Enable the risky CriticalPowerAction-Suspend
# This option is not recommended, but it is here for users who # This option is not recommended, but it is here for users who
# want to enable the riscky CriticalPowerAction, such as "Suspend" # want to enable the riscky CriticalPowerAction, such as "Suspend"
# to fulfil their needs. # to fulfill their needs.
# Default is false # Default is false
AllowRiskyCriticalPowerAction=false AllowRiskyCriticalPowerAction=false

View file

@ -615,7 +615,7 @@ up_client_new_full (GCancellable *cancellable, GError **error)
* Creates a new #UpClient object. If connecting to upowerd on D-Bus fails, * Creates a new #UpClient object. If connecting to upowerd on D-Bus fails,
* this returns %NULL and prints out a warning with the error message. * this returns %NULL and prints out a warning with the error message.
* Consider using up_client_new_full() instead which allows you to handle errors * Consider using up_client_new_full() instead which allows you to handle errors
* and cancelling long operations yourself. * and canceling long operations yourself.
* *
* Return value: a new UpClient object, or %NULL on failure. * Return value: a new UpClient object, or %NULL on failure.
* *

View file

@ -971,7 +971,7 @@ up_device_class_init (UpDeviceClass *klass)
/** /**
* UpDevice:is-rechargeable: * UpDevice:is-rechargeable:
* *
* If the device has a rechargable battery. * If the device has a rechargeable battery.
* *
* Since: 0.9.0 * Since: 0.9.0
**/ **/
@ -1238,7 +1238,7 @@ up_device_class_init (UpDeviceClass *klass)
/** /**
* UpDevice:icon-name: * UpDevice:icon-name:
* *
* The icon name, following the Icon Naming Speficiation * The icon name, following the Icon Naming Specification
* *
* Since: 1.0 * Since: 1.0
**/ **/

View file

@ -238,7 +238,7 @@ up_device_supply_battery_refresh (UpDevice *device,
info.charge_control_supported = FALSE; info.charge_control_supported = FALSE;
} }
/* NOTE: We used to warn about full > design, but really that is prefectly fine to happen. */ /* NOTE: We used to warn about full > design, but really that is perfectly fine to happen. */
/* Update the battery information (will only fire events for actual changes) */ /* Update the battery information (will only fire events for actual changes) */
up_device_battery_update_info (battery, &info); up_device_battery_update_info (battery, &info);
@ -262,7 +262,7 @@ up_device_supply_battery_refresh (UpDevice *device,
* consistency (but we used to read it in the past). * consistency (but we used to read it in the past).
* *
* See https://bugs.freedesktop.org/show_bug.cgi?id=60104#c2 * See https://bugs.freedesktop.org/show_bug.cgi?id=60104#c2
* whichs reports energy_now of 15.05 Wh while our calculation * which's reports energy_now of 15.05 Wh while our calculation
* will be ~16.4Wh by multiplying charge with voltage). * will be ~16.4Wh by multiplying charge with voltage).
*/ */
values.energy.rate = fabs (g_udev_device_get_sysfs_attr_as_double_uncached (native, "current_now") / 1000000.0); values.energy.rate = fabs (g_udev_device_get_sysfs_attr_as_double_uncached (native, "current_now") / 1000000.0);

View file

@ -554,7 +554,7 @@ up_device_supply_guess_type (GUdevDevice *native,
g_warning ("USB power supply %s without usb_type property, please report", g_warning ("USB power supply %s without usb_type property, please report",
native_path); native_path);
} else { } else {
g_warning ("did not recognise type %s, please report", device_type); g_warning ("did not recognize type %s, please report", device_type);
} }
out: out:

View file

@ -201,7 +201,7 @@ up_device_wup_parse_command (UpDeviceWup *wup, const gchar *data)
} }
} }
/* check we have enough data inthe packet */ /* check we have enough data in the packet */
tokens = g_strsplit (packet, ",", -1); tokens = g_strsplit (packet, ",", -1);
number_tokens = g_strv_length (tokens); number_tokens = g_strv_length (tokens);
if (number_tokens < 3) { if (number_tokens < 3) {

View file

@ -602,7 +602,7 @@ up_backend_apm_event_thread(gpointer object)
} }
#endif #endif
return NULL; return NULL;
/* shouldnt be reached ? */ /* shouldn't be reached ? */
} }
/** /**

View file

@ -199,7 +199,7 @@ up_device_battery_update_poll_frequency (UpDeviceBattery *self,
* and one of the following holds true: * and one of the following holds true:
* 1. The current stat is unknown; we hope that this is transient * 1. The current stat is unknown; we hope that this is transient
* and re-poll. * and re-poll.
* 2. A change occured on a line power supply. This likely means that * 2. A change occurred on a line power supply. This likely means that
* batteries switch between charging/discharging which does not * batteries switch between charging/discharging which does not
* always result in a separate uevent. * always result in a separate uevent.
* *
@ -270,7 +270,7 @@ up_device_battery_report (UpDeviceBattery *self,
* incorrectly multiplied by the voltage. * incorrectly multiplied by the voltage.
* *
* Said differently, just assuming the units did *not* change should * Said differently, just assuming the units did *not* change should
* give us a saner value. Obviously, things will fall appart if upower * give us a saner value. Obviously, things will fall apart if upower
* is restarted and this should be fixed in the kernel or firmware. * is restarted and this should be fixed in the kernel or firmware.
* *
* Unfortunately, the hardware is quite old (X201s) which makes it hard * Unfortunately, the hardware is quite old (X201s) which makes it hard

View file

@ -660,7 +660,7 @@ up_device_get_history (UpExportedDevice *skeleton,
else if (g_strcmp0 (type_string, "time-empty") == 0) else if (g_strcmp0 (type_string, "time-empty") == 0)
type = UP_HISTORY_TYPE_TIME_EMPTY; type = UP_HISTORY_TYPE_TIME_EMPTY;
/* something recognised */ /* something recognized */
if (type != UP_HISTORY_TYPE_UNKNOWN) { if (type != UP_HISTORY_TYPE_UNKNOWN) {
ensure_history (device); ensure_history (device);
array = up_history_get_data (priv->history, type, timespan, resolution); array = up_history_get_data (priv->history, type, timespan, resolution);
@ -905,7 +905,7 @@ up_device_class_init (UpDeviceClass *klass)
properties[PROP_DISCONNECTED] = properties[PROP_DISCONNECTED] =
g_param_spec_boolean ("disconnected", g_param_spec_boolean ("disconnected",
"Disconnected", "Disconnected",
"Whethe wireless device is disconnected", "Whether wireless device is disconnected",
FALSE, FALSE,
G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_READABLE); G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_READABLE);

View file

@ -255,7 +255,7 @@ up_history_get_data (UpHistory *history, UpHistoryType type, guint timespan, gui
else if (type == UP_HISTORY_TYPE_TIME_EMPTY) else if (type == UP_HISTORY_TYPE_TIME_EMPTY)
array_data = history->priv->data_time_empty; array_data = history->priv->data_time_empty;
/* not recognised */ /* not recognized */
if (array_data == NULL) if (array_data == NULL)
return NULL; return NULL;

View file

@ -284,7 +284,7 @@ main (gint argc, gchar **argv)
g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb"); g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb");
} }
/* immediatly exit */ /* immediately exit */
if (immediate_exit) { if (immediate_exit) {
g_timeout_add (50, (GSourceFunc) up_main_timed_exit_cb, state); g_timeout_add (50, (GSourceFunc) up_main_timed_exit_cb, state);
g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb"); g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb");

View file

@ -85,7 +85,7 @@ up_polkit_check_auth (UpPolkit *polkit, PolkitSubject *subject, const gchar *act
POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION, POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION,
NULL, &error_local); NULL, &error_local);
if (result == NULL) { if (result == NULL) {
error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "failed to check authorisation: %s", error_local->message); error = g_error_new (UP_DAEMON_ERROR, UP_DAEMON_ERROR_GENERAL, "failed to check authorization: %s", error_local->message);
g_dbus_method_invocation_return_gerror (invocation, error); g_dbus_method_invocation_return_gerror (invocation, error);
return FALSE; return FALSE;
} }

View file

@ -166,7 +166,7 @@ up_test_history_func (void)
ret = up_history_set_id (history, "test"); ret = up_history_set_id (history, "test");
g_assert (ret); g_assert (ret);
/* get nonexistant data */ /* get nonexistent data */
array = up_history_get_data (history, UP_HISTORY_TYPE_CHARGE, 10, 100); array = up_history_get_data (history, UP_HISTORY_TYPE_CHARGE, 10, 100);
g_assert (array != NULL); g_assert (array != NULL);
g_assert_cmpint (array->len, ==, 0); g_assert_cmpint (array->len, ==, 0);