Feature #1115
closedMigrate pidialer to use pigtk widgets for both keyboard and textline display.
100%
Description
The pidialer app has its own custom code for keyboard and phone number display. Both are now implemented as widgets in pigtk.
Migrate pidialer to use the keyboard and textline widgets from pigtk.
This will require creating a custom keyboard layout for the phone numbers. Use the same layout as currently implemented in pidialer.
Updated by Hammel 9 months ago
Then I need to set the following environment variables:
- export TSLIB_TSDEVICE=/dev/input/event2
- export DISPLAY=unix:0.0
When run, the following error shows up:
loadJSON[pigtk-keyboard.c:96] INFO Reading file: /usr/share/gtk_keyboard/pidialer-numentry.json loadJSON[pigtk-keyboard.c:100] INFO JSON: (null) gtk_keyboard_init[pigtk-keyboard.c:476] ERROR Invalid rows (0) or columns (0) in GTK_KEYBOARD.
So it looks like there maybe something wrong with the json file.
Updated by Hammel 9 months ago
Fixed - missing commas in cells using icons.
Next issue:
gtk_keyboard_paint[pigtk-keyboard.c:715] INFO Entered. gtk_keyboard_get_type[pigtk-keyboard.c:328] INFO Entered. gtk_keyboard_paint[pigtk-keyboard.c:725] INFO Allocating pixmap gtk_keyboard_get_type[pigtk-keyboard.c:328] INFO Entered. (pidialer:1084): Gdk-CRITICAL **: 02:34:36.981: _gdk_pixmap_new: assertion '(drawable != NULL) || (depth != -1)' failed gtk_keyboard_get_type[pigtk-keyboard.c:328] INFO Entered. do_drawing[pigtk-keyboard.c:168] INFO Entered.
Updated by Hammel 9 months ago
I need to port this to run on the build machine to make testing easier. I've done the initial work of putting libs under /usr/local/lib. Now I need to add the -T option to pidialer, in the same manner that it works for the pigtk test app.
First thing: export GTK_KEYBOARD_DIR="$(pwd)/data"
Updated by Hammel 9 months ago
- % Done changed from 30 to 60
Ready for testing on hardware again. This version is cleaner than the last one as I've updated the icons and fixed the background of icons in the keyboard widget.
Note that libpigtk needs to be pushed to hardware too, as it has an update too.