strange segfault in threading

2007-03-14 Thread Luka Napotnik
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();

Re: strange segfault in threading

2007-03-14 Thread Michael Ekstrand
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 this

Re: strange segfault in threading

2007-03-14 Thread Luka Napotnik
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())

Re: strange segfault in threading

2007-03-14 Thread jcupitt
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 ); }

Simple questions on gtk+ application development

2007-03-14 Thread Magiclouds Magicloud
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

How do I get the GTK+ exec. file to Install?

2007-03-14 Thread Kayode Arowolo
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

Re: Out of Date Webpages

2007-03-14 Thread Tshepang Lekhonkhobe
On 3/14/07, Tim Janik [EMAIL PROTECTED] wrote: we appreciate contributions, e.g. patches against the SVN module that hosts the web site: http://svn.gnome.org/svn/gtk-web/ such a patch should change the pages needing updates and update the gtk-web/ChangeLog. also patches should be

Re: Out of Date Webpages

2007-03-14 Thread Emmanuele Bassi
hi; On Wed, 2007-03-14 at 13:59 +0200, Tshepang Lekhonkhobe wrote: On 3/14/07, Tim Janik [EMAIL PROTECTED] wrote: we appreciate contributions, e.g. patches against the SVN module that hosts the web site: http://svn.gnome.org/svn/gtk-web/ such a patch should change the pages

Re: Out of Date Webpages

2007-03-14 Thread Tim Janik
On Wed, 14 Mar 2007, Tshepang Lekhonkhobe wrote: On 3/14/07, Tim Janik [EMAIL PROTECTED] wrote: we appreciate contributions, e.g. patches against the SVN module that hosts the web site: http://svn.gnome.org/svn/gtk-web/ such a patch should change the pages needing updates and update

Gnome Development Site

2007-03-14 Thread Henk Freimuth
dear sir or madam, i'm trying to get into gtk-programming and while i was trying to get information from the gnome development sites i discovered, that several pages can't be accessed from http://developer.gnome.org/doc/API/api-toc.html one link for example heads to

GTK+ 2.10.11

2007-03-14 Thread Matthias Clasen
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

Supporting Gtk+ Maintenance

2007-03-14 Thread Tim Janik
Hello Foundation Board. The Gtk+ project is in dire lack of new maintainers, mostly to review patches, so that bugs can be fixed and new features can be introduced. We need suggestions for candidates, probably for particular sub-sections of Gtk+. Ideally, these candidates would be employed to

Re: Gnome Development Site

2007-03-14 Thread Stefan Kost
Hi, please file a bug into bugzilla - there is a website module: http://bugzilla.gnome.org/enter_bug.cgi?product=website Stefan Henk Freimuth wrote: dear sir or madam, i'm trying to get into gtk-programming and while i was trying to get information from the gnome development sites i

Re: Supporting Gtk+ Maintenance

2007-03-14 Thread Jeff Waugh
quote who=Tim Janik So for the foundation board, there are two things that can be done to improve the current situation: 1) Please present the issue at hand (this email and the email linked to above) to the advisory board members, to make sure the companies involved are aware of the

Re: Out of Date Webpages

2007-03-14 Thread Tshepang Lekhonkhobe
On 3/14/07, Tshepang Lekhonkhobe [EMAIL PROTECTED] wrote: On 3/14/07, Tim Janik [EMAIL PROTECTED] wrote: On Wed, 14 Mar 2007, Tshepang Lekhonkhobe wrote: Should we send patches to this list I suppose? for the moment, yes. and please let us know if you already have commit access or not.

Re: Gtk Focus chain

2007-03-14 Thread Yeti
On Wed, Mar 14, 2007 at 10:53:08AM +0530, Varun Singla wrote: --- ||__1_ | | || textentry | | | 2|_3__ |4 | Diagram - 2 ||___5_|___| ...

Re: [disregard] GtkTreeView mouse hovering

2007-03-14 Thread Stefano Teso
Hi, thanks a lot for your suggestion, it pointed me in the right direction: I managed to use gtk_tree_view_get_path_at_pos within the motion-notify-event callback to get the currently `prelighted' row from the GtkTreeView. Thanks again, Stefano Hi, you may connect to the signals

GTK+ 2.10.11

2007-03-14 Thread Matthias Clasen
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

glib, gkeyfile question

2007-03-14 Thread Bobby Jack
In gkeyfile.c, g_key_file_to_data() unconditionally appends a newline between groups (the comment is simply separate groups by at least an empty line). The resulting string is, therefore, different from the original contents of the file, by 1 newline character per group. If one writes back the

How do I get the GTK+ exec. file to Install?

2007-03-14 Thread Kayode Arowolo
Dear gtk-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 School of Computer Science University of the Witwatersrand Johannesburg.