Re: Top down layout

2010-06-09 Thread jcupitt
On 9 June 2010 12:40, Matthew Allen wrote: > the problem I have now is that because I'm catching the "configure-event" > on the GtkWindow (to adjust my internal position/size variables) the > scrollview doesn't update to the client area of the window as I resize it. That's an easy one (phew): all

Re: Top down layout

2010-06-09 Thread Matthew Allen
> > When I tried putting putting a scrollable area into a window... > > I didn't get very convincing results. The code below attempts to put a > > very large button into a 300x300 size window. > > I made you a tiny example program. This puts a 400x400 button into a > 300x300 window. If the window

Re: Top down layout

2010-06-09 Thread jcupitt
On 9 June 2010 06:16, Matthew Allen wrote: >    GtkWidget *vp = gtk_viewport_new(GTK_ADJUSTMENT(h), GTK_ADJUSTMENT(v)); >    if (vp) >    { On a tiny style point, by design gtk cannot get out of memory errors. You can set a handler to run on out-of-mem, and allocations you perform yourself with g

Re: Top down layout

2010-06-09 Thread jcupitt
Hi Matthew, On 9 June 2010 06:16, Matthew Allen wrote: > When I tried putting putting a scrollable area into a window... > I didn't get very convincing results. The code below attempts to put a very > large button into a 300x300 size window. I made you a tiny example program. This puts a 400x400

Re: Top down layout

2010-06-08 Thread Matthew Allen
-- Original Message -- To: Matthew Allen (l...@sydneyband.com.au) From: Tristan Van Berkom (t...@gnome.org) Subject: Re: Top down layout Date: 9/6/2010 1:44:30p > On Tue, Jun 8, 2010 at 11:09 PM, Matthew Allen > > wrote: -- Original Message -- > &

Re: Top down layout

2010-06-08 Thread Tristan Van Berkom
On Tue, Jun 8, 2010 at 11:09 PM, Matthew Allen wrote: > -- Original Message -- > To: Matthew Allen (l...@sydneyband.com.au) > From: Tristan Van Berkom (t...@gnome.org) > Subject: Re: Top down layout > Date: 9/6/2010 12:55:44p > >> On Tue, Jun 8, 2010 at

Re: Top down layout

2010-06-08 Thread Matthew Allen
-- Original Message -- To: Matthew Allen (l...@sydneyband.com.au) From: Tristan Van Berkom (t...@gnome.org) Subject: Re: Top down layout Date: 9/6/2010 12:55:44p > On Tue, Jun 8, 2010 at 10:36 PM, Matthew Allen > >> wrote: This sort of behaviour might not be possi

Re: Top down layout

2010-06-08 Thread Tristan Van Berkom
On Tue, Jun 8, 2010 at 10:36 PM, Matthew Allen wrote: >> This sort of behaviour might not be possible with GTK. But at least I >> thought I'd ask. > > Actually whats the first signal generated when the user attempts to resize > the GtkWindow? > > I should hook that and stop it get limited to the

Re: Top down layout

2010-06-08 Thread Matthew Allen
> This sort of behaviour might not be possible with GTK. But at least I > thought I'd ask. Actually whats the first signal generated when the user attempts to resize the GtkWindow? I should hook that and stop it get limited to the requested size... then my window is free to resize arbitrarily,

Top down layout

2010-06-08 Thread Matthew Allen
I'm trying to port an application to GTK that uses top down layout... i.e. given a window of size 1000x700 it knows how to fill that space with widgets. However GTK seems adamant to do layout in a bottom up fashion... i.e. given buttons and lists and splitters it'll work out how big