avoid deprecated vte_terminal_search_get_gregex
Fixes https://github.com/mate-desktop/mate-terminal/issues/199master-1.22
parent
9a574072ee
commit
44df2882bf
|
@ -1212,7 +1212,11 @@ terminal_window_update_search_sensitivity (TerminalScreen *screen,
|
||||||
if (screen != priv->active_screen)
|
if (screen != priv->active_screen)
|
||||||
return;
|
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;
|
can_search = vte_terminal_search_get_gregex (VTE_TERMINAL (screen)) != NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
action = gtk_action_group_get_action (priv->action_group, "SearchFindNext");
|
action = gtk_action_group_get_action (priv->action_group, "SearchFindNext");
|
||||||
gtk_action_set_sensitive (action, can_search);
|
gtk_action_set_sensitive (action, can_search);
|
||||||
|
|
Loading…
Reference in New Issue