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
This commit is contained in:
Matthias Clasen 2015-02-01 17:30:10 -05:00
parent 4a531ec6ab
commit 31d3be96e4

View File

@ -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;
}
/**