[gtk+] x11: Use Window isntead of GdkNativeWindow
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Use Window isntead of GdkNativeWindow
- Date: Tue, 1 Feb 2011 17:52:52 +0000 (UTC)
commit 7b5ad65e714c6b42ae79b0f4e2cdcbc2d6a599f2
Author: Benjamin Otte <otte redhat com>
Date: Tue Feb 1 18:29:20 2011 +0100
x11: Use Window isntead of GdkNativeWindow
gdk/x11/gdkdnd-x11.c | 14 +++++++-------
gdk/x11/gdkprivate-x11.h | 8 ++++----
2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gdk/x11/gdkdnd-x11.c b/gdk/x11/gdkdnd-x11.c
index 665941a..fe9892a 100644
--- a/gdk/x11/gdkdnd-x11.c
+++ b/gdk/x11/gdkdnd-x11.c
@@ -3193,15 +3193,15 @@ _gdk_x11_window_drag_begin (GdkWindow *window,
return context;
}
-GdkNativeWindow
+Window
_gdk_x11_display_get_drag_protocol (GdkDisplay *display,
- GdkNativeWindow xid,
+ Window xid,
GdkDragProtocol *protocol,
guint *version)
{
GdkWindow *window;
- GdkNativeWindow retval;
+ Window retval;
base_precache_atoms (display);
@@ -3214,10 +3214,10 @@ _gdk_x11_display_get_drag_protocol (GdkDisplay *display,
*protocol = GDK_DRAG_PROTO_XDND;
*version = 5;
xdnd_precache_atoms (display);
- GDK_NOTE (DND, g_message ("Entering local Xdnd window %#x\n", xid));
+ GDK_NOTE (DND, g_message ("Entering local Xdnd window %#x\n", (guint) xid));
return xid;
}
- else if (_gdk_x11_display_is_root_window (display, (Window) xid))
+ else if (_gdk_x11_display_is_root_window (display, xid))
{
*protocol = GDK_DRAG_PROTO_ROOTWIN;
GDK_NOTE (DND, g_message ("Entering root window\n"));
@@ -3228,13 +3228,13 @@ _gdk_x11_display_get_drag_protocol (GdkDisplay *display,
{
*protocol = GDK_DRAG_PROTO_XDND;
xdnd_precache_atoms (display);
- GDK_NOTE (DND, g_message ("Entering Xdnd window %#x\n", xid));
+ GDK_NOTE (DND, g_message ("Entering Xdnd window %#x\n", (guint) xid));
return retval;
}
else if ((retval = motif_check_dest (display, xid)))
{
*protocol = GDK_DRAG_PROTO_MOTIF;
- GDK_NOTE (DND, g_message ("Entering motif window %#x\n", xid));
+ GDK_NOTE (DND, g_message ("Entering motif window %#x\n", (guint) xid));
return retval;
}
else
diff --git a/gdk/x11/gdkprivate-x11.h b/gdk/x11/gdkprivate-x11.h
index bac0b13..322d586 100644
--- a/gdk/x11/gdkprivate-x11.h
+++ b/gdk/x11/gdkprivate-x11.h
@@ -183,10 +183,10 @@ void _gdk_x11_display_queue_events (GdkDisplay *display);
GdkAppLaunchContext *_gdk_x11_display_get_app_launch_context (GdkDisplay *display);
-GdkNativeWindow _gdk_x11_display_get_drag_protocol (GdkDisplay *display,
- GdkNativeWindow xid,
- GdkDragProtocol *protocol,
- guint *version);
+Window _gdk_x11_display_get_drag_protocol (GdkDisplay *display,
+ Window xid,
+ GdkDragProtocol *protocol,
+ guint *version);
gboolean _gdk_x11_display_set_selection_owner (GdkDisplay *display,
GdkWindow *owner,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]