summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2008-08-04 22:57:36 +0000
committerTor Lillqvist <tml@src.gnome.org>2008-08-04 22:57:36 +0000
commiteff4be5c8de9642fdd39e667e53ccca58b9070ef (patch)
treed91ab4b0c80d69b8cfb03231c5908af2a47639bf /gtk/gtkwindow.c
parentf4d9ce22f48d8b61d88a11aa9b5033f46db9aaaf (diff)
downloadgtk+-eff4be5c8de9642fdd39e667e53ccca58b9070ef.tar.gz
Bug 544684 - Win64 issue, window handles are assumed to be 32-bit
2008-08-05 Tor Lillqvist <tml@novell.com> Bug 544684 - Win64 issue, window handles are assumed to be 32-bit * gtk/gtkwindow.h * gtk/gtkwindow.c: Change the type of the xid parameter of the internal gtk_window_remove_embedded_xid() and gtk_window_add_embedded_xid() functions from guint to GdkNativeWindow. * gtk/gtkwindow.c (send_client_message_to_embedded_windows): Instead of GPOINTER_TO_UINT(), just cast the gpointer to GdkNativeWindow. GPOINTER_TO_UINT() drops the upper 32 bits on Win64. svn path=/trunk/; revision=20992
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index b1ffd959ca..c020354c25 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1936,7 +1936,7 @@ gtk_window_list_toplevels (void)
}
void
-gtk_window_add_embedded_xid (GtkWindow *window, guint xid)
+gtk_window_add_embedded_xid (GtkWindow *window, GdkNativeWindow xid)
{
GList *embedded_windows;
@@ -1955,7 +1955,7 @@ gtk_window_add_embedded_xid (GtkWindow *window, guint xid)
}
void
-gtk_window_remove_embedded_xid (GtkWindow *window, guint xid)
+gtk_window_remove_embedded_xid (GtkWindow *window, GdkNativeWindow xid)
{
GList *embedded_windows;
GList *node;
@@ -5140,7 +5140,7 @@ send_client_message_to_embedded_windows (GtkWidget *widget,
while (embedded_windows)
{
- guint xid = GPOINTER_TO_UINT (embedded_windows->data);
+ GdkNativeWindow xid = (GdkNativeWindow) embedded_windows->data;
gdk_event_send_client_message_for_display (gtk_widget_get_display (widget), send_event, xid);
embedded_windows = embedded_windows->next;
}