From f2288021157342f62cc8c1a5d6a01e512e5585ba Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 4 Nov 2017 22:41:34 +0100 Subject: avoid deprecated vte_terminal_search_get_gregex Fixes https://github.com/mate-desktop/mate-terminal/issues/199 --- src/terminal-window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/terminal-window.c b/src/terminal-window.c index 464820f..2bc935a 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -1199,7 +1199,11 @@ terminal_window_update_search_sensitivity (TerminalScreen *screen, if (screen != priv->active_screen) return; +#if VTE_CHECK_VERSION (0, 46, 0) + can_search = vte_terminal_search_get_regex (VTE_TERMINAL (screen)) != NULL; +#else can_search = vte_terminal_search_get_gregex (VTE_TERMINAL (screen)) != NULL; +#endif action = gtk_action_group_get_action (priv->action_group, "SearchFindNext"); gtk_action_set_sensitive (action, can_search); -- cgit v1.2.1