Re: GtkAllocation accessor
- From: Tadej Borovšak <tadeboro gmail com>
- To: Patrick Welche <prlw1 cam ac uk>
- Cc: gtk-list gnome org
- Subject: Re: GtkAllocation accessor
- Date: Wed, 2 Jun 2010 15:01:18 +0200
Hi.
> OK - you did see my constructor example, no? It would be cleaner the other
> way, wouldn't it?
I'm not a GTK+ developer and cannot speak for them, but having
consistent API is far more important to me than having some parts of
the code being brief.
Also, if you think about what this function does exactly, you'll
notice that there is no way you can achieve this using your
suggestion. The function's purpose is: "Fill my GtkAllocation struct
with values from widget's allocation". This gives you a copy of values
(as I speculated in my first reply and Emmanuele confirmed it not long
ago).
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]