From e5d2e80a09845619e90d736ac9c0f5fb3665574d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 1 Aug 2012 18:56:16 +0200 Subject: perlish ->window => ->get_window --- perl-install/mygtk3.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/mygtk3.pm') 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); -- cgit v1.2.1