diff options
-rw-r--r-- | perl-install/mygtk3.pm | 2 | ||||
-rwxr-xr-x | perl-install/standalone/drakclock | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index af2447722..aa91f5217 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->value == $adjustment->upper) { + if ($o_force || $adjustment->get_property("page_size") + $adjustment->get_value == $adjustment->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); } diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock index 6965d6b91..5e38ff6e3 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -315,7 +315,7 @@ sub determine_radian { sub draw { my ($widget, $event) = @_; - my ($x, $y, $width, $height) = $event->area->values; + my ($x, $y, $width, $height) = $event->area->get_values; $widget->get_window->draw_drawable($widget->style->fg_gc('normal'), $pixmap, $x, $y, $x, $y, $width, $height); 0; } |