Quote:
Originally Posted by Mackx
Is it possible to use the pageChange-event (see ctb/src/ipc.c) instead of a thread? To only update the clock when a page is turned. Not sure if this also works on the DR1000.
|
I see a problem here: if clock widget lives on POPUPMENU and time updating is done on CTB we would need to implement some dbus messages flowing between both apps. It looks too complex for me.
I'm working now on this, and I think glib's g_timeout_add() is the simpler option.
Regarding UI, my first thought was to place the clock at the right, but it's not easy because that area is not easily controlled within POPUPMENU. More over, it doesn't fit on DR800 screen so what I'm doing is to substitute "Menu" button with the clock:
o 23:55 ...icons... battery
where 'o' above is the menu icon.
I expect to show you some code in a few hours if there are no problems.