summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-08-03 07:47:13 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-08-03 07:47:13 +0000
commitfe8f6b66ef951f956e12a03c26023defaa83c4a1 (patch)
tree6787e456da232afcc40c764ddae2acc4915652ac
parentfef75414f0a23f3e851d3c42b05a318d56d0dc3d (diff)
downloaddrakx-fe8f6b66ef951f956e12a03c26023defaa83c4a1.tar
drakx-fe8f6b66ef951f956e12a03c26023defaa83c4a1.tar.gz
drakx-fe8f6b66ef951f956e12a03c26023defaa83c4a1.tar.bz2
drakx-fe8f6b66ef951f956e12a03c26023defaa83c4a1.tar.xz
drakx-fe8f6b66ef951f956e12a03c26023defaa83c4a1.zip
(create_dialog) only add space between icon and text if there's
actually an icon
-rw-r--r--perl-install/ugtk2.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm
index 2f4ced8c4..e7a678e9d 100644
--- a/perl-install/ugtk2.pm
+++ b/perl-install/ugtk2.pm
@@ -398,8 +398,10 @@ sub create_dialog {
my $text = ref($label) ? $label : $o_options->{use_markup} ? gtkset_markup(Gtk2::WrappedLabel->new, $label) : Gtk2::WrappedLabel->new($label);
gtkpack($dialog->vbox,
gtkpack_(Gtk2::HBox->new,
- if_($o_options->{stock}, 0, Gtk2::Image->new_from_stock($o_options->{stock}, 'dialog')),
- 0, Gtk2::Label->new(" "),
+ if_($o_options->{stock},
+ 0, Gtk2::Image->new_from_stock($o_options->{stock}, 'dialog'),
+ 0, Gtk2::Label->new(" "),
+ ),
1, $o_options->{scroll} ? create_scrolled_window($text, [ 'never', 'automatic' ]) : $text,
),
);