diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-25 12:05:57 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-25 12:05:57 +0000 |
commit | aacf83242de670741014a4b9efcea89940188e97 (patch) | |
tree | 30541547ff55e927d34bc6f627c64dd5d107bd7a /perl-install | |
parent | e612b75a6a88ad58fb27662a0e40e6048303abad (diff) | |
download | drakx-aacf83242de670741014a4b9efcea89940188e97.tar drakx-aacf83242de670741014a4b9efcea89940188e97.tar.gz drakx-aacf83242de670741014a4b9efcea89940188e97.tar.bz2 drakx-aacf83242de670741014a4b9efcea89940188e97.tar.xz drakx-aacf83242de670741014a4b9efcea89940188e97.zip |
(_gtk__Entry) entries now support most Sexy::IconEntry API
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/NEWS | 1 | ||||
-rw-r--r-- | perl-install/mygtk2.pm | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS index 2c2d067b2..05c9c3ce7 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,4 @@ +- add new Entry infrastructure for rpmdrake - detect_devices: o only look at valid scsi devices in /sys diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm index 3ff3f0f72..71fe3f7eb 100644 --- a/perl-install/mygtk2.pm +++ b/perl-install/mygtk2.pm @@ -513,6 +513,18 @@ sub _gtk__Entry { $w->set_editable(delete $opts->{editable}) if exists $opts->{editable}; } + if (my $icon = delete $opts->{primary_icon}) { + $w->set_icon_from_stock('primary', $icon); + #$w->set_icon_highlight('primary', $icon); + } + if (my $icon = delete $opts->{secondary_icon}) { + $w->set_icon_from_stock('secondary', $icon); + #$w->set_icon_highlight('secondary', $icon); + } + + $w->signal_connect('icon-release' => delete $opts->{'icon-release'}) if exists $opts->{'icon-release'}; + $w->signal_connect('icon-press' => delete $opts->{'icon-press'}) if exists $opts->{'icon-press'}; + $w->set_text(delete $opts->{text}) if exists $opts->{text}; $w->signal_connect(key_press_event => delete $opts->{key_press_event}) if exists $opts->{key_press_event}; |