[gtk+/xi2: 951/1239] Fix some compiler warnings.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/xi2: 951/1239] Fix some compiler warnings.
- Date: Tue, 29 Sep 2009 10:54:27 +0000 (UTC)
commit e71befa6fb24d1829fdc853c4f135b363834af1c
Author: Carlos Garnacho <carlos gnome org>
Date: Mon Aug 31 02:47:56 2009 +0200
Fix some compiler warnings.
gdk/gdkdisplay.c | 3 +--
gdk/gdkwindow.c | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 849ec36..3aa5596 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1592,7 +1592,6 @@ gboolean
gdk_display_pointer_is_grabbed (GdkDisplay *display)
{
GdkDeviceManager *device_manager;
- GdkPointerGrabInfo *info;
GList *devices, *dev;
GdkDevice *device;
@@ -1605,7 +1604,7 @@ gdk_display_pointer_is_grabbed (GdkDisplay *display)
{
device = dev->data;
- if (device->source = GDK_SOURCE_MOUSE &&
+ if (device->source == GDK_SOURCE_MOUSE &&
gdk_display_device_is_grabbed (display, device))
return TRUE;
}
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 2f18cc8..55efeea 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9256,7 +9256,7 @@ gdk_pointer_grab (GdkWindow * window,
GdkDisplay *display;
GdkDeviceManager *device_manager;
GdkDevice *device;
- GdkGrabStatus res;
+ GdkGrabStatus res = 0;
gulong serial;
GList *devices, *dev;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]