Re: Units and resolution independence for gtk+



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]