summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-07-30 17:23:59 +0000
committerThierry Vignaud <tv@mandriva.org>2008-07-30 17:23:59 +0000
commit8593e2ff76de0625d879f313966d386b61d1e96e (patch)
tree98b73aa06a9ebc0de619084fa54959d7f9304a4a
parente17be81200b0efb96f2ac80b25e61d9e58a4f740 (diff)
downloaddrakx-8593e2ff76de0625d879f313966d386b61d1e96e.tar
drakx-8593e2ff76de0625d879f313966d386b61d1e96e.tar.gz
drakx-8593e2ff76de0625d879f313966d386b61d1e96e.tar.bz2
drakx-8593e2ff76de0625d879f313966d386b61d1e96e.tar.xz
drakx-8593e2ff76de0625d879f313966d386b61d1e96e.zip
(_gtk__Fixed) add support for image background
-rw-r--r--perl-install/mygtk2.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl-install/mygtk2.pm b/perl-install/mygtk2.pm
index a86f69c3c..b7490b41d 100644
--- a/perl-install/mygtk2.pm
+++ b/perl-install/mygtk2.pm
@@ -582,6 +582,13 @@ sub _gtk__Fixed {
$w = Gtk2::Fixed->new;
$w->set_has_window(delete $opts->{has_window}) if exists $opts->{has_window};
$w->put(delete $opts->{child}, delete $opts->{x}, delete $opts->{y}) if exists $opts->{child};
+ if ($opts->{pixbuf_file}) {
+ my $pixbuf = gtknew('Pixbuf', file => delete $opts->{pixbuf_file}) if $opts->{pixbuf_file};
+ $w->signal_connect(
+ realize => sub {
+ ugtk2::set_back_pixbuf($w, $pixbuf);
+ });
+ }
}
$w;
}