diff options
author | damien <damien@mandriva.com> | 2001-05-16 11:03:01 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-05-16 11:03:01 +0000 |
commit | c2f82629c6968282bd55c348df822d03f5b9c553 (patch) | |
tree | ba38addf6276e1718989df966edd4cb4264c30e3 /perl-install/my_gtk.pm | |
parent | 68540dce9e233595426d7ae01a8161c4bed5d8c2 (diff) | |
download | drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.tar drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.tar.gz drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.tar.bz2 drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.tar.xz drakx-backup-do-not-use-c2f82629c6968282bd55c348df822d03f5b9c553.zip |
icons management
Diffstat (limited to 'perl-install/my_gtk.pm')
-rw-r--r-- | perl-install/my_gtk.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index d2985c478..a4eaa7583 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -370,6 +370,7 @@ sub create_box_with_title($@) { $o->{box_size} = sum(map { round(length($_) / 60 + 0.5) } map { split "\n" } @_); $o->{box} = new Gtk::VBox(0,0); + $o->{icon} and eval { gtkpack__($o->{box}, gtkset_border_width(gtkpack_(new Gtk::HBox(0,0), 1, gtkpng($o->{icon})),5)); }; if (@_ <= 2 && $o->{box_size} > 4) { my $font = $o->{box}->style->font; my $wanted = $o->{box_size} * ($font->ascent + $font->descent) + 7; |