09-06-2007, 07:08 AM | #1 | |||
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
project: clock for iLiad
Who wants to have a digital clock for iLiad Screen?
Right now, you can choose between top left and top right position. In ipdf the clock disappears when you switch page, but comes back when a new minute starts. ipdf is the only app which behaves like this. Quote:
Quote:
Quote:
Information about this code are welcome: Code:
gtk_window_set_gravity(GTK_WINDOW(d.window), GDK_GRAVITY_SOUTH_WEST); explanation of screenshots: #1: gtkclock/mobipocket viewer #2: gtkclock/ipdf #3: gtkclock/GNU Chess #4: gtkclock [first version, never published here, moved with stylus to bottom left]/mobipocket viewer Last edited by yokos; 09-22-2007 at 09:29 AM. Reason: screenshot of an older version |
|||
09-06-2007, 07:27 AM | #2 |
iLiad Maniac
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
|
Time zone setting will be in one of the next updates, so it should be easy to set the timezone for the user then.
Is the clock configurable? I would like to have a tiny clock with no background and no second and a gray font. |
09-06-2007, 08:03 AM | #3 | |||
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
Quote:
Quote:
Quote:
Code:
./bin/gtkclock --format=%H:%M Last edited by yokos; 09-06-2007 at 08:15 AM. Reason: options |
|||
09-06-2007, 08:21 AM | #4 |
iLiad Maniac
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
|
OK, i want it
Is it refreshing the screen automatically? Do you have it do a partial refresh? I t would be great if it sops updating the screen, if no buttons have been pressed for a while. Updates every 10 minutes would suffice for me. Would be great if that could be configured aswell Cant wait to get my hands on it. Thanks for your work mate. |
09-06-2007, 08:26 AM | #5 |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
It updates partial of screen. It uses Antartica's patched libX11.so.6 like all Adam B. ports.
With hh:mm it updates with every new minute. |
09-06-2007, 08:48 AM | #6 |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
Hey tribble. You wanted grey font. This works this way:
Code:
./bin/gtkclock --format=%H:%M --foreground=grey --background=white I get Code:
(clock:1484): Gtk-WARNING **: gtk_migration not initialised yet (clock:1484): Gtk-WARNING **: Screen for GtkWindow not set; you must always set a screen for a GtkWindow before using the window (clock:1484): Gdk-CRITICAL **: gdk_pango_context_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed Segmentation fault This is the most interesting option: Code:
--class=CLASS Program class as used by the window manager Last edited by yokos; 09-06-2007 at 08:49 AM. Reason: spelling |
09-19-2007, 11:08 AM | #7 |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
I have uploaded first binary.
|
09-19-2007, 11:15 AM | #8 | |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Quote:
Very cool, does it support the 12 hour format? Edit: Nevermind, I guess I can do my own research. To get a 12 hour clock, launch it with: "gtkclock --format=%I:%M" This page may be useful for some: http://linux.die.net/man/3/strftime |
|
09-19-2007, 05:05 PM | #9 |
iLiad Maniac
Posts: 1,382
Karma: 2369
Join Date: Apr 2006
Location: Germany
Device: Bookeen Opus (i love that thing) and iPad (what an irony)
|
Works like a charm. Thanks alot. Love the clock.
|
09-20-2007, 04:36 PM | #10 | |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Does:
Quote:
Also, this program should be very easy to compile and make manual screen refreshes without requiring external libs. I can put together a little code tutorial if you'd like... |
|
09-20-2007, 05:08 PM | #11 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Can someone test this?
If I did everything right, it should run without any external libraries, do it's own refreshes, and be in the lower right hand corner. I've even stripped it so at 65KB it could be installed to root without a problem. I'm also uploading the modified source (rename to gtkclock.c) and Makefile (The changes are in "DEPS_LIBS") so you can review the code changes. |
09-20-2007, 06:48 PM | #12 | ||
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
Here's another update that needs to be tested. I've added the ability to select which corner of the screen you would like it to appear on with a command line switch.
Quote:
Quote:
I'm including the source as well. Can someone test it and let me know if it works. I still don't have shell access on my iLiad. -Adam |
||
09-21-2007, 08:40 AM | #13 |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
Hey Adam B.,
I get Code:
(gtkclock:859): Gtk-WARNING **: gtk_migration not initialised yet Segmentation fault Code:
./gtkclock -l=tr Last edited by yokos; 09-21-2007 at 08:48 AM. |
09-21-2007, 08:45 AM | #14 |
Addicted to Porting
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
|
|
09-21-2007, 09:01 AM | #15 |
Pac-Man caught my iLiad.
Posts: 807
Karma: 3595
Join Date: Apr 2006
Location: Germany; next to Baltic Sea
Device: Boox Max Lumi, iRex iLiad (RIP)
|
Oh, Adam anwered an older version of my post.
The more detailed ouput is 2 post above this one. [of course the lastest version ] I get Code:
(gtkclock:859): Gtk-WARNING **: gtk_migration not initialised yet Segmentation fault Code:
./gtkclock -l=tr |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iLiad The iLiad OS Project | jharker | iRex Developer's Corner | 145 | 12-09-2013 01:44 PM |
iLiad The iLiad OS Project roadmap discussion | Antartica | iRex Developer's Corner | 21 | 02-27-2009 03:42 AM |
iLiad The iLiad OS Project UI discussion | Antartica | iRex Developer's Corner | 51 | 11-05-2008 05:10 PM |
iLiad is there a Full Screen Clock for the Iliad? | tshare | iRex Developer's Corner | 1 | 10-03-2007 01:42 PM |
iLiad On screen clock for your iLiad | scotty1024 | iRex Developer's Corner | 3 | 06-05-2007 01:29 PM |