Commit b61a35cf authored by Christian Persch's avatar Christian Persch

vteapp: Fix build with older vala

https://bugzilla.gnome.org/show_bug.cgi?id=729639
parent 13273962
......@@ -357,12 +357,14 @@ class Window : Gtk.ApplicationWindow
if (App.Options.no_context_menu)
return false;
var match = terminal.match_check_event(event, null);
var menu = new GLib.Menu();
menu.append("_Copy", "win.copy");
#if VALA_0_24
var match = terminal.match_check_event(event, null);
if (match != null)
menu.append("Copy _Match", "win.copy-match::" + match);
#endif
menu.append("_Paste", "win.paste");
......
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