mtw wrote:
> Hi!
> I have installed GTK+ Version 2.10.10 with gdktarget=directfb. Every
> Application crashes with signal 11, I tried the gtk-demo and even the simple
> "Hello World"-Tutorial-Example. By commenting out some calls, I found out
> that the Hello-World crashes when reaching the stateme
Hello.
I have a program that has besides the main GUI thread another thread
that creates some labels and pack them into a vbox. Before I do GUI
stuff in the thread I call gdk_threads_enter() and when I'm done I have
while (gtk_events_pending())
gtk_main_iteration();
gdk_threads_leave();
Ther
On Wed, 2007-03-14 at 11:49 +0100, Luka Napotnik wrote:
> while (gtk_events_pending())
> gtk_main_iteration();
> gdk_threads_leave();
I don't think it's correct to try to run the main loop (which is what
the gtk_events_pending/gtk_main_iteration does) from a second thread. I
can't promise thi
I fixed this issue by making g_timeout() calls to a function that checks
a queue for requests to change the UI.
Greets,
Luka
On sre, 2007-03-14 at 08:40 -0500, Michael Ekstrand wrote:
> On Wed, 2007-03-14 at 11:49 +0100, Luka Napotnik wrote:
> > while (gtk_events_pending())
> > gtk_main_itera
You don't need to poll: in your non-GUI thread you can call
g_idle_add, and the callback will be executed by the main GUI thread
'soon'.
Eg.:
worker_fn() {
for(;;) {
void *stuff = g_malloc( );
calculate_stuff( stuff );
g_idle_add( update_with_stuff, stuff );
}
GTK+ 2.10.11 is now available for download at:
ftp://ftp.gtk.org/pub/gtk/v2.10/
http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.10/
gtk+-2.10.11.tar.bz2 md5sum: 3b32eab43bf5195d981867d25ba55d66
gtk+-2.20.11.tar.gzmd5sum: 770aa9106b79cad9563566217d942b2b
This is a quick followup release to
Dear all,
I just start to learn to use gtk+, and there are something that I
can not find solutions on references. As below:
1. What is the signal of GtkLabel on mouse hover, click and double
click? I user enter-notify-event and leave-notify-event for the hover
thing, and it does not work
My application has a number of radio buttons stored in a horizontal button box.
The radio buttons were created with gtk_radio_button_new_with_label and
gtk_radio_button_new_with_label_from_widget.
Each button and its label is left-justified (aligned?) within its allocation
rectangle.
I want th
Dear gtk-app-devel-list,
I have been trying to download the GTK+ exec files from www.gtk.org (ftp) so
that I can install on my system but all to no avail. Please help out with
suggestions on what to do.
Thanks.
Kayode Arowolo
Computer Science Dept.
University of the Witwatersrand
Johannesburg