mirror of
https://gitlab.gnome.org/GNOME/libmks.git
synced 2025-04-14 08:27:16 +00:00
lib: add missing finish functions for key press/release
This commit is contained in:
parent
ddd6a58adc
commit
cc7d267814
@ -238,6 +238,17 @@ mks_keyboard_press (MksKeyboard *self,
|
||||
g_steal_pointer (&task));
|
||||
}
|
||||
|
||||
gboolean
|
||||
mks_keyboard_press_finish (MksKeyboard *self,
|
||||
GAsyncResult *result,
|
||||
GError **error)
|
||||
{
|
||||
g_return_val_if_fail (MKS_IS_KEYBOARD (self), FALSE);
|
||||
g_return_val_if_fail (g_task_is_valid (result, self), FALSE);
|
||||
|
||||
return g_task_propagate_boolean (G_TASK (result), error);
|
||||
}
|
||||
|
||||
gboolean
|
||||
mks_keyboard_press_sync (MksKeyboard *self,
|
||||
guint keycode,
|
||||
@ -308,6 +319,17 @@ mks_keyboard_release (MksKeyboard *self,
|
||||
g_steal_pointer (&task));
|
||||
}
|
||||
|
||||
gboolean
|
||||
mks_keyboard_release_finish (MksKeyboard *self,
|
||||
GAsyncResult *result,
|
||||
GError **error)
|
||||
{
|
||||
g_return_val_if_fail (MKS_IS_KEYBOARD (self), FALSE);
|
||||
g_return_val_if_fail (g_task_is_valid (result, self), FALSE);
|
||||
|
||||
return g_task_propagate_boolean (G_TASK (result), error);
|
||||
}
|
||||
|
||||
gboolean
|
||||
mks_keyboard_release_sync (MksKeyboard *self,
|
||||
guint keycode,
|
||||
|
Loading…
x
Reference in New Issue
Block a user