Re: GTK & Pango string measurement

>> In the situation I'm talking about, there is no GtkWidget object so
>> your technique won't work.  This is the code I'm going off of
>> actually.  Thus my question is how can I get a pango context from  a
>> GtkCellRendererText?
> AFAIK, the pango context used by the GtkCellRenderer is the same used
> by the treeview, so try to make something like:

Hmmm.  But then I'm allowed to add many GtkCellRendererText views to
GtkTreeView and each of those can have different font settings, so
what would happen then?  I might not be getting the correct
measurements from the PangoContext in GtkTreeView.


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