Re: Widget alignment

2013-05-22 Thread Kip Warner
On Wed, 2013-05-22 at 12:32 +0100, jcup...@gmail.com wrote: > Hi Kip, Hey John, > GtkImage is a subclass of GtkMisc, and misc does alignment: > > https://developer.gnome.org/gtk3/stable/GtkMisc.html#gtk-misc-set-alignment > > Set the horizontal alignment to 0.5 to centre the image within its pa

Re: GTK+3 - A common event handler - possible?

2013-05-22 Thread Bernhard Schuster
On Wed, May 22, 2013 at 11:00 AM, Donn wrote: On 22/05/2013 09:29, Bernhard Schuster wrote: In general factoring code is good (at least that's my opinion) - what you are trying to do is the reverse and will give you one very big function, hardly readable. I take your very good point. I re

Re: Widget alignment

2013-05-22 Thread jcupitt
Hi Kip, On 22 May 2013 01:17, Kip Warner wrote: > How can I have this image widget added to the parent such that it is > always vertically aligned with the top of the page, but keeping the > other child box below it still vertically centred? I've tried wrestling > with Glade, but I can't figure o

Re: GTK+3 - A common event handler - possible?

2013-05-22 Thread Donn
On 22/05/2013 09:29, Bernhard Schuster wrote: In general factoring code is good (at least that's my opinion) - what you are trying to do is the reverse and will give you one very big function, hardly readable. I take your very good point. I really suggest you to go with seperate handlers. If y