[gtk+] Add a missing include
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Add a missing include
- Date: Sat, 28 Nov 2009 02:01:30 +0000 (UTC)
commit 36ca3fd5e9106a241e833942f96549af21554580
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 27 18:44:31 2009 -0500
Add a missing include
memset() is used in gdk/x11/gdkinput-xfree.c but string.h is not included.
Patch by Vincent Untz, bug 597026.
gdk/x11/gdkinput-xfree.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkinput-xfree.c b/gdk/x11/gdkinput-xfree.c
index d0f217c..bf63959 100644
--- a/gdk/x11/gdkinput-xfree.c
+++ b/gdk/x11/gdkinput-xfree.c
@@ -18,6 +18,7 @@
*/
#include "config.h"
+#include <string.h>
#include "gdkinputprivate.h"
#include "gdkdisplay-x11.h"
#include "gdkalias.h"
@@ -372,7 +373,7 @@ _gdk_input_grab_pointer (GdkWindow *window,
((gdkdev->button_count != 0) || need_ungrab))
{
XUngrabDevice (display_impl->xdisplay, gdkdev->xdevice, time);
- memset(gdkdev->button_state, 0, sizeof (gdkdev->button_state));
+ memset (gdkdev->button_state, 0, sizeof (gdkdev->button_state));
gdkdev->button_count = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]