From fe8f6b66ef951f956e12a03c26023defaa83c4a1 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 3 Aug 2004 07:47:13 +0000 Subject: (create_dialog) only add space between icon and text if there's actually an icon --- perl-install/ugtk2.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'perl-install') 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, ), ); -- cgit v1.2.1