summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-09-17 10:07:33 +0000
committerThierry Vignaud <tv@mandriva.org>2009-09-17 10:07:33 +0000
commite083677a5e3834d4857e8b80881fa157be139dde (patch)
tree6269d49bf4ce341071750fcb106fe325bdedf506 /perl-install/mygtk2.pm
parentbaffb50fb8d8b895e282b389531c57ee11119c75 (diff)
downloaddrakx-e083677a5e3834d4857e8b80881fa157be139dde.tar
drakx-e083677a5e3834d4857e8b80881fa157be139dde.tar.gz
drakx-e083677a5e3834d4857e8b80881fa157be139dde.tar.bz2
drakx-e083677a5e3834d4857e8b80881fa157be139dde.tar.xz
drakx-e083677a5e3834d4857e8b80881fa157be139dde.zip
(_gtk__Image) add support for stock images
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 419861ae0..cfe592b06 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -330,6 +330,8 @@ sub _gtk__Image {
if (!$w) {
$w = Gtk2::Image->new;
$w->{format} = delete $opts->{format} if exists $opts->{format};
+
+ $w->set_from_stock(delete $opts->{stock}, 'button') if exists $opts->{stock};
$w->{options} = { flip => delete $opts->{flip} };