[libhandy] keypad: Beep when typing invalid chars
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy] keypad: Beep when typing invalid chars
- Date: Thu, 7 Jan 2021 09:29:54 +0000 (UTC)
commit 36e6e7edd0c4cf79b4aaf05551e922b4ddf5e9e3
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Jan 7 12:50:43 2021 +0500
keypad: Beep when typing invalid chars
src/hdy-keypad.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/hdy-keypad.c b/src/hdy-keypad.c
index 90f896ee..1d947ab1 100644
--- a/src/hdy-keypad.c
+++ b/src/hdy-keypad.c
@@ -123,6 +123,8 @@ insert_text_cb (HdyKeypad *self,
if (priv->symbols_visible && strchr ("#*+", *q))
continue;
+ gtk_widget_error_bell (GTK_WIDGET (editable));
+
g_signal_stop_emission_by_name (editable, "insert-text");
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]