1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-15 21:05:36 +00:00
Purism-Calls/src
Julian Sparber 497fe072fc
Replace HdyDialer with HdyKeypad and bump libhandy to 0.0.12
HdyDialer was deprecated and therefore is replaced with HdyKeypad.
HdyDialer used a `gchr *` to store the entered phone number. On every
button press the entire text of the display entry was replaced with the new
string, which messed up selection and cursor position.
HdyKeypad connects directly to a GtkEntry and inserts each
button press the same way as a keyboard stroke would do.

In the case of the `call display` entry every new digit is appended to the
end of the input and therefore it also moves the cursor to the end of the
entry. Instead of making the Entry not editable, only the events which
would remove text form the entry are blocked, via the `delete-text`
signal. And the signal `insert-text` is used to block unwanted chars
from beeing inserted.

Same as for the `call display` entry also the `new call box` entry is
made editable and the signal `insert-text` is used to block unwanted
chars. All other user action possible on a entry arn't blocked
e.g. repositioning the cursor.

The advantage of making the Entry editable is that we can show
the cursor position.
It also allows the user to select the position where new digits are
inserted in the `new call box`.
On a button press the focus is set to the Entry to give the correct
feedback to the user.

This centers the text on the entry, as required by the design.
This also makes the delete button remove only one char at the time, to
move closer to the desired UX.
Related: https://source.puri.sm/Librem5/calls/issues/58

Fixes: https://source.puri.sm/Librem5/calls/issues/82
2020-01-27 14:27:06 +01:00
..
ui Replace HdyDialer with HdyKeypad and bump libhandy to 0.0.12 2020-01-27 14:27:06 +01:00
wayland Display call window over the phosh lockscreen 2019-09-06 14:58:08 +01:00
calls-application.c Use libfolks phone number lookup in call record display 2019-10-29 14:54:45 +00:00
calls-application.h Add calls-application class 2018-10-04 18:33:47 +05:30
calls-best-match-view.vala Add phone number lookup using libfolks 2019-10-29 13:21:45 +00:00
calls-best-match.c Add initial avatar support 2019-12-10 14:46:31 +00:00
calls-best-match.h Add initial avatar support 2019-12-10 14:46:31 +00:00
calls-call-data.c Drop the CALLS_SET_OBJECT_PROPERTY() macro 2018-08-03 11:30:18 +02:00
calls-call-data.h Preliminary documentation of provider interfaces 2018-05-23 09:59:28 +01:00
calls-call-display.c Replace HdyDialer with HdyKeypad and bump libhandy to 0.0.12 2020-01-27 14:27:06 +01:00
calls-call-display.h call-display: Add a dial pad overlay 2018-08-29 09:05:57 +02:00
calls-call-holder.c src: Remove mutual reference between call -holder and -selector-item 2018-11-30 16:48:25 +00:00
calls-call-holder.h Initial import of cleaned Calls working tree 2018-05-17 14:16:51 +01:00
calls-call-record-row.c Add initial avatar support 2019-12-10 14:46:31 +00:00
calls-call-record-row.h Use libfolks phone number lookup in call record display 2019-10-29 14:54:45 +00:00
calls-call-record.c Record calls to an SQLite database via libgom 2019-07-22 14:37:41 +01:00
calls-call-record.h Record calls to an SQLite database via libgom 2019-07-22 14:37:41 +01:00
calls-call-selector-item.c src: Remove mutual reference between call -holder and -selector-item 2018-11-30 16:48:25 +00:00
calls-call-selector-item.h src: Remove mutual reference between call -holder and -selector-item 2018-11-30 16:48:25 +00:00
calls-call-window.c Display call window over the phosh lockscreen 2019-09-06 14:58:08 +01:00
calls-call-window.h src: Give the Provider to the CallWindow on construction 2018-10-08 10:40:02 +00:00
calls-call.c calls-call: Add calls_call_get_inbound function 2019-07-22 11:52:42 +01:00
calls-call.h calls-call: Add calls_call_get_inbound function 2019-07-22 11:52:42 +01:00
calls-contacts.c Add initial avatar support 2019-12-10 14:46:31 +00:00
calls-contacts.h Add initial avatar support 2019-12-10 14:46:31 +00:00
calls-encryption-indicator.c Add CallsEncryptionIndicator 2018-07-31 10:14:49 +02:00
calls-encryption-indicator.h Add CallsEncryptionIndicator 2018-07-31 10:14:49 +02:00
calls-enumerate-params.c src: Generalise Provider object enumeration with calls_enumerate() 2018-11-01 11:14:49 +00:00
calls-enumerate-params.h src: Generalise Provider object enumeration with calls_enumerate() 2018-11-01 11:14:49 +00:00
calls-enumerate.c src: Generalise Provider object enumeration with calls_enumerate() 2018-11-01 11:14:49 +00:00
calls-enumerate.h src: Generalise Provider object enumeration with calls_enumerate() 2018-11-01 11:14:49 +00:00
calls-history-box.c Use libfolks phone number lookup in call record display 2019-10-29 14:54:45 +00:00
calls-history-box.h Use libfolks phone number lookup in call record display 2019-10-29 14:54:45 +00:00
calls-main-window.c Use libfolks phone number lookup in call record display 2019-10-29 14:54:45 +00:00
calls-main-window.h Use libfolks phone number lookup in call record display 2019-10-29 14:54:45 +00:00
calls-message-source.c Preliminary documentation of provider interfaces 2018-05-23 09:59:28 +01:00
calls-message-source.h Preliminary documentation of provider interfaces 2018-05-23 09:59:28 +01:00
calls-new-call-box.c Replace HdyDialer with HdyKeypad and bump libhandy to 0.0.12 2020-01-27 14:27:06 +01:00
calls-new-call-box.h Hook up Recent Calls list to database 2019-08-01 14:39:55 +01:00
calls-origin.c Initial import of cleaned Calls working tree 2018-05-17 14:16:51 +01:00
calls-origin.h Initial import of cleaned Calls working tree 2018-05-17 14:16:51 +01:00
calls-party.c party: Replace the default party avatar 2018-07-31 10:20:38 +02:00
calls-party.h Initial import of cleaned Calls working tree 2018-05-17 14:16:51 +01:00
calls-phone-number-query.vala Add phone number lookup using libfolks 2019-10-29 13:21:45 +00:00
calls-provider.c Fix modem addition/removal and deal with ModemManager appearing/vanishing 2018-10-19 10:24:00 +00:00
calls-provider.h src: Generalise Provider object enumeration with calls_enumerate() 2018-11-01 11:14:49 +00:00
calls-record-store.c Hook up Recent Calls list to database 2019-08-01 14:39:55 +01:00
calls-record-store.h Hook up Recent Calls list to database 2019-08-01 14:39:55 +01:00
calls-ringer.c ringer: Use the GTK sound theme 2019-09-23 15:22:31 +01:00
calls-ringer.h Add ringtone support using GSound 2018-11-09 16:30:40 +00:00
calls-wayland-config.h Display call window over the phosh lockscreen 2019-09-06 14:58:08 +01:00
calls.gresources.xml Hook up Recent Calls list to database 2019-08-01 14:39:55 +01:00
main.c main: Remove needless cast to GtkApplication 2018-11-09 16:20:39 +00:00
meson.build Replace HdyDialer with HdyKeypad and bump libhandy to 0.0.12 2020-01-27 14:27:06 +01:00
util.c Add initial avatar support 2019-12-10 14:46:31 +00:00
util.h Add initial avatar support 2019-12-10 14:46:31 +00:00