Re: GtkCellRendererToggle toggles when clicking on other cell renderers in same column

2009-08-24 Thread Grumpy Buffalo
I take that back; my solution caused another problem: now the GtkCellRendererToggle does not fire the toggle event unless the row is selected prior to clicking on the checkbox. I don't even understand why this might be happening. Does anybody have a solution for this new problem? This is getting a

Re: GtkCellRendererToggle toggles when clicking on other cell renderers in same column

2009-08-24 Thread Praveen Innamuri
I had a similar problem (clicking on the text in GtkCellRendererText causes the 'toggled' event to fire), and I circumvent the problem by setting GtkCellRendererText to be activable cell using API - g_object_set (pixbufRenderer, mode, GTK_CELL_RENDERER_MODE_ACTIVATABLE, 0); Now, that column has 2

Re: GtkCellRendererToggle toggles when clicking on other cell renderers in same column

2009-08-15 Thread Grumpy Buffalo
I came up with a solution. I changed the GtkCellRendererText to a GtkCellRendererCombo. I didn't add any items to the combo or even set the model of the combo; the only property I set was the editable property to true. This created exactly the functionality I was looking for. The user can't even

Re: GtkCellRendererToggle toggles when clicking on other cell renderers in same column

2009-08-12 Thread Kristian Rietveld
Hello, On Wed, Aug 12, 2009 at 2:32 AM, Grumpy Buffalogrumpybuffalo+...@gmail.com wrote: Hi, I am working on a C++ GTK project. I have a GtkTreeView containing several columns. In the first column, I have packed in 3 cell renderers - the first, a GtkCellRendererToggle; the second, a

Re: GtkCellRendererToggle toggles when clicking on other cell renderers in same column

2009-08-12 Thread Grumpy Buffalo
Hi, I understand why this behavior occurs; I do realize that it would be what is wanted in most circumstances. In this particular case, selecting the row causes one action to occur and toggling the checkbox causes another action to occur. Because all of the cell renderers are considered one

GtkCellRendererToggle toggles when clicking on other cell renderers in same column

2009-08-11 Thread Grumpy Buffalo
Hi, I am working on a C++ GTK project. I have a GtkTreeView containing several columns. In the first column, I have packed in 3 cell renderers - the first, a GtkCellRendererToggle; the second, a GtkCellRendererPixbuf; the third, a GtkCellRendererText. Everything works fine, except that clicking on