[gtk+] gdk: gdk_x11_device_xi2_get_state(): move stuff to local scope
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: gdk_x11_device_xi2_get_state(): move stuff to local scope
- Date: Sun, 27 Feb 2011 14:07:08 +0000 (UTC)
commit 8ee9e132e19aede0a0fd8c16ea038551451be527
Author: Michael Natterer <mitch gimp org>
Date: Sun Feb 27 15:06:41 2011 +0100
gdk: gdk_x11_device_xi2_get_state(): move stuff to local scope
gdk/x11/gdkdevice-xi2.c | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/gdk/x11/gdkdevice-xi2.c b/gdk/x11/gdkdevice-xi2.c
index b6c0255..96715df 100644
--- a/gdk/x11/gdkdevice-xi2.c
+++ b/gdk/x11/gdkdevice-xi2.c
@@ -183,16 +183,17 @@ gdk_x11_device_xi2_get_state (GdkDevice *device,
GdkModifierType *mask)
{
GdkX11DeviceXI2 *device_xi2 = GDK_X11_DEVICE_XI2 (device);
- GdkDisplay *display;
- XIDeviceInfo *info;
- gint i, j, ndevices;
-
- display = gdk_device_get_display (device);
if (axes)
{
- info = XIQueryDevice(GDK_DISPLAY_XDISPLAY (display),
- device_xi2->device_id, &ndevices);
+ GdkDisplay *display;
+ XIDeviceInfo *info;
+ gint i, j, ndevices;
+
+ display = gdk_device_get_display (device);
+
+ info = XIQueryDevice (GDK_DISPLAY_XDISPLAY (display),
+ device_xi2->device_id, &ndevices);
for (i = 0, j = 0; i < info->num_classes; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]