summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-31 17:16:42 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-31 18:02:46 +0100
commitb991a46c2e79a8f2e8a393199dc240b1188fce7b (patch)
treed0f9943da4f596808aa476bc429e44894048281b
parent197e39210ae05528e6f807f8713eaa6364a96d76 (diff)
downloadcontrol-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--NEWS2
-rwxr-xr-xcontrol-center2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 4c5f1fe5..58440e36 100644
--- a/NEWS
+++ b/NEWS
@@ -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;