quartz: Make GdkQuartzDisplay compile

This commit is contained in:
Kristian Rietveld 2010-12-22 14:13:41 +01:00
parent 709b4d4346
commit b2844cb48b
4 changed files with 26 additions and 20 deletions

View File

@ -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_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;

View File

@ -67,10 +67,10 @@ gdk_quartz_drag_context_drag_motion (GdkDragContext *context,
}
GdkNativeWindow
_gdk_quartz_display_get_drag_get_protocol (GdkDisplay *display,
GdkNativeWindow *xid,
_gdk_quartz_display_get_drag_protocol (GdkDisplay *display,
GdkNativeWindow xid,
GdkDragProtocol *protocol,
guint version)
guint *version)
{
/* FIXME: Implement */
return 0;

View File

@ -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,

View File

@ -23,6 +23,8 @@
G_BEGIN_DECLS
#include <gdk/gdkscreenprivate.h>
typedef struct _GdkScreenQuartz GdkScreenQuartz;
typedef struct _GdkScreenQuartzClass GdkScreenQuartzClass;