Re: Pango context in size request

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

 



Il giorno Wed, 24 Mar 2010 19:03:06 +0000
Robert Pearce <rob@xxxxxxxxxxxxxxxxxxxx> ha scritto:

> Hi group,
> 
> This is probably a dumb-ass question that I ought to know the answer
> to, but...
> 
> I'm building a custom widget which includes some text that needs to be
> fitted round. To do it right I need to obtain the size of these by
> calling Pango functions with a context obtained for the widget. Is it
> guaranteed OK to do this in the .._size_request function? I kind of
> figure it must be because lots of widgets (labels, for example) must
> surely do so, but I can't find any definite confirmation in the docs.


The question is not dumb, but I fail to understand why people are so
scared of source code:

http://git.gnome.org/browse/gtk+/tree/gtk/gtklabel.c#n3133

Ciao.
-- 
Nicola
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux