Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-08 Thread Owen Taylor
On Mon, 2005-03-07 at 20:45 -0800, Ben Johnson wrote: On Mon, Mar 07, 2005 at 10:56:30PM -0500, Owen Taylor wrote: - If I set expand on *any* widgets to FALSE, they end up too small. Then either add padding to them (or set a minimum size with gtk_widget_set_size_request()). If a widget is to

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-08 Thread Ben Johnson
On Tue, Mar 08, 2005 at 12:12:53PM -0500, Owen Taylor wrote: ... - If I set expand on *any* widgets to FALSE, they end up too small. Then either add padding to them (or set a minimum size with gtk_widget_set_size_request()). If a widget is to small when not set to expand, then it will be

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-08 Thread Ben Johnson
btw. during our conversation, I've come to believe that the interaction between the GtkAlignment object and the EXPAND and FILL flags isn't working as the documentation implies it should. EXPAND and FILL, if set on all widgets should cause the available space to be consumed. If the size of one

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-08 Thread Owen Taylor
On Tue, 2005-03-08 at 12:35 -0800, Ben Johnson wrote: btw. during our conversation, I've come to believe that the interaction between the GtkAlignment object and the EXPAND and FILL flags isn't working as the documentation implies it should. EXPAND and FILL, if set on all widgets should

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Ben Johnson
On Mon, Mar 07, 2005 at 09:40:45AM +0200, Karlsson, Erik wrote: Hi, Have you tried GtkWidget's gtk_widget_set_size_request function. It can be used to increase the default size of the widget. It is not perhaps good practice to use it because it defines minimum size of the widget that can't

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Owen Taylor
Ben Johnson wrote: Hi. I have a hard time getting widgets to take up as much of the screen as I want them to. Is there a trick to getting widgets to take up more space? I set the expand and fill properties on everything because I want all available space to be consumed. Inevitably I wind up

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Ben Johnson
On Mon, Mar 07, 2005 at 08:19:17AM -0500, Owen Taylor wrote: ... GtkAlignment is all about the amount of space that a widget takes up *within the space that it was allocated*. To determine to which child of a container excess space gets allocated, look at the 'expand' parameter of

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Owen Taylor
On Mon, 2005-03-07 at 13:30 -0800, Ben Johnson wrote: On Mon, Mar 07, 2005 at 08:19:17AM -0500, Owen Taylor wrote: ... GtkAlignment is all about the amount of space that a widget takes up *within the space that it was allocated*. To determine to which child of a container excess

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Owen Taylor
On Mon, 2005-03-07 at 18:32 -0800, Ben Johnson wrote: this is more or less what I'm doing... mydialog = gtk_dialog_new (); gtk_window_set_title(GTK_WINDOW (mydialog), Payment Amount); gtk_window_set_position (GTK_WINDOW (mydialog), GTK_WIN_POS_CENTER);

Re: GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-07 Thread Ben Johnson
On Mon, Mar 07, 2005 at 10:56:30PM -0500, Owen Taylor wrote: On Mon, 2005-03-07 at 18:32 -0800, Ben Johnson wrote: this is more or less what I'm doing... mydialog = gtk_dialog_new (); gtk_window_set_title(GTK_WINDOW (mydialog), Payment Amount); gtk_window_set_position

GtkAlignment makes things smaller, but surrouning don't get bigger

2005-03-06 Thread Ben Johnson
Hi. I have a hard time getting widgets to take up as much of the screen as I want them to. Is there a trick to getting widgets to take up more space? I set the expand and fill properties on everything because I want all available space to be consumed. Inevitably I wind up with some widgets