Re: Themes and colours



On Wed, 2006-10-18 at 07:00 +1000, Daniel Kasak wrote:

- the text color will come from the TreeView's style's "text"
color; the state is determined by mapping the cell renderer's state

How do I get to the state? I've found plenty of documentation that
*uses* this state, but none about getting it. Sorry. I'm having a slow
couple of days ...

I'm not sure what state you're referring to here.  I can think of a few
things, all of which are accessible:

* Is the Gtk2::TreeView insensitive?  Look at $view->state.

* Does the view itself have focus?  $view->has_focus.

* Is a certain row in the view selected?
$view->get_selection->iter_is_selected ($iter) or
$view->get_selection->path_is_selected ($path).

* Which cell has keyboard focus?  $view->get_cursor.

-- 
Bye,
-Torsten




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