summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
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') {