From df0b4d668464b05b2be5c671195a0568d846589f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 2 Feb 2018 14:58:12 +0100 Subject: [PATCH] texture: Make the texture id a guint Texture IDs are unsigned, so treat them like that. --- gdk/gdktexture.c | 6 +++--- gdk/gdktexture.h | 2 +- gdk/gdktextureprivate.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gdk/gdktexture.c b/gdk/gdktexture.c index aefb82c677..69721caa78 100644 --- a/gdk/gdktexture.c +++ b/gdk/gdktexture.c @@ -441,7 +441,7 @@ struct _GdkGLTexture { GdkTexture parent_instance; GdkGLContext *context; - int id; + guint id; cairo_surface_t *saved; @@ -535,7 +535,7 @@ gdk_gl_texture_get_context (GdkGLTexture *self) return self->context; } -int +guint gdk_gl_texture_get_id (GdkGLTexture *self) { return self->id; @@ -711,7 +711,7 @@ gdk_texture_new_from_file (GFile *file, **/ GdkTexture * gdk_texture_new_for_gl (GdkGLContext *context, - int id, + guint id, int width, int height, GDestroyNotify destroy, diff --git a/gdk/gdktexture.h b/gdk/gdktexture.h index ae7ac812f2..c35820c7b5 100644 --- a/gdk/gdktexture.h +++ b/gdk/gdktexture.h @@ -58,7 +58,7 @@ GdkTexture * gdk_texture_new_from_file (GFile GDK_AVAILABLE_IN_3_94 GdkTexture * gdk_texture_new_for_gl (GdkGLContext *context, - int id, + guint id, int width, int height, GDestroyNotify destroy, diff --git a/gdk/gdktextureprivate.h b/gdk/gdktextureprivate.h index 6aa96d16c3..c6cab7801d 100644 --- a/gdk/gdktextureprivate.h +++ b/gdk/gdktextureprivate.h @@ -49,7 +49,7 @@ gpointer gdk_texture_get_render_data (GdkTexture G_DECLARE_FINAL_TYPE (GdkGLTexture, gdk_gl_texture, GDK, GL_TEXTURE, GdkTexture) GdkGLContext * gdk_gl_texture_get_context (GdkGLTexture *self); -int gdk_gl_texture_get_id (GdkGLTexture *self); +guint gdk_gl_texture_get_id (GdkGLTexture *self); G_END_DECLS