From b22f0a29c267ea925edcbb0650494b419bf5c3e2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 2 Nov 2016 15:44:06 +0100 Subject: kill {first_expose} needed for next commit, else we don't look at the righ window size --- control-center | 4 ---- 1 file changed, 4 deletions(-) (limited to 'control-center') diff --git a/control-center b/control-center index d80cc369..208be5d0 100755 --- a/control-center +++ b/control-center @@ -1056,8 +1056,6 @@ $wait_darea->signal_connect(draw => sub { return unless $wait_darea->{size}; $wait_darea->{layout} ||= $wait_darea->create_pango_layout(N("Loading... Please wait")); my $pixbuf = $run_pixbufs{$run_counter} ||= mygtk3::_pixbuf_render_alpha($run_pixbuf, $run_counter); - if (!$wait_darea->{first_expose}) { - $wait_darea->{first_expose} = 1; my $size = $wait_darea->{size}; my ($d_width, $d_height) = ($size->{width}, $size->{height}); ($w->{pix_width}, $w->{pix_height}) = ($pixbuf->get_width, $pixbuf->get_height); @@ -1066,7 +1064,6 @@ $wait_darea->signal_connect(draw => sub { $w->{pix_xx} = ($d_height - $w->{pix_height} - $txt_height)/2; $w->{text_yy} = $w->{pix_yy} + ($w->{pix_width} - $txt_width)/2; $w->{text_xx} = $w->{pix_xx} + $w->{pix_height} + 5; - } Gtk3::Gdk::cairo_set_source_pixbuf($cr, $pixbuf, $w->{pix_yy}, $w->{pix_xx}); #0, 0); $cr->paint; $cr->set_source_rgb(0, 0, 0); @@ -1257,7 +1254,6 @@ sub run_tool { $run_counter = 255; $run_counter_add = -5; undef $wait_darea->{size}; - undef $wait_darea->{first_expose}; $wait_darea->{size} = $wait_darea->get_allocation; $timeout = Glib::Timeout->add(35, sub { my $w = $wait_darea; -- cgit v1.2.1