summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk2.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-11 19:26:50 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-11 19:26:50 +0000
commitbace90ec0d5b0d68cd8786ef1077628a03d567fe (patch)
tree4497fa9f1f8164ada51d5ec21b476ed156b4772e /perl-install/mygtk2.pm
parenta7e486e1a9b37f3ffaf40004bf829b92ca6cb346 (diff)
downloaddrakx-bace90ec0d5b0d68cd8786ef1077628a03d567fe.tar
drakx-bace90ec0d5b0d68cd8786ef1077628a03d567fe.tar.gz
drakx-bace90ec0d5b0d68cd8786ef1077628a03d567fe.tar.bz2
drakx-bace90ec0d5b0d68cd8786ef1077628a03d567fe.tar.xz
drakx-bace90ec0d5b0d68cd8786ef1077628a03d567fe.zip
(_gtk__Sexy_IconEntry) add support for Gtk2::Sexy::IconEntry (needed for rpmdrake)
Diffstat (limited to 'perl-install/mygtk2.pm')
-rw-r--r--perl-install/mygtk2.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index 73007dc72..f3c1d44aa 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -388,6 +388,30 @@ sub _gtk__Title2 {
_gtk__Title1($w, $opts);
}
+sub _gtk__Sexy_IconEntry {
+ my ($w, $opts) = @_;
+
+ require Gtk2::Sexy;
+ if (!$w) {
+ $w = Gtk2::Sexy::IconEntry->new;
+ $w->set_editable(delete $opts->{editable}) if exists $opts->{editable};
+ }
+
+ $w->add_clear_button if delete $opts->{clear_button};
+ if (my $icon = delete $opts->{primary_icon}) {
+ $w->set_icon('primary', $icon);
+ $w->set_icon_highlight('primary', $icon);
+ }
+ if (my $icon = delete $opts->{secondary_icon}) {
+ $w->set_icon('secondary',i $icon);
+ $w->set_icon_highlight('secondary', $icon);
+ }
+
+ $w->signal_connect('icon-released' => delete $opts->{'icon-released'}) if exists $opts->{'icon-released'};
+
+ _gtk__Entry($w, $opts);
+}
+
sub _gtk__Entry {
my ($w, $opts) = @_;