summaryrefslogtreecommitdiff
path: root/gtk/gtknative.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-09-10 15:28:31 +0200
committerTimm Bäder <mail@baedert.org>2019-09-11 08:12:31 +0200
commit32b84b8ab6e1506e8e47531d552d7f5900b30e26 (patch)
treee9f8544b48f1cbdb82dfe6a00d03d793a6a9cdb3 /gtk/gtknative.c
parent8ec1c866e166e1ac7a2774d2282add01ce7d5c4b (diff)
downloadgtk+-32b84b8ab6e1506e8e47531d552d7f5900b30e26.tar.gz
native: Don't compare a pointer with 0
We have NULL for that.
Diffstat (limited to 'gtk/gtknative.c')
-rw-r--r--gtk/gtknative.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtknative.c b/gtk/gtknative.c
index a14a0af864..6b079987ea 100644
--- a/gtk/gtknative.c
+++ b/gtk/gtknative.c
@@ -102,12 +102,12 @@ gtk_native_get_renderer (GtkNative *self)
void
gtk_native_get_surface_transform (GtkNative *self,
- int *x,
- int *y)
+ int *x,
+ int *y)
{
g_return_if_fail (GTK_IS_NATIVE (self));
- g_return_if_fail (x != 0);
- g_return_if_fail (y != 0);
+ g_return_if_fail (x != NULL);
+ g_return_if_fail (y != NULL);
return GTK_NATIVE_GET_IFACE (self)->get_surface_transform (self, x, y);
}