diff options
author | Pablo Barciela <[email protected]> | 2017-11-04 22:41:34 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-11-08 13:45:28 +0100 |
commit | d6737d5381e0a5ce9337c12ffc8652cee835759a (patch) | |
tree | 2c72556880249b0fc0c3b918c8d94f1e42a8be81 | |
parent | 0f9e701ecb562540c96542a8f7b618be86c69486 (diff) | |
download | mate-terminal-d6737d5381e0a5ce9337c12ffc8652cee835759a.tar.bz2 mate-terminal-d6737d5381e0a5ce9337c12ffc8652cee835759a.tar.xz |
avoid deprecated vte_terminal_search_get_gregex
Fixes https://github.com/mate-desktop/mate-terminal/issues/199
-rw-r--r-- | src/terminal-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c index 96beb2a..c6f393d 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); |