summaryrefslogtreecommitdiffstats
path: root/perl-install/mygtk3.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2012-08-01 18:56:16 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 21:28:34 +0100
commite5d2e80a09845619e90d736ac9c0f5fb3665574d (patch)
tree857fcf4fce96435758c9734677e0d95d48eb758d /perl-install/mygtk3.pm
parent57cc6e6e43ea687e8b9d55346698338d7d9d9dce (diff)
downloaddrakx-e5d2e80a09845619e90d736ac9c0f5fb3665574d.tar
drakx-e5d2e80a09845619e90d736ac9c0f5fb3665574d.tar.gz
drakx-e5d2e80a09845619e90d736ac9c0f5fb3665574d.tar.bz2
drakx-e5d2e80a09845619e90d736ac9c0f5fb3665574d.tar.xz
drakx-e5d2e80a09845619e90d736ac9c0f5fb3665574d.zip
perlish ->window => ->get_window
Diffstat (limited to 'perl-install/mygtk3.pm')
-rw-r--r--perl-install/mygtk3.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 455a83de1..e3cb85268 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -354,13 +354,13 @@ sub _gtk__Image {
}
# workaround Gtk+ bug: in installer, first event is not complete and rectables are bogus:
if ($::isInstall) {
- $pixbuf->render_to_drawable($w->window, $w->style->fg_gc('normal'),
+ $pixbuf->render_to_drawable($w->get_window, $w->style->fg_gc('normal'),
0, 0, $w->{x}, $w->{y}, $width, $height, 'max', 0, 0);
return;
}
foreach my $rect ($event->region->get_rectangles) {
my @values = $rect->values;
- $pixbuf->render_to_drawable($w->window, $w->style->fg_gc('normal'),
+ $pixbuf->render_to_drawable($w->get_window, $w->style->fg_gc('normal'),
@values[0..1], $w->{x}+$values[0], $w->{y}+$values[1], @values[2..3], 'max', 0, 0);
}
});
@@ -1535,7 +1535,7 @@ sub _pixbuf_render_alpha {
sub pixmap_from_pixbuf {
my ($widget, $pixbuf) = @_;
- my $window = $widget->window or internal_error("you can't use this function if the widget is not realised");
+ my $window = $widget->get_window or internal_error("you can't use this function if the widget is not realised");
my ($width, $height) = ($pixbuf->get_width, $pixbuf->get_height);
my $pixmap = Gtk3::Gdk::Pixmap->new($window, $width, $height, $window->get_depth);
$pixbuf->render_to_drawable($pixmap, $widget->style->fg_gc('normal'), 0, 0, 0, 0, $width, $height, 'max', 0, 0);