aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2016-03-22 22:28:04 +0100
committerMaarten Vanraes <alien@mageia.org>2016-03-22 22:30:30 +0100
commit1e4b7f5ba38e132d24b17dd63876a6116c4467ad (patch)
tree293e42838c2814f52c2fa5a70c0ae34847b16dfa
parent40533ba50e9da73d7f94023348a3a1223efb416d (diff)
downloadmanatools-1e4b7f5ba38e132d24b17dd63876a6116c4467ad.tar
manatools-1e4b7f5ba38e132d24b17dd63876a6116c4467ad.tar.gz
manatools-1e4b7f5ba38e132d24b17dd63876a6116c4467ad.tar.bz2
manatools-1e4b7f5ba38e132d24b17dd63876a6116c4467ad.tar.xz
manatools-1e4b7f5ba38e132d24b17dd63876a6116c4467ad.zip
ActionList: stretch the buttons inside the vbox
-rw-r--r--lib/ManaTools/Shared/GUI/ActionList.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/ManaTools/Shared/GUI/ActionList.pm b/lib/ManaTools/Shared/GUI/ActionList.pm
index 14aea013..c762335b 100644
--- a/lib/ManaTools/Shared/GUI/ActionList.pm
+++ b/lib/ManaTools/Shared/GUI/ActionList.pm
@@ -141,10 +141,13 @@ sub refresh {
# clear and start new changes on replacepoint
$replacepoint->clear();
if (defined $actions) {
- my $vbox = $factory->createVBox($replacepoint->container());
+ my $hsquash = $factory->createHSquash($replacepoint->container());
+ my $vbox = $factory->createVBox($hsquash);
# rebuild for all actions a Button
for my $key (sort $actions->get_actions()) {
- $replacepoint->addWidget($key, $factory->createPushButton($vbox, $key), sub {
+ my $button = $factory->createPushButton($vbox, $key);
+ $button->setStretchable(0, 1);
+ $replacepoint->addWidget($key, $button, sub {
my $self = shift;
my $actions = shift;
my $key = shift;