From 29eb6f83f6b9af5635952a3d117e1725ef9439e8 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Tue, 20 Jun 2017 11:27:44 +0200 Subject: src/prompt-box.vala: get_preferred_height() ovrride only needed with GTK3 >= 3.20. --- src/prompt-box.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/prompt-box.vala b/src/prompt-box.vala index 49c2403..6d5bc13 100644 --- a/src/prompt-box.vala +++ b/src/prompt-box.vala @@ -296,6 +296,7 @@ public class PromptBox : FadableBox last_row = start_row; } +#if HAVE_GTK_3_20_0 private int round_to_grid (int size) { var num_grids = size / grid_size; @@ -315,6 +316,7 @@ public class PromptBox : FadableBox if (position <= -1 || position >= 1) min = nat = grid_size; } +#endif public void set_zone (Gtk.Widget zone) { -- cgit v1.2.3