summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-07-05 21:41:59 +0200
committerBenjamin Otte <otte@redhat.com>2018-07-13 14:56:04 +0200
commit1a5e60be7c57bd3e9f93cdecd74c5dd80c1c02c7 (patch)
tree203d3a8160498d080b025fb179ca997870bce86a /gdk
parent3ce3867403baee81673e5a1ba05233be26d1bd2c (diff)
downloadgtk+-1a5e60be7c57bd3e9f93cdecd74c5dd80c1c02c7.tar.gz
paintable: Fix return_if_fail() statements
I always switch them up...
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkpaintable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkpaintable.c b/gdk/gdkpaintable.c
index 082ff9b5c0..5e3904e73c 100644
--- a/gdk/gdkpaintable.c
+++ b/gdk/gdkpaintable.c
@@ -643,8 +643,8 @@ gdk_paintable_new_empty (int intrinsic_width,
{
GdkEmptyPaintable *result;
- g_return_val_if_fail (intrinsic_width < 0, NULL);
- g_return_val_if_fail (intrinsic_height < 0, NULL);
+ g_return_val_if_fail (intrinsic_width >= 0, NULL);
+ g_return_val_if_fail (intrinsic_height >= 0, NULL);
result = g_object_new (GDK_TYPE_EMPTY_PAINTABLE, NULL);