From: Simon Tatham Date: Sun, 3 Apr 2016 09:10:40 +0000 (+0100) Subject: Compile fix for GTK 3.18: avoid gtk_adjustment_changed(). X-Git-Tag: 0.68~182 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=c2c22fb16a87783d26edd3235ea9b0d3c6f414e1;hp=-c;p=PuTTY.git Compile fix for GTK 3.18: avoid gtk_adjustment_changed(). That function is deprecated as of 3.18, on the basis that GTK doesn't need telling any more when the adjustment's owning widget needs updating. So we just need to condition out the call. --- c2c22fb16a87783d26edd3235ea9b0d3c6f414e1 diff --git a/unix/gtkwin.c b/unix/gtkwin.c index f10a96ec..7ebccbca 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -2833,7 +2833,9 @@ void set_sbar(void *frontend, int total, int start, int page) gtk_adjustment_set_step_increment(inst->sbar_adjust, 1); gtk_adjustment_set_page_increment(inst->sbar_adjust, page/2); inst->ignore_sbar = TRUE; +#if !GTK_CHECK_VERSION(3,18,0) gtk_adjustment_changed(inst->sbar_adjust); +#endif inst->ignore_sbar = FALSE; }