>From: Peter Lund <[EMAIL PROTECTED]>
>To: Clarity ThroughConfusion <[EMAIL PROTECTED]>
>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

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to