gtk+ r21886 - in trunk: . gdk/x11



Author: matthiasc
Date: Sat Dec 13 08:05:11 2008
New Revision: 21886
URL: http://svn.gnome.org/viewvc/gtk+?rev=21886&view=rev

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




Modified:
   trunk/ChangeLog
   trunk/gdk/x11/gdktestutils-x11.c

Modified: trunk/gdk/x11/gdktestutils-x11.c
==============================================================================
--- trunk/gdk/x11/gdktestutils-x11.c	(original)
+++ trunk/gdk/x11/gdktestutils-x11.c	Sat Dec 13 08:05:11 2008
@@ -189,8 +189,11 @@
     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 @@
                                            &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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]