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 about 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
Initial port is ready for testing, including numentry.json config file.
Updated by Hammel about 1 year 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 about 1 year 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 about 1 year 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 about 1 year ago
Ugh. I screwed up and lost the changes to pidialer.c. Too many things going on at once.
I'll have to redo those changes. Not hard, but it's stupid that I did this.
Updated by Hammel about 1 year 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.
Updated by Hammel about 1 year ago
- Status changed from In Progress to Closed
- % Done changed from 60 to 100