RE: Buttons in groups

2007-06-06 Thread Christopher Garrett
Hi, Thanks for the quick reply. I should have said that its for groups of tools, and I'd like to have icons on the buttons - I'm not sure that GtkRadioButtons can use icons, but if they can they'd be perfect for me. I see that Fig. 3.9 in the HIG suggests visually how to implement a toolbox wit

Re: gdk_widget_modify_bg & deadlock

2007-06-06 Thread Tor Lillqvist
JAMES SCOTT writes: > The kicker is that this works fine in linux (no deadlock) -- it only > deadlocks on a cross compiled windows exe. Sure. You should believe people when they say that you can't use GDK from multiple threads on Windows. It's not just a random statement out of thin air. --tml

Re: Buttons in groups

2007-06-06 Thread Yeti
On Thu, Jun 07, 2007 at 07:25:13AM +0100, Christopher Garrett wrote: > Is there a way of placing a GtkToggleButton into a group so that when one > button > is selected the others in the group automatically get unselected? By using GtkRadioButtons? Yeti -- http://gwyddion.net/ __

Buttons in groups

2007-06-06 Thread Christopher Garrett
Hi, Is there a way of placing a GtkToggleButton into a group so that when one button is selected the others in the group automatically get unselected? Best regards, Chris. Chris Garrett UNIX Administrator MISD Operations Group, University of Cambridge 01223-(7)66687 __

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 fi

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 yello

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

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) > { > Gd

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 permane

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, b

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

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 is

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) {

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 > ftp://ftp.gtk.org/p