Re: GTK deadlock in gtk_main
2010/8/3 Tomas Soltys tomas.sol...@range-software.com All right, so at the end it was my bug :) Thank you all for your explanations. Note also that part of the magic of gdk_threads_enter/leave that you can use on unix to use gtk functions in subthreads does not work on win32 (and also on OSX). I had really some bad headaches trying to use it in a cross platform way then I gave up and redesigned the application to use a lot of small idle functions executed when needed (returning false they are executed only once, and you can queue multiple idle functions also from different threads in a safe way since the idle function queue is protected by a lock) from the subthreads to update the GUI so that every GTK function is called on the main thread. This works quite well and does not require locking at all. -- Bye, Gabry ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Plot an XML file into a tree with GTK+
Hi, I am quite new for GTK+. What I try to do now is to plot all details in an XML file into a tree-structured view. For a big tree, there may be a + button to expand the tree. Is there any good example code for it? Regards, Monchai ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Question concerning forced expose-events
Hi, I'm not sure, if I'm doing this right (and I'm new to GTK+), but here is what is giving me trouble. I have a drawing area where I show images acquired with a USB-connected camera. The camera driver provides a hookup for a callback function, that gets called each time a new image is acquired and transferred to the computer. New images arrive anytime up to 30 fps. Now in this callback function I make a local copy of this image and call gdk_window_invalidate_rect() to force an expose event which actually draws the new image using that local copy. The problem I'm having is that the image is only actually updated (that is, my expose-event handler is only called) when I move the mouse over the image, cover it up with another window etc. - How can I force the expose-event event to fire from inside the program, as soon as new data is stored. Thanks in advance, solarstandard ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Question concerning forced expose-events
Hi. Are you using threads in your application? Problems like this usually arise when you don't initialize GLib/GDK thread subsystems. Tadej -- Tadej Borovšak tadeboro.blogspot.com tadeb...@gmail.com tadej.borov...@gmail.com ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Plot an XML file into a tree with GTK+
On 08/04/2010 07:11 PM, Monchai Lertsutthiwong wrote: Hi, I am quite new for GTK+. What I try to do now is to plot all details in an XML file into a tree-structured view. For a big tree, there may be a + button to expand the tree. Is there any good example code for it? not 100% relevant (it plots only certain attributes of the XML into the tree) but http://bluefish.svn.sourceforge.net/viewvc/bluefish/trunk/bluefish/src/plugin_snippets/snippets_load.c?revision=5862view=markup loads XML data into a tree regards, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list