[gtk+] quartz: Make GdkQuartzDisplay compile



commit b2844cb48b1bcc1c57f1c4fa9b05a07858cb2bb7
Author: Kristian Rietveld <kris gtk org>
Date:   Wed Dec 22 14:13:41 2010 +0100

    quartz: Make GdkQuartzDisplay compile

 gdk/quartz/gdkdisplay-quartz.c |   25 ++++++++++++-------------
 gdk/quartz/gdkdnd-quartz.c     |    8 ++++----
 gdk/quartz/gdkprivate-quartz.h |   11 ++++++++---
 gdk/quartz/gdkscreen-quartz.h  |    2 ++
 4 files changed, 26 insertions(+), 20 deletions(-)
---
diff --git a/gdk/quartz/gdkdisplay-quartz.c b/gdk/quartz/gdkdisplay-quartz.c
index b66effa..de5bf16 100644
--- a/gdk/quartz/gdkdisplay-quartz.c
+++ b/gdk/quartz/gdkdisplay-quartz.c
@@ -21,12 +21,11 @@
 #include "config.h"
 
 #include "gdk.h"
-#include "gdkdisplay-quartz.h"
 #include "gdkprivate-quartz.h"
 #include "gdkscreen-quartz.h"
+#include "gdkdisplay-quartz.h"
 #include "gdkdevicemanager-core.h"
 
-
 static GdkWindow *
 gdk_quartz_display_get_default_group (GdkDisplay *display)
 {
@@ -188,37 +187,37 @@ _gdk_quartz_display_get_next_serial (GdkDisplay *display)
   return 0;
 }
 
-G_DEFINE_TYPE (GdkDisplayQuartz, _gdk_display_quartz, GDK_TYPE_DISPLAY)
+G_DEFINE_TYPE (GdkQuartzDisplay, _gdk_quartz_display, GDK_TYPE_DISPLAY)
 
 static void
-_gdk_display_quartz_init (GdkDisplayQuartz *display)
+_gdk_quartz_display_init (GdkQuartzDisplay *display)
 {
-  gdk_quartz_display_manager_add_display (gdk_display_nmanager_get (),
-                                       GDK_DISPLAY_OBJECT (display));
+  _gdk_quartz_display_manager_add_display (gdk_display_manager_get (),
+                                           GDK_DISPLAY_OBJECT (display));
 }
 
 static void
-_gdk_display_quartz_dispose (GObject *object)
+_gdk_quartz_display_dispose (GObject *object)
 {
   _gdk_quartz_display_manager_remove_display (gdk_display_manager_get (),
                                               GDK_DISPLAY_OBJECT (object));
 
-  G_OBJECT_CLASS (_gdk_display_quartz_parent_class)->dispose (object);
+  G_OBJECT_CLASS (_gdk_quartz_display_parent_class)->dispose (object);
 }
 
 static void
-_gdk_display_quartz_finalize (GObject *object)
+_gdk_quartz_display_finalize (GObject *object)
 {
-  G_OBJECT_CLASS (_gdk_display_quartz_parent_class)->finalize (object);
+  G_OBJECT_CLASS (_gdk_quartz_display_parent_class)->finalize (object);
 }
 
 static void
-_gdk_display_quartz_class_init (GdkDisplayQuartz *class)
+_gdk_quartz_display_class_init (GdkQuartzDisplayClass *class)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (class);
   GdkDisplayClass *display_class = GDK_DISPLAY_CLASS (class);
 
-  object_class->finalize = _gdk_display_quartz_finalize;
+  object_class->finalize = _gdk_quartz_display_finalize;
 
   display_class->get_name = gdk_quartz_display_get_name;
   display_class->get_n_screens = gdk_quartz_display_get_n_screens;
@@ -248,7 +247,7 @@ _gdk_display_quartz_class_init (GdkDisplayQuartz *class)
   display_class->get_maximal_cursor_size = _gdk_quartz_display_get_maximal_cursor_size;
   display_class->supports_cursor_alpha = _gdk_quartz_display_supports_cursor_alpha;
   display_class->supports_cursor_color = _gdk_quartz_display_supports_cursor_color;
-  display_class->get_next_serial = gdk_quartz_display_get_next_serial;
+  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/gdkdnd-quartz.c b/gdk/quartz/gdkdnd-quartz.c
index 54b6646..78ff19f 100644
--- a/gdk/quartz/gdkdnd-quartz.c
+++ b/gdk/quartz/gdkdnd-quartz.c
@@ -67,10 +67,10 @@ gdk_quartz_drag_context_drag_motion (GdkDragContext  *context,
 }
 
 GdkNativeWindow
-_gdk_quartz_display_get_drag_get_protocol (GdkDisplay      *display,
-                                           GdkNativeWindow *xid,
-                                           GdkDragProtocol *protocol,
-                                           guint            version)
+_gdk_quartz_display_get_drag_protocol (GdkDisplay      *display,
+                                       GdkNativeWindow  xid,
+                                       GdkDragProtocol *protocol,
+                                       guint           *version)
 {
   /* FIXME: Implement */
   return 0;
diff --git a/gdk/quartz/gdkprivate-quartz.h b/gdk/quartz/gdkprivate-quartz.h
index dbe651f..0a28b73 100644
--- a/gdk/quartz/gdkprivate-quartz.h
+++ b/gdk/quartz/gdkprivate-quartz.h
@@ -176,10 +176,10 @@ GdkKeymap * _gdk_quartz_display_get_keymap (GdkDisplay *display);
 
 GdkDisplay *    _gdk_quartz_display_open (const gchar *name);
 
-GdkNativeWindow _gdk_quartz_display_get_drag_get_protocol (GdkDisplay      *display,
-                                                           GdkNativeWindow *xid,
+GdkNativeWindow _gdk_quartz_display_get_drag_protocol     (GdkDisplay      *display,
+                                                           GdkNativeWindow  xid,
                                                            GdkDragProtocol *protocol,
-                                                           guint            version);
+                                                           guint           *version);
 
 
 gboolean    _gdk_quartz_display_send_client_message       (GdkDisplay      *display,
@@ -224,6 +224,11 @@ GdkAtom _gdk_quartz_display_manager_atom_intern   (GdkDisplayManager *manager,
 gchar * _gdk_quartz_display_manager_get_atom_name (GdkDisplayManager *manager,
                                                    GdkAtom            atom);
 
+void    _gdk_quartz_display_manager_add_display    (GdkDisplayManager *manager,
+                                                    GdkDisplay        *display);
+void    _gdk_quartz_display_manager_remove_display (GdkDisplayManager *manager,
+                                                    GdkDisplay        *display);
+
 void     _gdk_quartz_window_sync_rendering    (GdkWindow       *window);
 gboolean _gdk_quartz_window_simulate_key      (GdkWindow       *window,
                                                gint             x,
diff --git a/gdk/quartz/gdkscreen-quartz.h b/gdk/quartz/gdkscreen-quartz.h
index 4d211e3..d98939b 100644
--- a/gdk/quartz/gdkscreen-quartz.h
+++ b/gdk/quartz/gdkscreen-quartz.h
@@ -23,6 +23,8 @@
 
 G_BEGIN_DECLS
 
+#include <gdk/gdkscreenprivate.h>
+
 typedef struct _GdkScreenQuartz GdkScreenQuartz;
 typedef struct _GdkScreenQuartzClass GdkScreenQuartzClass;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]