View Single Post
Old 09-27-2008, 05:03 AM   #1
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
A homebrew txt viewer and asking for help

This is a small GTK proram running on iLiad. Unpack it to anywhere and execute from contentlister.Because I haven't figured out the refresh mechanism, please wait for 5 secs after executing, then touch the "page 1" label (on the middle of bottom).

Attention: After each action, touch the page label on mid-bottom to refresh screen manually.

Users can select a text file to display on screen by touching "Folder" button. Touching "Cancel" button will close the program.

With proper font file installed, this app can display national text in UTF-8 encoding.

Souce code is included. Compile command:
Code:
gcc -o gtktextview gtktextview.c -I`pkg-config --cflags --libs gtk+-2.0`
I need help on getting automaitc screen refresh. Even though some people, such as scotty1024 and Antatica has proposed some way to refresh screen. I just don't understand. I tried to peek into source code of iPDF and found that it's too complicated for me to understand.
Any help is welcome.
Attached Files
File Type: zip gtktextview.zip (6.2 KB, 391 views)

Last edited by ericshliao; 09-27-2008 at 07:56 AM.
ericshliao is offline   Reply With Quote