Commit d5125165 authored by Brandon Ehle's avatar Brandon Ehle Committed by Christian Persch
Browse files

Fix a compile error when using an older version of GTK+.

parent a6c00984
...@@ -7844,6 +7844,7 @@ vte_terminal_handle_scroll(VteTerminal *terminal) ...@@ -7844,6 +7844,7 @@ vte_terminal_handle_scroll(VteTerminal *terminal)
} }
} }
#if GTK_CHECK_VERSION (2, 91, 2)
static void static void
vte_terminal_set_hadjustment(VteTerminal *terminal, vte_terminal_set_hadjustment(VteTerminal *terminal,
GtkAdjustment *adjustment) GtkAdjustment *adjustment)
...@@ -7858,6 +7859,7 @@ vte_terminal_set_hadjustment(VteTerminal *terminal, ...@@ -7858,6 +7859,7 @@ vte_terminal_set_hadjustment(VteTerminal *terminal,
pvt->hadjustment = adjustment ? g_object_ref_sink (adjustment) : NULL; pvt->hadjustment = adjustment ? g_object_ref_sink (adjustment) : NULL;
} }
#endif
static void static void
vte_terminal_set_vadjustment(VteTerminal *terminal, vte_terminal_set_vadjustment(VteTerminal *terminal,
...@@ -8122,9 +8124,10 @@ vte_terminal_init(VteTerminal *terminal) ...@@ -8122,9 +8124,10 @@ vte_terminal_init(VteTerminal *terminal)
/* GtkScrollable */ /* GtkScrollable */
pvt->hscroll_policy = GTK_SCROLL_NATURAL; pvt->hscroll_policy = GTK_SCROLL_NATURAL;
pvt->vscroll_policy = GTK_SCROLL_NATURAL; pvt->vscroll_policy = GTK_SCROLL_NATURAL;
#endif
vte_terminal_set_hadjustment(terminal, NULL); vte_terminal_set_hadjustment(terminal, NULL);
#endif
vte_terminal_set_vadjustment(terminal, NULL); vte_terminal_set_vadjustment(terminal, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment