[maemo-developers] Problems with larger buttons in HButtonBox
From: Markku Vire markku.vire at movial.fiDate: Fri Jun 6 15:29:23 EEST 2008
- Previous message: Problems with larger buttons in HButtonBox
- Next message: Autobuilder for maemo extras repository
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, In Maemo environment the buttons inside GtkHButtonBox have special style attached to them. You can search the following kind of line from gtkrc: widget_class "*.GtkHButtonBox.GtkButton" style "osso-dialogbutton" All these buttons have this kind of border defined: border = { 20, 20, 0, 0 } This means that in vertical direction there is no "upper part" or "lower part" defined, just the center piece. For horizontal direction there is 20px of "left side" and "right side". The sapwood theme engine does "filling the middle" by tiling the images, so you'll end up having the button tiled in vertical direction and good-looking in horizontal direction. If you want to try, you can replace the zeroes by small integers, remove/regenerate gtkrc caches and reboot... After these steps the buttons should look better. Anyway, the same effect will show up if you install your app to some other device. -Markku- James Ferris wrote: > I'm quite new to this, and while I've managed to navigate installation, > basic application building and using Glade to produce interface xml, > I've run into a hitch. > > I have a horizontal button box that requests a size of 150x150 for it's > children, and the buttons themselves are set to expand (and to try it, > even set a request of 150x150 for each button) which shows up fine in > Glade, but when I run it in the emulator, each button area is the full > 150 by 150 pixels, but the button appearance is that of three and a bit > buttons stacked on top of each other like bricks. > They expand to fill the 150 width, but not the height. Instead, they > repeat to fill the height. > If I throw one button into the vbox, it will expand to fill the whole > space, but not when I put it into a hbuttonbox inside the vbox. > > have tried this from Glade's xml, and from direct coding, and it doesn't > seem to work for me either way.
- Previous message: Problems with larger buttons in HButtonBox
- Next message: Autobuilder for maemo extras repository
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]