[gtk/wip/baedert/for-master: 28/32] GdkTexture: Make get_width/get_height pure



commit 53fa80753f38cdf5535b754d69c81d9bfa35c343
Author: Timm Bäder <mail baedert org>
Date:   Fri Jan 24 15:18:42 2020 +0100

    GdkTexture: Make get_width/get_height pure

 gdk/gdktexture.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdktexture.h b/gdk/gdktexture.h
index f7d4fbf567..f3d0bc9765 100644
--- a/gdk/gdktexture.h
+++ b/gdk/gdktexture.h
@@ -51,9 +51,9 @@ GdkTexture *            gdk_texture_new_from_file              (GFile
                                                                 GError         **error);
 
 GDK_AVAILABLE_IN_ALL
-int                     gdk_texture_get_width                  (GdkTexture      *texture);
+int                     gdk_texture_get_width                  (GdkTexture      *texture) G_GNUC_PURE;
 GDK_AVAILABLE_IN_ALL
-int                     gdk_texture_get_height                 (GdkTexture      *texture);
+int                     gdk_texture_get_height                 (GdkTexture      *texture) G_GNUC_PURE;
 
 GDK_AVAILABLE_IN_ALL
 void                    gdk_texture_download                   (GdkTexture      *texture,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]