Re: GtkLabel, GtkMisc, alignment and containers; an idea

2009-07-14 Thread Behdad Esfahbod
On 07/07/2009 10:29 AM, Davyd Madeley wrote: On Tue, 2009-07-07 at 13:25 +0100, Behdad Esfahbod wrote: Generally agreed. Makes the code so much simpler... How do we avoid breaking API/ABI though? Donno. I'm not the most qualified person to talk about GTK+ widgets anyway. behdad One

GtkLabel, GtkMisc, alignment and containers; an idea

2009-07-07 Thread Davyd Madeley
So, I was looking at why a GtkLabel with a RTL control code didn't seem to right-align the text in a GtkLabel. The answer being that the width of the PangoLayout is set to -1, rather than the width of the allocation. So I was wondering how you'd fix this. My immediate thought was to set the

Re: GtkLabel, GtkMisc, alignment and containers; an idea

2009-07-07 Thread Behdad Esfahbod
On 07/07/2009 09:53 AM, Davyd Madeley wrote: So, I was looking at why a GtkLabel with a RTL control code didn't seem to right-align the text in a GtkLabel. The answer being that the width of the PangoLayout is set to -1, rather than the width of the allocation. So I was wondering how you'd fix

Re: GtkLabel, GtkMisc, alignment and containers; an idea

2009-07-07 Thread Davyd Madeley
On Tue, 2009-07-07 at 13:25 +0100, Behdad Esfahbod wrote: Generally agreed. Makes the code so much simpler... How do we avoid breaking API/ABI though? One idea was to use a #define GTK_LABEL_NEW_SEMANTICS which renamed GtkLabel and gtk_label_* to GtkNewLabel and gtk_new_label_* until GTK+