For a reasonable size try gtk_box_pack_start() with expand = false and fill = false. Is seems to me that the problem your were facing is because you had expand = true and fill = true for the packed child button.
If you use gtk_widget_set_size_request, please make sure the UI is still sane after changing the default application font size in gnome-preferences from 11 to 22 -- I guess it's going to be a pain. - Yu On Tue, 2009-04-07 at 18:36 -0700, Ardhan Madras wrote: > > When GTK3 restores the code generator I'll look at updating. C source is a > > lot easier to manage than thousands of lines of XML > No, Glade will not back to generate user code because it is not glade's > purpose, there are libglade or GtkBuilder to working with glade's xml file. > > > Buttons that jump from 30w x30h pixels (with icon not text) to 30w x 120h > > because you resized the screen do a great job of 'make your interface look > > crap'. > I didn't said about screen size., that's okay for non labeled button. I was > mean for some widget that has GtkLabel. If you set it's fixed width and > height then in another theme or window manager (which has different font > size, dpi, etc) could easily make it look crap. > > > I have tried setting vbox/hbox to a particular size to get reasonable > > button size but it just plain has no effect. > Why you not try gtk+ function and not use Glade to resize your button? for > example gtk_widget_set_size_request() ? > > > --- mickh...@bigpond.net.au wrote: > > From: mick <mickh...@bigpond.net.au> > To: aj...@knac.com > Subject: Re: locking widgit sizes > Date: Tue, 7 Apr 2009 16:40:42 +1000 > > On Mon, 6 Apr 2009 16:37:13 Ardhan Madras wrote: > > Glade2 was deprecated!, therefore some GTK+ functions in glade2 generated > > code also deprecated. > When GTK3 restores the code generator I'll look at updating. C source is a > lot > easier to manage than thousands of lines of XML > > > You better not to set child widget size properties (weight, height, etc.) > >> directly, because user's theme fonts can make your interface look crap. > Buttons that jump from 30w x30h pixels (with icon not text) to 30w x 120h > because you resized the screen do a great job of 'make your interface look > crap'. > > > You can use GtkBox (vbox, hbox) to set your widget position and size. > I have tried setting vbox/hbox to a particular size to get reasonable button > size but it just plain has no effect. > > > You should consider Glade3, but remember that glade is not intended to > > generate code anymore, but to create interface. Instead by using libglade, > > GTK+ has a method to grab glade xml file converted by gtk-builder-convert > > using GtkBuilder. > > > > --- ajhwb > > > > > >> --- mickh...@bigpond.net.au wrote: > >> I'm using glade 2.12 to build an interface for a GTK based chat client and > >> having trouble locking the size of buttons, text entry, etc. widgits. > >> I've tried setting the height of the container, the height of the text > >> entry & the height & width of the buttons but when I test the generated > >> code the size of the widgets changes with the size of the 'parent window'. > >> I read the tutorials and the references until my mind glazes over but I > >> can't recognise the solution if its there. > >> can anyone point me to a reference (manual section, web page, forum post) > >> that could get me on track > >> thanks in advance, > >> mick > > > > > > _____________________________________________________________ > Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list