Triggering a callback/event from another thread

2008-05-30 Thread Dan Cotter
Hi I have a main thread that runs all my gtk stuff, and a second thread that does processing. >From the second thread, how can I cause an event/signal to make a callback >function execute in the gtk thread? For example I have a callback function to update a progress bar. How can I cause it t

Correct way to package win32 gtk programs

2008-05-30 Thread Dan Cotter
Hi I have created some gtk exe's for win32 using gtk+ and mingw.What is the correct way to package the exe with the required DLL's? Should I just send out exe file with dll's from bin? Or are end users meant to install gtk and add its bin to their system path? ___

Re: Correct way to package win32 gtk programs

2008-05-30 Thread Tor Lillqvist
> I have created some gtk exe's for win32 using gtk+ and mingw.What is the > correct way to package the exe with the required DLL's? That is to some degree a question of taste and personal opinion... > Should I just send out exe file with dll's from bin? Or are end users meant > to install gtk

About GTK 2.13.x window redirection

2008-05-30 Thread Gabriele Greco
I've read with much interest the new features of the unstable branch, will the window redirection feature allow to use GTK+ to render to offscreen bitmaps? This will allow a quite easy GTK+ deployment on top of OpenGL, that will be a very useful feature... -- Bye, Gabry

Re: About GTK 2.13.x window redirection

2008-05-30 Thread Emmanuele Bassi
On Fri, 2008-05-30 at 11:21 +0200, Gabriele Greco wrote: > I've read with much interest the new features of the unstable branch, will > the window redirection feature allow to use GTK+ to render to offscreen > bitmaps? yes. > This will allow a quite easy GTK+ deployment on top of OpenGL, that wil

Re: Draw in a GdkPixbuf

2008-05-30 Thread Luis Menina
Thank you James, I found what I wanted in one of the links: http://live.gnome.org/GtkCairoIntegration I had previously seen this page, but didn't see a small code snippet in python that does what I want. I've translated it in C, and it work now: I can convert a pixbuf to something where I can d

Re: How do I catch right-click on a TreeView header?

2008-05-30 Thread John M Collins
I gave that a try, gtk_tree_view_column_get_widget() returns NULL unless you've set a widget. I've now got it displaying label widgets but alas the connection of button-press-event doesn't seem to do anything. I still get the sorting action on the left button of the mouse but nothing happens when