[gtk/gtk-3-24] Silence compiler type warnings about converting enums to gboolean.
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24] Silence compiler type warnings about converting enums to gboolean.
- Date: Thu, 29 Aug 2019 02:55:29 +0000 (UTC)
commit a12931b9f8ed944a4c2680b3e2b387e983fd98b0
Author: John Ralls <jralls ceridwen us>
Date: Fri Jul 26 15:29:03 2019 -0700
Silence compiler type warnings about converting enums to gboolean.
gdk/quartz/gdkwindow-quartz.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index e991ccdb2d..8a524d9da4 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2719,7 +2719,7 @@ window_is_fullscreen (GdkWindow *window)
return ([impl->toplevel styleMask] & GDK_QUARTZ_FULLSCREEN_WINDOW) != 0;
else
#endif
- return g_object_get_data (G_OBJECT (window), FULLSCREEN_DATA);
+ return g_object_get_data (G_OBJECT (window), FULLSCREEN_DATA) != NULL;
}
static void
@@ -2859,7 +2859,7 @@ _gdk_quartz_window_update_fullscreen_state (GdkWindow *window)
{
gboolean is_fullscreen = window_is_fullscreen (window);
gboolean was_fullscreen = (gdk_window_get_state (window) &&
- GDK_WINDOW_STATE_FULLSCREEN) != 0;
+ GDK_WINDOW_STATE_FULLSCREEN != 0);
if (is_fullscreen != was_fullscreen)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]