From 1a0d48880bbdeb6f581338474b8ccbe4eda360eb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 3 Aug 2004 07:41:46 +0000 Subject: (_create_dialog) sanitize dialogs/popups: - set a border around it - add more space between the icon and the text --- perl-install/ugtk2.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/ugtk2.pm') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 2af809091..39a534105 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -393,12 +393,13 @@ sub _create_dialog { sub create_dialog { my ($title, $label, $o_options) = @_; my $ret = 0; - my $dialog = _create_dialog($title, $o_options); + my $dialog = gtkset_border_width(_create_dialog($title, $o_options), 10); $dialog->set_border_width(10); 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(" "), 1, $o_options->{scroll} ? create_scrolled_window($text, [ 'never', 'automatic' ]) : $text, ), ); -- cgit v1.2.1