Re: Dynamicly styling a widget
- From: Hrvoje Niksic <hrvoje niksic avl com>
- To: <gtk-list gnome org>
- Subject: Re: Dynamicly styling a widget
- Date: Fri, 26 Aug 2016 13:34:14 +0200
On 08/25/2016 08:32 PM, Jim Heald wrote:
Hi there,
I'm having a rough time figuring out how I can work with colors in Gtk+.
I'll provide a rundown of what I'm trying to accomplish:
I'm going to have a TreeView which will have Eventboxes as children.
A tree view is not a container with children. (Technically it is a
container, but only because it contains the header and bin windows.)
To draw stuff in a tree view, use appropriately styled "renderers". To
react to events on the tree view, catch the event on the tree view
widget itself, and call gtk_tree_view_get_path_at_pos to determine where
the event happened.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]