summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-11-02 15:44:06 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-11-02 15:49:09 +0100
commitb22f0a29c267ea925edcbb0650494b419bf5c3e2 (patch)
tree9837a4b125a4babfc5c6a27fe4454f2a76f65825
parent7e1156c2e99c4b1637fd182b0558f03b81b16511 (diff)
downloadcontrol-center-b22f0a29c267ea925edcbb0650494b419bf5c3e2.tar
control-center-b22f0a29c267ea925edcbb0650494b419bf5c3e2.tar.gz
control-center-b22f0a29c267ea925edcbb0650494b419bf5c3e2.tar.bz2
control-center-b22f0a29c267ea925edcbb0650494b419bf5c3e2.tar.xz
control-center-b22f0a29c267ea925edcbb0650494b419bf5c3e2.zip
kill {first_expose}
needed for next commit, else we don't look at the righ window size
-rwxr-xr-xcontrol-center4
1 files changed, 0 insertions, 4 deletions
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;