[vte] vteapp: Fix build with older vala
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] vteapp: Fix build with older vala
- Date: Tue, 6 May 2014 19:32:28 +0000 (UTC)
commit b61a35cf1bd4babb7945798256132c362786327f
Author: Christian Persch <chpe gnome org>
Date: Tue May 6 21:29:44 2014 +0200
vteapp: Fix build with older vala
https://bugzilla.gnome.org/show_bug.cgi?id=729639
src/app.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index b9e740a..19e952f 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]