From e083677a5e3834d4857e8b80881fa157be139dde Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 17 Sep 2009 10:07:33 +0000 Subject: (_gtk__Image) add support for stock images --- perl-install/mygtk2.pm | 2 ++ 1 file changed, 2 insertions(+) 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} }; -- cgit v1.2.1