[gtk/gamma-shenanigans: 3/3] testtexture: Use gdk_texture_new_from_png




commit d1df437c2dabc28dd65baddb8b38ed404598fe90
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Sep 5 20:15:15 2021 -0400

    testtexture: Use gdk_texture_new_from_png
    
    Just to show that the new api works.

 tests/testtexture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testtexture.c b/tests/testtexture.c
index 78c5464949..439f54a772 100644
--- a/tests/testtexture.c
+++ b/tests/testtexture.c
@@ -130,7 +130,7 @@ main (int argc, char **argv)
     }
 
   file = g_file_new_for_path (argv[1]);
-  texture = gdk_texture_new_from_file (file, &error);
+  texture = gdk_texture_new_from_png (file, &error);
 
   if (error != NULL)
     {


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