summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-25 12:05:57 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-25 12:05:57 +0000
commitaacf83242de670741014a4b9efcea89940188e97 (patch)
tree30541547ff55e927d34bc6f627c64dd5d107bd7a /perl-install/mygtk2.pm
parente612b75a6a88ad58fb27662a0e40e6048303abad (diff)
downloaddrakx-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/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm12
1 files changed, 12 insertions, 0 deletions
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};