ElAdnan / gtkdialog

Automatically exported from code.google.com/p/gtkdialog
GNU General Public License v2.0
0 stars 0 forks source link

Control the alignment of a label plus image inside a button #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Requested by frafa via email:

This example demonstrates the problem:

#!/bin/sh

GTKDIALOG=gtkdialog

export MAIN_DIALOG='
<window title="Button Align" resizable="false">
    <vbox>
        <button width-request="300" height-request="50" xalign="0" yalign="0">
            <height>32</height>
            <input file icon="gtk-new"></input>
            <label>button 1</label>
        </button>
        <button width-request="300" height-request="50" xalign="0" yalign="0">
            <height>32</height>
            <input file icon="gtk-open"></input>
            <label>button 22222</label>
        </button>
        <button width-request="300" height-request="50" xalign="0" yalign="0">
            <height>32</height>
            <input file icon="gtk-save"></input>
            <label>button 333333</label>
        </button>
        <button width-request="300" height-request="50" xalign="0" yalign="0">
            <height>32</height>
            <input file icon="gtk-properties"></input>
            <label>button 444444444444</label>
        </button>
    </vbox>
</window>
'

$GTKDIALOG --center --program=MAIN_DIALOG

Because the label plus image are inside a h/vbox inside the button, there is 
currently no control over the h/vbox.

This isn't a particularly difficult thing to do, it just needs some thought.

Original issue reported on code.google.com by thunor...@hotmail.com on 22 Aug 2011 at 12:00

GoogleCodeExporter commented 8 years ago
Done r358.

Original comment by thunor...@hotmail.com on 20 Aug 2012 at 1:30