Re: Own drag icon with same color and font settings as the default drag icon in a Gtk.TreeView



Op 15-09-18 om 00:24 schreef c.buhtz--- via gtk-app-devel-list:
I want the same (background-color, font-face, font-size, font-color)
but with a shorter string (only the second of three columns).

You use the Gtk.render_* range of functions. There is one for for every
type of content you will want to render onto a cairo surface.

If you want to render text put it in a Pango.Layout and use
Gtk.render_layout().

~infirit


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