diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-10-31 17:16:42 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-10-31 18:02:46 +0100 |
commit | b991a46c2e79a8f2e8a393199dc240b1188fce7b (patch) | |
tree | d0f9943da4f596808aa476bc429e44894048281b | |
parent | 197e39210ae05528e6f807f8713eaa6364a96d76 (diff) | |
download | control-center-b991a46c2e79a8f2e8a393199dc240b1188fce7b.tar control-center-b991a46c2e79a8f2e8a393199dc240b1188fce7b.tar.gz control-center-b991a46c2e79a8f2e8a393199dc240b1188fce7b.tar.bz2 control-center-b991a46c2e79a8f2e8a393199dc240b1188fce7b.tar.xz control-center-b991a46c2e79a8f2e8a393199dc240b1188fce7b.zip |
init size first or we'll never paint
or even crash in:
undefined value for mandatory argument 'x' encountered at ./control-center line 1262.
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | control-center | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ - fix gtk+ warnings about deprecated style property - fix the "Display Logs" option doing nothing (mga#19147) +- re-enable startup animation + (it was disabled since switching from gtk+2 to gtk+3) Version 13.7 - 28 May 2016, RĂ©mi Verschelde diff --git a/control-center b/control-center index af8bcdbf..e4ffccbc 100755 --- a/control-center +++ b/control-center @@ -1257,8 +1257,8 @@ sub run_tool { $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 { - $wait_darea->{size} ||= $wait_darea->get_allocation; my $w = $wait_darea; $w->queue_draw_area($w->{pix_yy}, $w->{pix_xx}, $w->{pix_width}, $w->{pix_height}); 1; |