GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 856b37bb authored by Matthias Clasen's avatar Matthias Clasen

Remove a C99ism. Pointed out by Eric Lamarque

        * gdk/x11/gdktestutils-x11.c (gdk_test_simulate_button):
        Remove a C99ism. Pointed out by Eric Lamarque



svn path=/trunk/; revision=21886
parent 797f030c
2008-12-13 Matthias Clasen <mclasen@redhat.com>
Bug 558306 – Cannot build gdk (gtk+ 2.14.4) on Solaris 8
* gdk/x11/gdktestutils-x11.c (gdk_test_simulate_button):
Remove a C99ism. Pointed out by Eric Lamarque
2008-12-13 Matthias Clasen <mclasen@redhat.com>
Bug 549251 – GTK icon view accessible issue.
......
......@@ -189,8 +189,11 @@ gdk_test_simulate_button (GdkWindow *window,
0, /* serial */
1, /* send_event */
};
gboolean success;
g_return_val_if_fail (button_pressrelease == GDK_BUTTON_PRESS || button_pressrelease == GDK_BUTTON_RELEASE, FALSE);
g_return_val_if_fail (window != NULL, FALSE);
if (!GDK_WINDOW_IS_MAPPED (window))
return FALSE;
screen = gdk_colormap_get_screen (gdk_drawable_get_colormap (window));
......@@ -218,7 +221,7 @@ gdk_test_simulate_button (GdkWindow *window,
&xev.subwindow);
if (!xev.subwindow)
xev.subwindow = xev.window;
gboolean success = xev.same_screen;
success = xev.same_screen;
success &= 0 != XWarpPointer (xev.display, None, xev.window, 0, 0, 0, 0, xev.x, xev.y);
success &= 0 != XSendEvent (xev.display, xev.window, True, button_pressrelease == GDK_BUTTON_PRESS ? ButtonPressMask : ButtonReleaseMask, (XEvent*) &xev);
XSync (xev.display, False);
......
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