diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-03 07:41:46 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-08-03 07:41:46 +0000 |
commit | 1a0d48880bbdeb6f581338474b8ccbe4eda360eb (patch) | |
tree | e308ac5674431b744a380f3122e8a2f5f7731186 | |
parent | fde55790c3cec482adaf066cd08e16c0bf20df83 (diff) | |
download | drakx-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.tar drakx-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.tar.gz drakx-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.tar.bz2 drakx-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.tar.xz drakx-1a0d48880bbdeb6f581338474b8ccbe4eda360eb.zip |
(_create_dialog) sanitize dialogs/popups:
- set a border around it
- add more space between the icon and the text
-rw-r--r-- | perl-install/ugtk2.pm | 3 |
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, ), ); |