From 64c05dd1d5e523911d77b8ec1e6a8493b32a04f1 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 26 Nov 2002 18:37:55 +0000 Subject: fix shadow bug due to wrong extraction of allocation data --- perl-install/ugtk2.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index 29c085629..e3bae1c3c 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -817,12 +817,12 @@ sub _create_window($$) { $table->attach($inner, 0, 1, 0, 1, ['expand', 'fill'], ['expand', 'fill'], 0, 0); $table->attach(gtksignal_connect(gtkset_size_request(Gtk2::DrawingArea->new, $sqw, 1), expose_event => sub { $_[0]->window->draw_rectangle($_[0]->style->bg_gc('normal'), 1, 0, 0, $sqw, $sqw); - $_[0]->window->draw_rectangle($gc, 1, 0, $sqw, $sqw, ($_[0]->allocation)[3]); + $_[0]->window->draw_rectangle($gc, 1, 0, $sqw, $sqw, $_[0]->allocation->height); }), 1, 2, 0, 1, 'fill', 'fill', 0, 0); $table->attach(gtksignal_connect(gtkset_size_request(Gtk2::DrawingArea->new, 1, $sqw), expose_event => sub { $_[0]->window->draw_rectangle($_[0]->style->bg_gc('normal'), 1, 0, 0, $sqw, $sqw); - $_[0]->window->draw_rectangle($gc, 1, $sqw, 0, ($_[0]->allocation)[2], $sqw); + $_[0]->window->draw_rectangle($gc, 1, $sqw, 0, $_[0]->allocation->width, $sqw); }), 0, 1, 1, 2, 'fill', 'fill', 0, 0); $table->attach(gtksignal_connect(gtkset_size_request(Gtk2::DrawingArea->new, $sqw, $sqw), expose_event => sub { -- cgit v1.2.1