View Single Post
Old 08-25-2010, 11:52 AM   #30
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by Mackx View Post
See: \sysd\src\display.c function: parse_gtk_message() line 686 to 692. Putting an GtkEventBox around it with the correct size might give you the desired screen update. Same as it is done in \popupmenu\src\statusbar.c function: add_toolbar_item.
Or construct a specific update message for sysd...
I assume the update currently falls into a category 'too small to update'.
I think the answer is in the IREX doc, 4.3.3 Refresh Hooks:
"A simple hook is added to GTK's main loop event handler which triggers a screen update on certain expose events. We only perform an update if the expose event was emitted by a top level window, and if the expose is not the result of some intermediate process (such is the case with X configure events). This results in the minimum number of display updates, but it ignores updates to GtkEntry fields because they are implemented as GdkWindows (which are ignored, if they're not top-level)..."

In our case the GtkLabel is contained in a GtkButton, maybe that's the reason it doesn't refresh.

So I will try a gtk_widget_queue_draw() in first place and if it doesn't work either, I'll try the functions from liberutils (display_utils) [1] or a direct ioctl call [2].

Btw, if any of you haven't fully read that thread is really interesting.

[1] https://www.mobileread.com/forums/sho...59&postcount=8
[2] https://www.mobileread.com/forums/sho...24&postcount=4

Ok, we will see in a few hours.

Iņigo
Iņigo is offline   Reply With Quote