summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-07-17 18:37:20 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-07-17 18:37:20 -0400
commitbb29c1fcc5398ae5cc236328ea7d5d6f0fdfb476 (patch)
treea12560afd3d98dee39d4016aab3d20894d2e2838 /gdk/gdkwindow.c
parent2b105dc3d925dc4ad16906afb532968ba6ff9750 (diff)
downloadgtk+-bb29c1fcc5398ae5cc236328ea7d5d6f0fdfb476.tar.gz
gdk: Add some parameter checking
This may help coverity recognize that we're not called with invalid combinations.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index af3d17a0d5..f6516e5130 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -9872,6 +9872,8 @@ gdk_window_set_geometry_hints (GdkWindow *window,
const GdkGeometry *geometry,
GdkWindowHints geom_mask)
{
+ g_return_if_fail (geometry != NULL || geom_mask == 0);
+
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->set_geometry_hints (window, geometry, geom_mask);
}