From 10f8d025bf555201fd3051893c47aa1c0655790c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 12 Nov 2013 01:01:51 +0100 Subject: fix "Can't call method "x" on unblessed reference" --- perl-install/ugtk3.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'perl-install') diff --git a/perl-install/ugtk3.pm b/perl-install/ugtk3.pm index c628b7cb3..3cc54b5f7 100644 --- a/perl-install/ugtk3.pm +++ b/perl-install/ugtk3.pm @@ -1556,13 +1556,13 @@ sub RENDER { # not that efficient... my ($x_offset, $y_offset, $_width, $_height) = calc_size($cell, $layout); my $pixbuf = $cell->get('pixbuf'); my ($pwidth, $pheight) = pixbuf_size($cell); - my $txt_offset = $cell_area->x + $x_offset + $x_padding * 2 + $pwidth; + my $txt_offset = $cell_area->{x} + $x_offset + $x_padding * 2 + $pwidth; if ($pixbuf) { $pixbuf->render_to_drawable($window, $widget->style->fg_gc('normal'), 0, 0, - $is_rtl ? $cell_area->width - $cell_area->x - $pwidth : $cell_area->x ,#+ $x_padding, - $cell_area->y, #+ $y_padding, + $is_rtl ? $cell_area->{width} - $cell_area->{x} - $pwidth : $cell_area->{x} ,#+ $x_padding, + $cell_area->{y}, #+ $y_padding, $pwidth, $pheight, 'none', 0, 0); } $widget->get_style->paint_layout($window, @@ -1571,8 +1571,8 @@ sub RENDER { # not that efficient... $cell_area, $widget, "cellrenderertext", - $is_rtl ? $cell_area->width - $txt_width - $txt_offset : $txt_offset, - $cell_area->y + $y_offset + $y_padding, + $is_rtl ? $cell_area->{width} - $txt_width - $txt_offset : $txt_offset, + $cell_area->{y} + $y_offset + $y_padding, $layout); } -- cgit v1.2.1