Re: Checking if cell is the currently selected in a treeview list
- From: "Clarity ThroughConfusion" <claritythroughconfusion hotmail co uk>
- To: firefly vax64 dk
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Checking if cell is the currently selected in a treeview list
- Date: Sun, 05 Nov 2006 14:34:13 +0000
From: Peter Lund <firefly vax64 dk>
To: Clarity ThroughConfusion <claritythroughconfusion hotmail co uk>
CC: gtk-app-devel-list gnome org
Subject: Re: Checking if cell is the currently selected in a treeview list
Date: Sun, 05 Nov 2006 05:33:49 +0100
On Sun, 2006-11-05 at 03:36 +0000, Dean Ezra wrote:
> Hi,
>
> I have written a custom cell renderer for a list and would like to only
draw
> text in the cell (inside the 'render' function) when it is the focused
cell
> in the list.
Ok, so you have a render() function in your GtkCellRenderer-derived
class?
Check if the flags parameter has the GTK_CELL_RENDERER_SELECTED and
GTK_CELL_RENDERER_FOCUSED bits set.
-Peter
Yes, I have a render() function in my derived class, and adding your
suggested flag check did the trick!
Thank you for your quick response.
Regards.
Dean
_________________________________________________________________
Download the new Windows Live Toolbar, including Desktop search!
http://toolbar.live.com/?mkt=en-gb
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]