summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-05-17 14:06:07 +0200
committerTimm Bäder <mail@baedert.org>2020-05-17 15:30:03 +0200
commit9b98641ddd475c0926a64601e26deb66083e0c7f (patch)
treef70284f5b890a8ebd03e5284ff56c66e33ced96a /gtk/gtkwindow.c
parent2c1d218749e5bbf077bf65396e5e4113151cb845 (diff)
downloadgtk+-9b98641ddd475c0926a64601e26deb66083e0c7f.tar.gz
window: Use TRUE/FALSE for boolean values
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index ddfb38792f..4af5afabae 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4847,15 +4847,11 @@ surface_state_changed (GtkWidget *widget)
}
if (changed_mask & GDK_SURFACE_STATE_FULLSCREEN)
- {
- priv->fullscreen =
- (new_surface_state & GDK_SURFACE_STATE_FULLSCREEN) ? 1 : 0;
- }
+ priv->fullscreen = (new_surface_state & GDK_SURFACE_STATE_FULLSCREEN) ? TRUE : FALSE;
if (changed_mask & GDK_SURFACE_STATE_MAXIMIZED)
{
- priv->maximized =
- (new_surface_state & GDK_SURFACE_STATE_MAXIMIZED) ? 1 : 0;
+ priv->maximized = (new_surface_state & GDK_SURFACE_STATE_MAXIMIZED) ? TRUE : FALSE;
g_object_notify_by_pspec (G_OBJECT (widget), window_props[PROP_IS_MAXIMIZED]);
}