Re: Dynamicly styling a widget

Hm, yeah. I don't think a treeview is what I want and I'm not entirely sure an Event Box is the way to go -- I only chose it because it can have its own background color and can hopefully respond to a double click.

If I want to generate a layout that looks like the flowchart I linked to in the first post, can someone suggest how I should model it? Whatever widget I use for the tile needs to be aware of what year column it's in and what quarter sub-column, and change its state appropriately when dragged to a new place.

On Aug 26, 2016 04:43, "Hrvoje Niksic" <hrvoje niksic avl com> wrote:
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.

gtk-list mailing list
gtk-list gnome org

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