mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-20 02:00:03 +01:00
Fix spelling issues with codespell
This commit is contained in:
parent
17e5903670
commit
bab81e5e44
17 changed files with 29 additions and 29 deletions
10
NEWS
10
NEWS
|
|
@ -65,7 +65,7 @@ Released: 2023-07-04
|
|||
connected through Bluetooth would show as 2 batteries)
|
||||
- Hide duplicate Logitech wireless devices when they get connected
|
||||
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
|
||||
- Handle the "present" sysfs attribute changing
|
||||
- Fix iDevices not appearing
|
||||
|
|
@ -631,7 +631,7 @@ Bugfixes:
|
|||
- Depend on stable GUdev API (Michael Biebl)
|
||||
- Drop devkit and devkit-power-daemon symlinks (Michael Biebl)
|
||||
- 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
|
||||
~~~~~~~~~~~~~
|
||||
|
|
@ -851,7 +851,7 @@ Bugfixes:
|
|||
- Update the list of HID UPS (Arnaud Quette)
|
||||
- Use a gdouble for percentage to fix on-battery reporting (Byron Clark)
|
||||
- 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
|
||||
is very low (Richard Hughes)
|
||||
- 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)
|
||||
- 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)
|
||||
- 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)
|
||||
- Make the suspend and hibernate scripts execute synchronously. Fixes rh#497563 (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)
|
||||
- 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
|
||||
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)
|
||||
|
||||
Bugfixes:
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
|
|||
</doc:description>
|
||||
<doc:permission>Callers will need to make sure that the daemon was started in debug mode</doc:permission>
|
||||
<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:doc>
|
||||
</method>
|
||||
|
|
@ -263,7 +263,7 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
|
|||
</doc:para>
|
||||
</doc:description>
|
||||
<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:doc>
|
||||
</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: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:list>
|
||||
<doc:para>
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
</doc:para>
|
||||
</doc:description>
|
||||
<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:doc>
|
||||
</method>
|
||||
|
|
@ -52,7 +52,7 @@
|
|||
</doc:para>
|
||||
</doc:description>
|
||||
<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:doc>
|
||||
</method>
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
</doc:para>
|
||||
</doc:description>
|
||||
<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:doc>
|
||||
</method>
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@
|
|||
<title>libupower-glib helpers</title>
|
||||
<partintro>
|
||||
<para>
|
||||
This part documents helper funtions in libupower-glib.
|
||||
This part documents helper functions in libupower-glib.
|
||||
</para>
|
||||
</partintro>
|
||||
<xi:include href="xml/up-types.xml"/>
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ TimeAction=120
|
|||
# Enable the risky CriticalPowerAction-Suspend
|
||||
# This option is not recommended, but it is here for users who
|
||||
# want to enable the riscky CriticalPowerAction, such as "Suspend"
|
||||
# to fulfil their needs.
|
||||
# to fulfill their needs.
|
||||
# Default is false
|
||||
AllowRiskyCriticalPowerAction=false
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
* 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
|
||||
* and cancelling long operations yourself.
|
||||
* and canceling long operations yourself.
|
||||
*
|
||||
* Return value: a new UpClient object, or %NULL on failure.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -971,7 +971,7 @@ up_device_class_init (UpDeviceClass *klass)
|
|||
/**
|
||||
* UpDevice:is-rechargeable:
|
||||
*
|
||||
* If the device has a rechargable battery.
|
||||
* If the device has a rechargeable battery.
|
||||
*
|
||||
* Since: 0.9.0
|
||||
**/
|
||||
|
|
@ -1238,7 +1238,7 @@ up_device_class_init (UpDeviceClass *klass)
|
|||
/**
|
||||
* UpDevice:icon-name:
|
||||
*
|
||||
* The icon name, following the Icon Naming Speficiation
|
||||
* The icon name, following the Icon Naming Specification
|
||||
*
|
||||
* Since: 1.0
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -238,7 +238,7 @@ up_device_supply_battery_refresh (UpDevice *device,
|
|||
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) */
|
||||
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).
|
||||
*
|
||||
* 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).
|
||||
*/
|
||||
values.energy.rate = fabs (g_udev_device_get_sysfs_attr_as_double_uncached (native, "current_now") / 1000000.0);
|
||||
|
|
|
|||
|
|
@ -554,7 +554,7 @@ up_device_supply_guess_type (GUdevDevice *native,
|
|||
g_warning ("USB power supply %s without usb_type property, please report",
|
||||
native_path);
|
||||
} else {
|
||||
g_warning ("did not recognise type %s, please report", device_type);
|
||||
g_warning ("did not recognize type %s, please report", device_type);
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
number_tokens = g_strv_length (tokens);
|
||||
if (number_tokens < 3) {
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ up_backend_apm_event_thread(gpointer object)
|
|||
}
|
||||
#endif
|
||||
return NULL;
|
||||
/* shouldnt be reached ? */
|
||||
/* shouldn't be reached ? */
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ up_device_battery_update_poll_frequency (UpDeviceBattery *self,
|
|||
* and one of the following holds true:
|
||||
* 1. The current stat is unknown; we hope that this is transient
|
||||
* 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
|
||||
* always result in a separate uevent.
|
||||
*
|
||||
|
|
@ -270,7 +270,7 @@ up_device_battery_report (UpDeviceBattery *self,
|
|||
* incorrectly multiplied by the voltage.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Unfortunately, the hardware is quite old (X201s) which makes it hard
|
||||
|
|
|
|||
|
|
@ -660,7 +660,7 @@ up_device_get_history (UpExportedDevice *skeleton,
|
|||
else if (g_strcmp0 (type_string, "time-empty") == 0)
|
||||
type = UP_HISTORY_TYPE_TIME_EMPTY;
|
||||
|
||||
/* something recognised */
|
||||
/* something recognized */
|
||||
if (type != UP_HISTORY_TYPE_UNKNOWN) {
|
||||
ensure_history (device);
|
||||
array = up_history_get_data (priv->history, type, timespan, resolution);
|
||||
|
|
@ -905,7 +905,7 @@ up_device_class_init (UpDeviceClass *klass)
|
|||
properties[PROP_DISCONNECTED] =
|
||||
g_param_spec_boolean ("disconnected",
|
||||
"Disconnected",
|
||||
"Whethe wireless device is disconnected",
|
||||
"Whether wireless device is disconnected",
|
||||
FALSE,
|
||||
G_PARAM_STATIC_STRINGS | G_PARAM_WRITABLE | G_PARAM_READABLE);
|
||||
|
||||
|
|
|
|||
|
|
@ -255,7 +255,7 @@ up_history_get_data (UpHistory *history, UpHistoryType type, guint timespan, gui
|
|||
else if (type == UP_HISTORY_TYPE_TIME_EMPTY)
|
||||
array_data = history->priv->data_time_empty;
|
||||
|
||||
/* not recognised */
|
||||
/* not recognized */
|
||||
if (array_data == NULL)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ main (gint argc, gchar **argv)
|
|||
g_source_set_name_by_id (timer_id, "[upower] up_main_timed_exit_cb");
|
||||
}
|
||||
|
||||
/* immediatly exit */
|
||||
/* immediately exit */
|
||||
if (immediate_exit) {
|
||||
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");
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ up_polkit_check_auth (UpPolkit *polkit, PolkitSubject *subject, const gchar *act
|
|||
POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION,
|
||||
NULL, &error_local);
|
||||
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);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ up_test_history_func (void)
|
|||
ret = up_history_set_id (history, "test");
|
||||
g_assert (ret);
|
||||
|
||||
/* get nonexistant data */
|
||||
/* get nonexistent data */
|
||||
array = up_history_get_data (history, UP_HISTORY_TYPE_CHARGE, 10, 100);
|
||||
g_assert (array != NULL);
|
||||
g_assert_cmpint (array->len, ==, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue