summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-07 17:51:55 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-24 23:28:15 +0100
commit1d49d7856a207155478d268466e167b0e41d1de9 (patch)
tree49deebf56dbae3d8af37977e70b3d14357e5d0a0
parentf72cb6d8b4ee6aad7af88e5cb8fc14518d034e7a (diff)
downloaddrakx-1d49d7856a207155478d268466e167b0e41d1de9.tar
drakx-1d49d7856a207155478d268466e167b0e41d1de9.tar.gz
drakx-1d49d7856a207155478d268466e167b0e41d1de9.tar.bz2
drakx-1d49d7856a207155478d268466e167b0e41d1de9.tar.xz
drakx-1d49d7856a207155478d268466e167b0e41d1de9.zip
perlish $adjustment->upper => adjustment->get_property("upper")
-rw-r--r--perl-install/mygtk3.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index aa91f5217..df7ac63fc 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -1448,7 +1448,7 @@ sub _allow_scroll_TextView_to_bottom {
sub {
my ($o_force) = @_;
my $adjustment = $scrolledWindow->get_vadjustment;
- if ($o_force || $adjustment->get_property("page_size") + $adjustment->get_value == $adjustment->upper) {
+ if ($o_force || $adjustment->get_property("page_size") + $adjustment->get_value == $adjustment->get_property("upper")) {
flush(); #- one must flush before scrolling to end, otherwise the text just added *may* not be taken into account correctly, and so it doesn't really scroll to end
$textView->scroll_to_mark($textView->get_buffer->get_mark('end'), 0, 1, 0, 1);
}