Re: Customising expander icons in treeview



Den 2016-07-13 kl. 20:11, skrev Kamalpreet Grewal:
Hello all

As we all know that in a treeview, rows can be added in hierarchy. To
expand, there are small triangles (arrows) clicking any of which the
row expands/collapses.

If I wish to customise these arrows for my application and use some
different icons as expander arrows, how can it be done?

Thanks in advance.

I don't think it's possible. I looked at the gtk+ source code. As far as I can see, those triangles are hard-coded. They are drawn with a few cairo functions (cairo_move_to(), cairo_line_to(), cairo_fill(), etc.)

Kjell



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