diff options
author | Pablo Barciela <[email protected]> | 2017-11-04 22:41:34 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2017-11-08 00:22:55 +0100 |
commit | 44df2882bf5862e1729ee8a949b63c9d3a1dde93 (patch) | |
tree | eb6f94dd66bbf7e540cef7948c4e6111b2cad0af /src/terminal-window.c | |
parent | 9a574072eee9bd69c93658ca9a66eb65643ec8dd (diff) | |
download | mate-terminal-44df2882bf5862e1729ee8a949b63c9d3a1dde93.tar.bz2 mate-terminal-44df2882bf5862e1729ee8a949b63c9d3a1dde93.tar.xz |
avoid deprecated vte_terminal_search_get_gregex
Fixes https://github.com/mate-desktop/mate-terminal/issues/199
Diffstat (limited to 'src/terminal-window.c')
-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 b2b0ef5..db561b7 100644 --- a/src/terminal-window.c +++ b/src/terminal-window.c @@ -1212,7 +1212,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); |