D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] GTK2 programming

 

Hi everyone,

Does any one know much about gtk2 programming. I've got a basic test
app running with a label that is updated by a call back function. The
callback is occurring from an external library that is doing usb comms
and calling back when certain data changes (eg its a separate thread).

I can't for the life of me get the label widget to update every
callback, if i click on the window or resize the window, it updates
but apart from that i can't find the correct command to force the
redraw. I did try playing with g_main_context_iteration() and this
does force a redraw but generates warnings about another thread having
the context and quickly crashes, which is expected really.

Any ideas ?

Any good book recommendations on gdk2 ?

Thanks !

Robin

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html