Re: Units and resolution independence for gtk+
- From: "BJörn Lindqvist" <bjourne gmail com>
- To: "David Zeuthen" <david fubar dk>
- Cc: gtk-devel-list gnome org
- Subject: Re: Units and resolution independence for gtk+
- Date: Fri, 8 Aug 2008 12:22:15 +0200
This patch is awesome stuff.
2008/8/6 David Zeuthen <david fubar dk>:
> HOW IT WORKS
>
> A new macro GTK_UNIT_EM (and it's companion GTK_UNIT_ONE_TWELFTH_EM) is
> introduced. This allows application to do e.g.
>
> hbox = gtk_hbox_new (FALSE, GDK_UNIT_EM (1));
>
> instead of
>
> hbox = gtk_hbox_new (FALSE, 12);
Why use macros instead of functions for all this? Won't that just make
binding authors lives harder?
--
mvh Björn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]