[gtk+/gdk-backend-quartz: 17/29] Implement event_data_{copy, free} for quartz
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gdk-backend-quartz: 17/29] Implement event_data_{copy, free} for quartz
- Date: Wed, 22 Dec 2010 02:32:26 +0000 (UTC)
commit 1811b099640c37348a14cfe7625fb10c3bf1ce7c
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 17 12:25:47 2010 -0500
Implement event_data_{copy,free} for quartz
gdk/quartz/gdkdisplay-quartz.c | 3 +++
gdk/quartz/gdkevents-quartz.c | 8 +++++---
gdk/quartz/gdkprivate-quartz.h | 5 +++++
3 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c
index 83cdb7d..7724ec1 100644
--- a/gdk/quartz/gdkdisplay-quartz.c
+++ b/gdk/quartz/gdkdisplay-quartz.c
@@ -250,4 +250,7 @@ _gdk_display_quartz_class_init (GdkDisplayQuartz *class)
display_class->supports_cursor_color = _gdk_quartz_display_supports_cursor_color;
display_class->get_next_serial = gdk_quartz_display_get_next_serial;
display_class->notify_startup_complete = _gdk_quartz_display_notify_startup_complete;
+ display_class->event_data_copy = _gdk_quartz_display_event_data_copy;
+ display_class->event_data_free = _gdk_quartz_display_event_data_free;
+
}
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 026b751..528e6a4 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -1438,8 +1438,9 @@ _gdk_quartz_screen_get_setting (GdkScreen *screen,
}
void
-_gdk_windowing_event_data_copy (const GdkEvent *src,
- GdkEvent *dst)
+_gdk_quartz_display_event_data_copy (GdkDisplay *display,
+ const GdkEvent *src,
+ GdkEvent *dst)
{
GdkEventPrivate *priv_src = (GdkEventPrivate *) src;
GdkEventPrivate *priv_dst = (GdkEventPrivate *) dst;
@@ -1452,7 +1453,8 @@ _gdk_windowing_event_data_copy (const GdkEvent *src,
}
void
-_gdk_windowing_event_data_free (GdkEvent *event)
+_gdk_quartz_display_event_data_free (GdkDisplay *display,
+ GdkEvent *event)
{
GdkEventPrivate *priv = (GdkEventPrivate *) event;
diff --git a/gdk/quartz/gdkprivate-quartz.h b/gdk/quartz/gdkprivate-quartz.h
index 775036f..ea5b959 100644
--- a/gdk/quartz/gdkprivate-quartz.h
+++ b/gdk/quartz/gdkprivate-quartz.h
@@ -175,6 +175,11 @@ void _gdk_quartz_display_before_process_all_updates (GdkDisplay *display);
void _gdk_quartz_display_after_process_all_updates (GdkDisplay *display);
void _gdk_quartz_display_notify_startup_complete (GdkDisplay *display,
const gchar *id);
+void _gdk_quartz_display_event_data_copy (GdkDisplay *display,
+ const GdkEvent *src,
+ GdkEvent *dst);
+void _gdk_quartz_display_event_data_free (GdkDisplay *display,
+ GdkEvent *event);
GdkDisplay * _gdk_quartz_display_open (const gchar *name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]