summaryrefslogtreecommitdiffstats
path: root/perl-install
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
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')
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/mygtk2.pm3
2 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 6493b6642..e61fb6625 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -6,6 +6,8 @@
o fix reading grub conf (#39346)
- services backend:
o handle services with "-" as default chkconfig level in more places
+- mygtk2:
+ o allow to create buttons with stock icons (for drakguard)
Version 10.20 - 25 March 2008
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') {