summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-27 13:25:31 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-27 13:25:31 +0000
commit498282d5ee4da1eafb6a910065d1bade333e6b7c (patch)
tree70267e01bc29c70c6488a473369d07f069e6c6e4 /perl-install/mygtk2.pm
parentcee5fd472ac4d8f04bc9ec5a69a1a5f0f38092ed (diff)
downloaddrakx-498282d5ee4da1eafb6a910065d1bade333e6b7c.tar
drakx-498282d5ee4da1eafb6a910065d1bade333e6b7c.tar.gz
drakx-498282d5ee4da1eafb6a910065d1bade333e6b7c.tar.bz2
drakx-498282d5ee4da1eafb6a910065d1bade333e6b7c.tar.xz
drakx-498282d5ee4da1eafb6a910065d1bade333e6b7c.zip
allow to create buttons with stock icons (for drakguard)
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 9c2d100ca..6f5bc48d1 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -179,6 +179,9 @@ sub _gtk_any_Button {
$set->();
} elsif (exists $opts->{text}) {
$w->set_label(delete $opts->{text});
+ } elsif (exists $opts->{stock}) {
+ $w->set_label(delete $opts->{stock});
+ $w->set_use_stock(1);
}
if ($class eq 'Button') {