From patchwork Mon Feb 25 15:20:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= X-Patchwork-Id: 222933 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F0E5E2C02A0 for ; Tue, 26 Feb 2013 02:22:38 +1100 (EST) Received: from localhost ([::1]:35861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9zsz-00025F-4x for incoming@patchwork.ozlabs.org; Mon, 25 Feb 2013 10:22:37 -0500 Received: from eggs.gnu.org ([208.118.235.92]:41655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9zrj-0008IV-8d for qemu-devel@nongnu.org; Mon, 25 Feb 2013 10:21:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9zrZ-0007S1-Ut for qemu-devel@nongnu.org; Mon, 25 Feb 2013 10:21:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9zrZ-0007Rm-Nm for qemu-devel@nongnu.org; Mon, 25 Feb 2013 10:21:09 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1PFL9vo007524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 25 Feb 2013 10:21:09 -0500 Received: from t500wlan.home.berrange.com.com (vpn1-4-92.ams2.redhat.com [10.36.4.92]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r1PFKrXY032143; Mon, 25 Feb 2013 10:21:08 -0500 From: "Daniel P. Berrange" To: qemu-devel@nongnu.org Date: Mon, 25 Feb 2013 15:20:46 +0000 Message-Id: <1361805646-6425-14-git-send-email-berrange@redhat.com> In-Reply-To: <1361805646-6425-1-git-send-email-berrange@redhat.com> References: <1361805646-6425-1-git-send-email-berrange@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH ui/gtk 13/13] Add compat for GDK_KEY_XXX symbols X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Daniel P. Berrange" The GDK_KEY_XXX symbols are new in GTK3 and only the most recent GTK2 releases. Most versions of GTK2 have simply used GDK_XXX Signed-off-by: Daniel P. Berrange --- ui/gtk.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index 82f0bb2..544593e 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -88,6 +88,15 @@ static inline void gdk_drawable_get_size(GdkWindow *w, gint *ww, gint *wh) #define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget) #endif +#ifndef GDK_KEY_0 +#define GDK_KEY_0 GDK_0 +#define GDK_KEY_1 GDK_1 +#define GDK_KEY_2 GDK_2 +#define GDK_KEY_f GDK_f +#define GDK_KEY_g GDK_g +#define GDK_KEY_plus GDK_plus +#define GDK_KEY_minus GDK_minus +#endif typedef struct VirtualConsole {