summaryrefslogtreecommitdiffstats
path: root/control-center
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-10-31 16:17:24 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-31 18:02:41 +0100
commitd05c8366ea6fc63b2023e0e7290438264c7ed705 (patch)
treec4a36bbd08ae5031d35d44bf51bc010d81f33020 /control-center
parentd726f3eb2cdc5f6e8598f0fcd5ec06ab37482c45 (diff)
downloadcontrol-center-d05c8366ea6fc63b2023e0e7290438264c7ed705.tar
control-center-d05c8366ea6fc63b2023e0e7290438264c7ed705.tar.gz
control-center-d05c8366ea6fc63b2023e0e7290438264c7ed705.tar.bz2
control-center-d05c8366ea6fc63b2023e0e7290438264c7ed705.tar.xz
control-center-d05c8366ea6fc63b2023e0e7290438264c7ed705.zip
fix accessing struct members
Gtk2 is different from Gtk3 here
Diffstat (limited to 'control-center')
-rwxr-xr-xcontrol-center2
1 files changed, 1 insertions, 1 deletions
diff --git a/control-center b/control-center
index 0d7c8cb6..6247f5cd 100755
--- a/control-center
+++ b/control-center
@@ -1053,7 +1053,7 @@ $wait_darea->signal_connect(draw => sub {
if (!$wait_darea->{first_expose}) {
$wait_darea->{first_expose} = 1;
my $size = $wait_darea->{size};
- my ($d_width, $d_height) = ($size->width, $size->height);
+ my ($d_width, $d_height) = ($size->{width}, $size->{height});
($w->{pix_width}, $w->{pix_height}) = ($pixbuf->get_allocated_width, $pixbuf->get_allocated_height);
my ($txt_width, $txt_height) = $wait_darea->{layout}->get_pixel_size;
$w->{pix_yy} = ($d_width - $w->{pix_width})/2;