From: Ben Pfaff Date: Mon, 29 Jun 2009 04:26:59 +0000 (-0700) Subject: output: Avoid functions added in GTK 2.14 in GUI output code. X-Git-Tag: v0.7.3~20 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0887b1273caa83a1f8de04dff600c001c6b66882;p=pspp-builds.git output: Avoid functions added in GTK 2.14 in GUI output code. --- diff --git a/src/ui/gui/psppire-output-window.c b/src/ui/gui/psppire-output-window.c index 1787271a..56d62904 100644 --- a/src/ui/gui/psppire-output-window.c +++ b/src/ui/gui/psppire-output-window.c @@ -308,8 +308,8 @@ on_row_activate (GtkTreeView *overview, g_value_unset (&value); vadj = gtk_layout_get_vadjustment (window->output); - min = gtk_adjustment_get_lower (vadj); - max = gtk_adjustment_get_upper (vadj) - gtk_adjustment_get_page_size (vadj); + min = vadj->lower; + max = vadj->upper - vadj->page_size; if (y < min) y = min; else if (y > max)