[gtk+] Be safe against stray booleans
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Be safe against stray booleans
- Date: Sun, 1 Feb 2015 22:32:26 +0000 (UTC)
commit 31d3be96e4168f886293bae52ad1cee56b043881
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Feb 1 17:30:10 2015 -0500
Be safe against stray booleans
Since gboolean is a typedef for int, the compiler won't complain
about gdk_window_set_event_compression (w, 2). So, make it work.
https://bugzilla.gnome.org/show_bug.cgi?id=742566
gdk/gdkwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 974c432..3103367 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9947,7 +9947,7 @@ gdk_window_set_event_compression (GdkWindow *window,
{
g_return_if_fail (GDK_IS_WINDOW (window));
- window->event_compression = event_compression;
+ window->event_compression = !!event_compression;
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]