Re: Checking if cell is the currently selected in a treeview list



On Sun, 2006-11-05 at 03:36 +0000, Dena 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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]