Re: Pango context in size request
- From: Nicola Fontana <ntd entidi it>
- To: Robert Pearce <rob bdt-home demon co uk>
- Cc: gtk-list gnome org
- Subject: Re: Pango context in size request
- Date: Wed, 24 Mar 2010 20:39:30 +0100
Il giorno Wed, 24 Mar 2010 19:03:06 +0000
Robert Pearce <rob bdt-home demon co uk> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]