summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-08-03 07:41:46 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-08-03 07:41:46 +0000
commit1a0d48880bbdeb6f581338474b8ccbe4eda360eb (patch)
treee308ac5674431b744a380f3122e8a2f5f7731186 /perl-install/ugtk2.pm
parentfde55790c3cec482adaf066cd08e16c0bf20df83 (diff)
downloaddrakx-backup-do-not-use-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.tar
drakx-backup-do-not-use-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.tar.gz
drakx-backup-do-not-use-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.tar.bz2
drakx-backup-do-not-use-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.tar.xz
drakx-backup-do-not-use-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.zip
(_create_dialog) sanitize dialogs/popups:
- set a border around it - add more space between the icon and the text
Diffstat (limited to 'perl-install/ugtk2.pm')
-rw-r--r--perl-install/ugtk2.pm3
1 files changed, 2 insertions, 1 deletions
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,
),
);