Re: Pango-1.17.1 released [unstable]

2007-06-06 Thread Mathieu Pellerin
A million thanks for the constant work on Pango, and specially the time spent on fixing bug 385168. Cheers, Matt On 5/31/07, Behdad Esfahbod [EMAIL PROTECTED] wrote: Pango-1.17.1 is now available for download at: http://download.gnome.org/sources/pango/1.17/ or

GtkImage/GdkPixbuf memory management

2007-06-06 Thread Michael Tweedale
Could someone clarify something that doesn't seem to be explicit in the API documentation? Consider the following code: static GtkWidget *image; /* initialized to a fixed GtkImage */ void update(const char *s) { GdkPixbuf *pixbuf; pixbuf=gdk_pixbuf_new_from_file(s, NULL); if(pixbuf) {

g_idle_add and thread safety

2007-06-06 Thread Gabriele Greco
I know GTK APIs are not thread safe, I've an app with a thread doing a massive job that wants to update the gui status every few cycles, to do so I remembered an old post speaking about g_idle_add. The question I have and which I didn't find answers both googling, both looking at the sources

Re: g_idle_add and thread safety

2007-06-06 Thread Fernando ApesteguĂ­a
On 6/4/07, Gabriele Greco [EMAIL PROTECTED] wrote: I know GTK APIs are not thread safe, I've an app with a thread doing a massive job that wants to update the gui status every few cycles, to do so I remembered an old post speaking about g_idle_add. The question I have and which I didn't find

Re: g_idle_add and thread safety

2007-06-06 Thread jcupitt
On 6/4/07, Gabriele Greco [EMAIL PROTECTED] wrote: The question I have and which I didn't find answers both googling, both looking at the sources is if g_idle_add can be called without any extra mutex/lock from another thread. Yes, this works fine. You do need to init the threads system, but

Tabs and popups

2007-06-06 Thread Christopher Garrett
Hi, I was wondering what the best way would be to implement a pane, containing various widgets, as a popup (but without window decorations) which would be shown when a relevent tab is pressed. It would disappear when the mouse is moved off it, and could be torn off like a menu to form a

Re: GtkImage/GdkPixbuf memory management

2007-06-06 Thread Tristan Van Berkom
On Sun, 2007-06-03 at 16:56 +0100, Michael Tweedale wrote: Could someone clarify something that doesn't seem to be explicit in the API documentation? Consider the following code: static GtkWidget *image; /* initialized to a fixed GtkImage */ void update(const char *s) { GdkPixbuf

GTK+ 2.11.2 released

2007-06-06 Thread Matthias Clasen
GTK+ 2.11.2 is now available for download at: ftp://ftp.gtk.org/pub/gtk/2.11/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.11/ gtk+-2.11.2.tar.bz2 md5sum: cf7b87534cd0f5d715748fda8fb64e2e gtk+-2.11.2.tar.gzmd5sum: efed1c9bbc12c8019026529f29714ef4 This is a quick followup release to fix

gdk_widget_modify_bg deadlock

2007-06-06 Thread Bethany Seeger
Hello, I've got this code that seems to end up in dead lock, if I do something to the gui, while it's calling gtk_widget_modify_bg. - { // events is an array of widget names static GtkWidget *labels[NCONDS] = { NULL }; static unsigned int last=0x; int i; GdkColor

Re: gdk_widget_modify_bg deadlock

2007-06-06 Thread JAMES SCOTT
Bethany, Consider moving the gdk_threads_* outside the for-loop, look for A B changes. Also, I use these API's as ONE BIG wrapper around all gtk/gdk work from background threads. I have found doing anything from a secondary thread with GDK/GTK to be problematic. The best guidance might be