[gtk+] testsuite: Use GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] testsuite: Use GdkEvent API
- Date: Tue, 19 Sep 2017 17:19:01 +0000 (UTC)
commit b350db58e071349ff8ba205660c3e2396be9cebb
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Aug 28 19:11:45 2017 -0400
testsuite: Use GdkEvent API
testsuite/gtk/gestures.c | 3 +++
testsuite/reftests/reftest-snapshot.c | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/testsuite/gtk/gestures.c b/testsuite/gtk/gestures.c
index 4298c84..d32fcf0 100644
--- a/testsuite/gtk/gestures.c
+++ b/testsuite/gtk/gestures.c
@@ -1,5 +1,8 @@
#include <gtk/gtk.h>
+#define GDK_COMPILATION
+#include "gdk/gdkeventsprivate.h"
+
typedef struct {
GtkWidget *widget;
gint x;
diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c
index 1e4e1fd..ec7f90f 100644
--- a/testsuite/reftests/reftest-snapshot.c
+++ b/testsuite/reftests/reftest-snapshot.c
@@ -88,7 +88,7 @@ reftest_uninhibit_snapshot (void)
static void
check_for_draw (GdkEvent *event, gpointer data)
{
- if (event->type == GDK_EXPOSE)
+ if (gdk_event_get_event_type (event) == GDK_EXPOSE)
{
reftest_uninhibit_snapshot ();
gdk_event_handler_set ((GdkEventFunc) gtk_main_do_event, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]