forked from AuroraMiddleware/gtk
window: Use TRUE/FALSE for boolean values
This commit is contained in:
parent
2c1d218749
commit
9b98641ddd
@ -4847,15 +4847,11 @@ surface_state_changed (GtkWidget *widget)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (changed_mask & GDK_SURFACE_STATE_FULLSCREEN)
|
if (changed_mask & GDK_SURFACE_STATE_FULLSCREEN)
|
||||||
{
|
priv->fullscreen = (new_surface_state & GDK_SURFACE_STATE_FULLSCREEN) ? TRUE : FALSE;
|
||||||
priv->fullscreen =
|
|
||||||
(new_surface_state & GDK_SURFACE_STATE_FULLSCREEN) ? 1 : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (changed_mask & GDK_SURFACE_STATE_MAXIMIZED)
|
if (changed_mask & GDK_SURFACE_STATE_MAXIMIZED)
|
||||||
{
|
{
|
||||||
priv->maximized =
|
priv->maximized = (new_surface_state & GDK_SURFACE_STATE_MAXIMIZED) ? TRUE : FALSE;
|
||||||
(new_surface_state & GDK_SURFACE_STATE_MAXIMIZED) ? 1 : 0;
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (widget), window_props[PROP_IS_MAXIMIZED]);
|
g_object_notify_by_pspec (G_OBJECT (widget), window_props[PROP_IS_MAXIMIZED]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user