(I wanted to react on the iRex forum, but they do not allow attachements, so I post it here)
I finally had some time to add an icon to the toolbar when running leafpad. This allows you to switch to other programs and switch back to leafpad again.
I had some problems with the makefiles (autoreconf to be more specific), so I modified the Makefile directly... (If someone knows how to fix this please let me know.)
I reused a small part of the ipc.c file from helloworld to signal that the app has started. This will add the icon in the taskbar and allow you to switch back to leafpad. (I had to include the ipc.c file in main.c because of the problems with autoreconf that I had.)
(If you want to test the new code on the emulator, be sure to start the application from UDS, so via a .desktop-file, otherwise the icon will not show up)
Since the patched code with the 'Close Keyboard'-button is not published, I publish my change and hope that UtterInanity will add these changes to his version with the button.
The attached file contains the added ipc.c and ipc.h, the manually changed src/Makefile and the modified main.c. The same trick can also be applied to other programs that are ported to the DR.
I also included the build leafpad application, but be carefull, this is without the Close Keyboard patch.
|