Commit 50fdb4d7 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

Change the window parameter for

Tue Sep 24 05:26:31 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
        gdk/x11/gdkevents-x11.c  gdk/win32/gdkevents-win32.c:
        Change the window parameter for
        gdk_event_send_client_message[_for_display] from guint32
        to GdkNativeWindow. (#79979)
parent 3ed3faca
Tue Sep 24 05:26:31 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
Change the window parameter for
gdk_event_send_client_message[_for_display] from guint32
to GdkNativeWindow. (#79979)
Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com> Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk+.spec.in: Fix up a bit to look for the loaders * gtk+.spec.in: Fix up a bit to look for the loaders
......
Tue Sep 24 05:26:31 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
Change the window parameter for
gdk_event_send_client_message[_for_display] from guint32
to GdkNativeWindow. (#79979)
Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com> Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk+.spec.in: Fix up a bit to look for the loaders * gtk+.spec.in: Fix up a bit to look for the loaders
......
Tue Sep 24 05:26:31 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
Change the window parameter for
gdk_event_send_client_message[_for_display] from guint32
to GdkNativeWindow. (#79979)
Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com> Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk+.spec.in: Fix up a bit to look for the loaders * gtk+.spec.in: Fix up a bit to look for the loaders
......
Tue Sep 24 05:26:31 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
Change the window parameter for
gdk_event_send_client_message[_for_display] from guint32
to GdkNativeWindow. (#79979)
Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com> Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk+.spec.in: Fix up a bit to look for the loaders * gtk+.spec.in: Fix up a bit to look for the loaders
......
Tue Sep 24 05:26:31 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
Change the window parameter for
gdk_event_send_client_message[_for_display] from guint32
to GdkNativeWindow. (#79979)
Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com> Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk+.spec.in: Fix up a bit to look for the loaders * gtk+.spec.in: Fix up a bit to look for the loaders
......
Tue Sep 24 05:26:31 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkdisplay.c gdk/linux-fb/gdkevents-fb.c
gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
Change the window parameter for
gdk_event_send_client_message[_for_display] from guint32
to GdkNativeWindow. (#79979)
Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com> Tue Sep 24 05:16:25 2002 Owen Taylor <otaylor@redhat.com>
* gtk+.spec.in: Fix up a bit to look for the loaders * gtk+.spec.in: Fix up a bit to look for the loaders
......
...@@ -153,13 +153,13 @@ gint gdk_mbstowcs (GdkWChar *dest, ...@@ -153,13 +153,13 @@ gint gdk_mbstowcs (GdkWChar *dest,
/* Miscellaneous */ /* Miscellaneous */
#ifndef GDK_MULTIHEAD_SAFE #ifndef GDK_MULTIHEAD_SAFE
gboolean gdk_event_send_client_message (GdkEvent *event, gboolean gdk_event_send_client_message (GdkEvent *event,
guint32 xid); GdkNativeWindow winid);
void gdk_event_send_clientmessage_toall (GdkEvent *event); void gdk_event_send_clientmessage_toall (GdkEvent *event);
#endif #endif
gboolean gdk_event_send_client_message_for_display (GdkDisplay *display, gboolean gdk_event_send_client_message_for_display (GdkDisplay *display,
GdkEvent *event, GdkEvent *event,
guint32 xid); GdkNativeWindow winid);
/* Threading /* Threading
*/ */
......
...@@ -270,7 +270,7 @@ gdk_beep (void) ...@@ -270,7 +270,7 @@ gdk_beep (void)
/** /**
* gdk_event_send_client_message: * gdk_event_send_client_message:
* @event: the #GdkEvent to send, which should be a #GdkEventClient. * @event: the #GdkEvent to send, which should be a #GdkEventClient.
* @xid: the window to send the X ClientMessage event to. * @winid: the window to send the X ClientMessage event to.
* *
* Sends an X ClientMessage event to a given window (which must be * Sends an X ClientMessage event to a given window (which must be
* on the default #GdkDisplay.) * on the default #GdkDisplay.)
...@@ -280,12 +280,13 @@ gdk_beep (void) ...@@ -280,12 +280,13 @@ gdk_beep (void)
* Return value: non-zero on success. * Return value: non-zero on success.
**/ **/
gboolean gboolean
gdk_event_send_client_message (GdkEvent *event, guint32 xid) gdk_event_send_client_message (GdkEvent *event,
GdkNativeWindow winid)
{ {
g_return_val_if_fail (event != NULL, FALSE); g_return_val_if_fail (event != NULL, FALSE);
return gdk_event_send_client_message_for_display (gdk_display_get_default (), return gdk_event_send_client_message_for_display (gdk_display_get_default (),
event, xid); event, winid);
} }
/** /**
......
...@@ -200,9 +200,9 @@ gdk_flush (void) ...@@ -200,9 +200,9 @@ gdk_flush (void)
} }
gboolean gboolean
gdk_event_send_client_message_for_display (GdkDisplay *display, gdk_event_send_client_message_for_display (GdkDisplay *display,
GdkEvent *event, GdkEvent *event,
guint32 xid) GdkNativeWindow winid)
{ {
return FALSE; return FALSE;
} }
......
...@@ -3519,9 +3519,9 @@ gdk_event_dispatch (GSource *source, ...@@ -3519,9 +3519,9 @@ gdk_event_dispatch (GSource *source,
/* Sends a ClientMessage to all toplevel client windows */ /* Sends a ClientMessage to all toplevel client windows */
gboolean gboolean
gdk_event_send_client_message_for_display (GdkDisplay *display, gdk_event_send_client_message_for_display (GdkDisplay *display,
GdkEvent *event, GdkEvent *event,
guint32 xid) GdkNativeWindow winid)
{ {
/* XXX */ /* XXX */
return FALSE; return FALSE;
......
...@@ -1837,7 +1837,7 @@ gdk_event_dispatch (GSource *source, ...@@ -1837,7 +1837,7 @@ gdk_event_dispatch (GSource *source,
* gdk_event_send_client_message_for_display : * gdk_event_send_client_message_for_display :
* @display : the #GdkDisplay for the window where the message is to be sent. * @display : the #GdkDisplay for the window where the message is to be sent.
* @event : the #GdkEvent to send, which should be a #GdkEventClient. * @event : the #GdkEvent to send, which should be a #GdkEventClient.
* @xid : the X window to send the X ClientMessage event to. * @winid : the window to send the X ClientMessage event to.
* *
* Sends an X ClientMessage event to a given window. * Sends an X ClientMessage event to a given window.
* *
...@@ -1847,9 +1847,9 @@ gdk_event_dispatch (GSource *source, ...@@ -1847,9 +1847,9 @@ gdk_event_dispatch (GSource *source,
* Returns : non-zero on success. * Returns : non-zero on success.
*/ */
gboolean gboolean
gdk_event_send_client_message_for_display (GdkDisplay *display, gdk_event_send_client_message_for_display (GdkDisplay *display,
GdkEvent *event, GdkEvent *event,
guint32 xid) GdkNativeWindow winid)
{ {
XEvent sev; XEvent sev;
...@@ -1859,11 +1859,11 @@ gdk_event_send_client_message_for_display (GdkDisplay *display, ...@@ -1859,11 +1859,11 @@ gdk_event_send_client_message_for_display (GdkDisplay *display,
sev.xclient.type = ClientMessage; sev.xclient.type = ClientMessage;
sev.xclient.display = GDK_DISPLAY_XDISPLAY (display); sev.xclient.display = GDK_DISPLAY_XDISPLAY (display);
sev.xclient.format = event->client.data_format; sev.xclient.format = event->client.data_format;
sev.xclient.window = xid; sev.xclient.window = winid;
memcpy(&sev.xclient.data, &event->client.data, sizeof (sev.xclient.data)); memcpy(&sev.xclient.data, &event->client.data, sizeof (sev.xclient.data));
sev.xclient.message_type = gdk_x11_atom_to_xatom_for_display (display, event->client.message_type); sev.xclient.message_type = gdk_x11_atom_to_xatom_for_display (display, event->client.message_type);
return _gdk_send_xevent (display, xid, False, NoEventMask, &sev); return _gdk_send_xevent (display, winid, False, NoEventMask, &sev);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment