Buttons in groups

2007-06-07 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: Buttons in groups

2007-06-07 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/

Re: gdk_widget_modify_bg deadlock

2007-06-07 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-07 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

Re: Buttons in groups

2007-06-07 Thread Yeti
Please don't top-post. On Thu, Jun 07, 2007 at 07:41:42AM +0100, Christopher Garrett wrote: 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. GtkRadioButton

RE: Buttons in groups

2007-06-07 Thread Christopher Garrett
GtkRadioButton is a GtkContainer (as any button) and can contain anything, just don't use the convenience cosntructors and pack the icon or whatever yourself. And see also gtk_toggle_button_set_mode(). You should also consider GtkToolbar if you want to create a toolbar... Thanks - I'll give

Collapse and expand in GtkTreeView

2007-06-07 Thread Christoph Schmeding
Hello! When I expand an item in a GtkTreeView that I just collapsed before, only the first child level of the expanded item is shown. Example: Before collapsing: - Item 1 - Item 11 - Item 111 - Item 112 - Item 12 After collapsing Item 1 and re-expanding it: - Item 1 - Item

Re: [SPAM] cross compiling and ld auto-import errors

2007-06-07 Thread Gabriele Greco
Bethany Seeger wrote: From what I've read, I need to force (external) constants to be variables, but I'm not sure how I can do that when the errors are coming from the glib library, underneath Gtk/Gdk. (or declare them explicitly with __declspec(dllimport)). I'm relatively new to

Re: cross compiling and ld auto-import errors

2007-06-07 Thread Tor Lillqvist
Gabriele Greco writes: CROSSLIBS = -L$(CROSSDIR)/lib/gtk-2.0 -mwindows -mno-cygwin \ The -mno-cygwin switch does nothing when compiling with a pure Win32 (mingw) compiler, as no Cygwin is involved at all. -lgtk-win32-2.0.dll -lgdk-win32-2.0.dll I would leave out the .dll here to avoid

Re: gdk_widget_modify_bg deadlock

2007-06-07 Thread Bethany Seeger
I wrote that, not James Scott. Often times you need to hear it first, before you have a chance of believing it. I hadn't heard that yet. Time to add the use of gtk_idle_add or some such thing to get rid of the multiple thread problem. Bethany On Thu, 2007-06-07 at 09:32 +0300, Tor

Re: [SPAM] Re: cross compiling and ld auto-import errors

2007-06-07 Thread Gabriele Greco
Tor Lillqvist wrote: I would leave out the .dll here to avoid risking confusion. (Somebody might think you are referring to the dll files themselves here.) The Win32-targeted linker looks for also libfoo.dll.a, not just libfoo.a when it encounters -lfoo. At least natively, presumably also when

Setting G_SLICE=always_malloc at runtime

2007-06-07 Thread Raja Mukherji
Hi All, I'm writing a binding for Gtk to my programming language Wrapl, and want to make sure that all memory is allocated by the Hans-Boehm garbage collector. The glib/gobject shared libraries are loaded dynamically and I call g_mem_set_vtable to change to GC_malloc, GC_realloc, GC_free, etc.

Re: Setting G_SLICE=always_malloc at runtime

2007-06-07 Thread Yeti
On Thu, Jun 07, 2007 at 08:04:08PM +0100, Raja Mukherji wrote: I'm writing a binding for Gtk to my programming language Wrapl, and want to make sure that all memory is allocated by the Hans-Boehm garbage collector. The glib/gobject shared libraries are loaded dynamically and I call

Re: Win32 custom (pixbuf) cursors reverting to standard pointer, on left/right click

2007-06-07 Thread Jason Compton
We have gone ahead and filed this behavior as a GTK/Win32 bug, complete with example code and example workaround. http://bugzilla.gnome.org/show_bug.cgi?id=445284 ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

multi thread app and often variable accessing

2007-06-07 Thread Tomasz Jankowski
Hi! I'm working on small multi thread application based on Gobject. In one of my objects I have integer variable, which determine current object's status. The problem is, that I need to read it's status really often, so it will be to expensive to lock and unlock mutex all the time. Can I use

Re: Setting G_SLICE=always_malloc at runtime

2007-06-07 Thread Raja Mukherji
Do I set the environment variable? Because code like setenv(G_SLICE, always_malloc, 1); g_thread_init(0); doesn;t seem to work. I noticed the g_slice_set_config functions in gslice.h and tried g_slice_set_config(G_SLICE_CONFIG_ALWAYS_MALLOC, 1); but this gives me the error (process:6533):