Re: Units and resolution independence for gtk+

2008-08-08 Thread David Zeuthen
(resending, this time with the right address for the list) On Fri, 2008-08-08 at 13:47 -0400, Behdad Esfahbod wrote: > I suggest we do a function. Later on the function can be defined as a > nop macro if needed (and a function version kept for ABI compat). > > So, gtk_size_em(1.0). Also define:

Re: Units and resolution independence for gtk+

2008-08-08 Thread Milosz Derezynski
With C99 those functions could be inline (not fully aware of the C-version status in gtk+), which would lessen the impact of it being a function but a macro will undoubtedly always be faster. 2008/8/8 BJörn Lindqvist <[EMAIL PROTECTED]> > 2008/8/8 David Zeuthen <[EMAIL PROTECTED]>: > > The thinki

Re: Units and resolution independence for gtk+

2008-08-08 Thread BJörn Lindqvist
2008/8/8 David Zeuthen <[EMAIL PROTECTED]>: > The thinking is that if the feature becomes default then the macro will > be resolved to a GtkSize with high bits set at compile time. For 2.x, > the thinking is that it will resolve to a function call and the > conversion happens at run time, e.g. In

Re: Late 2.14 feature request: Installing gtkhsv.h

2008-08-08 Thread Federico Mena Quintero
On Fri, 2008-08-08 at 12:05 +0200, Michael Natterer wrote: > The GtkHSV widget was originally ported from the GIMP "triangle" > color selector. Huh, really? I have fond memories of fun with barycentric coordinates for the HSV wheel during Linux World in North Carolina, way back when :) (May

Re: Units and resolution independence for gtk+

2008-08-08 Thread David Zeuthen
On Fri, 2008-08-08 at 12:22 +0200, BJörn Lindqvist wrote: > > 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)

Re: Late 2.14 feature request: Installing gtkhsv.h

2008-08-08 Thread Sven Herzberg
Hi, Am Freitag, den 08.08.2008, 12:05 +0200 schrieb Michael Natterer: > The GtkHSV widget was originally ported from the GIMP "triangle" > color selector. > > Now I've finally managed to port the GIMP color selector > to the GTK widget, since it has become quite a lot better > than the GIMP thing

Re: Units and resolution independence for gtk+

2008-08-08 Thread BJörn Lindqvist
This patch is awesome stuff. 2008/8/6 David Zeuthen <[EMAIL PROTECTED]>: > 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_hbo

Late 2.14 feature request: Installing gtkhsv.h

2008-08-08 Thread Michael Natterer
Hi all, The GtkHSV widget was originally ported from the GIMP "triangle" color selector. Now I've finally managed to port the GIMP color selector to the GTK widget, since it has become quite a lot better than the GIMP thing in the meantime (it has keybindings and antialiasing). However, the hea