Re: GtkWidget:halign and GtkSizeGroup
- From: Emmanuele Bassi <ebassi gmail com>
- To: Tristan van Berkom <tristan upstairslabs com>
- Cc: gtk-devel-list <gtk-devel-list gnome org>, Murray Cumming <murrayc murrayc com>
- Subject: Re: GtkWidget:halign and GtkSizeGroup
- Date: Fri, 18 Jul 2014 15:01:13 +0100
hi;
On 18 July 2014 14:24, Tristan van Berkom <tristan upstairslabs com> wrote:
I'm trying to replace a use of the deprecated GtkMisc:xalign property
with the newer GtkWidget:halign property with some labels that are in a
GtkSizeGroup. The (GTK_ALIGN_START) alignment doesn't seem to be having
any effect, though it does when work using the deprecated xalign
property.
What would work is to place each GtkLabel into its own "box", use the halign properties on those labels and
use the size groups on each label's "box".
or, since it's a custom layout manager:
I can't just use a GtkGrid because I am actually using a custom
container in my application.
you should update your container to honour the GtkWidget alignment
flags when allocating its children, like GtkBox, GtkGrid, and other
containers inside GTK+ do.
ciao,
Emmanuele.
--
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]