Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Closed

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

Done r358.

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant