summaryrefslogtreecommitdiffstats
path: root/control-center
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-18 02:45:59 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-12-20 10:25:03 +0100
commit1981bc71c664e541c422c17c33dc449f0bf61d16 (patch)
tree53e4ad23de5643d45bd961be88b2f1baefac5e80 /control-center
parent615e2df304b4e99189e91f21742fc788e12efe49 (diff)
downloadcontrol-center-1981bc71c664e541c422c17c33dc449f0bf61d16.tar
control-center-1981bc71c664e541c422c17c33dc449f0bf61d16.tar.gz
control-center-1981bc71c664e541c422c17c33dc449f0bf61d16.tar.bz2
control-center-1981bc71c664e541c422c17c33dc449f0bf61d16.tar.xz
control-center-1981bc71c664e541c422c17c33dc449f0bf61d16.zip
get_height() => get_allocated_height()
Diffstat (limited to 'control-center')
-rwxr-xr-xcontrol-center4
1 files changed, 2 insertions, 2 deletions
diff --git a/control-center b/control-center
index f154efc6..3420f686 100755
--- a/control-center
+++ b/control-center
@@ -1070,7 +1070,7 @@ $wait_darea->signal_connect(expose_event => sub {
$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_allocated_width, $pixbuf->get_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;
$w->{pix_xx} = ($d_height - $w->{pix_height} - $txt_height)/2;
@@ -1563,7 +1563,7 @@ sub render_shiner {
sub scale {
my ($pixbuf, $gain) = @_;
- my ($width, $height) = ($pixbuf->get_height, $pixbuf->get_allocated_width);
+ my ($width, $height) = ($pixbuf->get_allocated_height, $pixbuf->get_allocated_width);
$pixbuf->scale_simple($height+$gain, $width+$gain, 'hyper');
}