From patchwork Fri Feb 22 13:51:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anthony Liguori X-Patchwork-Id: 222532 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 06D2F2C0040 for ; Sat, 23 Feb 2013 00:52:03 +1100 (EST) Received: from localhost ([::1]:35928 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8t2f-00042A-AQ for incoming@patchwork.ozlabs.org; Fri, 22 Feb 2013 08:52:01 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8t2L-0003Wc-L9 for qemu-devel@nongnu.org; Fri, 22 Feb 2013 08:51:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8t2J-0003WC-52 for qemu-devel@nongnu.org; Fri, 22 Feb 2013 08:51:41 -0500 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:46089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8t2I-0003Vn-J3 for qemu-devel@nongnu.org; Fri, 22 Feb 2013 08:51:39 -0500 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Feb 2013 23:42:19 +1000 Received: from d23dlp01.au.ibm.com (202.81.31.203) by e23smtp04.au.ibm.com (202.81.31.210) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 22 Feb 2013 23:42:17 +1000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [9.190.235.152]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id C17602CE802D for ; Sat, 23 Feb 2013 00:51:33 +1100 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r1MDd27c9044290 for ; Sat, 23 Feb 2013 00:39:02 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r1MDpX6S028019 for ; Sat, 23 Feb 2013 00:51:33 +1100 Received: from titi.austin.rr.com (sig-9-49-153-3.mts.ibm.com [9.49.153.3]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r1MDpV3P027579; Sat, 23 Feb 2013 00:51:31 +1100 From: Anthony Liguori To: qemu-devel@nongnu.org Date: Fri, 22 Feb 2013 07:51:30 -0600 Message-Id: <1361541090-6168-1-git-send-email-aliguori@us.ibm.com> X-Mailer: git-send-email 1.8.0 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13022213-9264-0000-0000-000003338195 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 202.81.31.146 Cc: Anthony Liguori , Gerd Hoffmann Subject: [Qemu-devel] [PATCH] ui/gtk: fix build on GTK 2.18 and older 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 Reported-by: Gerd Hoffman Suggested-by: Daniel Berrange Signed-off-by: Anthony Liguori --- ui/gtk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index 5f91de4..46e30b9 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -122,6 +122,10 @@ typedef struct GtkDisplayState static GtkDisplayState *global_state; +#if !GTK_CHECK_VERSION(2, 18, 0) +#define gtk_widget_get_realized(widget) GTK_WIDGET_REALIZED(widget) +#endif + /** Utility Functions **/ static bool gd_is_grab_active(GtkDisplayState *s)