]> uap-core.de Git - note.git/commitdiff
fix libadwaita build
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Sat, 5 Apr 2025 20:20:23 +0000 (22:20 +0200)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Sat, 5 Apr 2025 20:20:23 +0000 (22:20 +0200)
application/gtk-image.c
configure
make/project.xml

index 94cba3094773438dc10e2036aa99fc4340636f98..aea45da3b76738c0c27bf08fbeeb8e3076e1a17b 100644 (file)
@@ -32,7 +32,7 @@
 #if GTK_MAJOR_VERSION >= 4
 
 GtkWidget* embedded_image_create(GdkPixbuf *pix) {
-    GdkTexture *texture = gdk_texture_new_for_pixbuf(pixbuf);
+    GdkTexture *texture = gdk_texture_new_for_pixbuf(pix);
     GtkWidget *image = gtk_image_new_from_paintable(GDK_PAINTABLE(texture));
     
     int width = gdk_texture_get_width(texture);
index 3238d8cde7e1697d1faa8ed1b455abcc8915aed1..d08a3614ed15392d6d4b6e3b0a3a5ae8f7878ebd 100755 (executable)
--- a/configure
+++ b/configure
@@ -948,6 +948,7 @@ checkopt_toolkit_libadwaita()
 TOOLKIT = gtk
 GTKOBJ = draw_cairo.o
 APP_PLATFORM_SRC = gtk-text.c
+APP_PLATFORM_SRC += gtk-image.c
 __EOF__
     return 0
 }
index 0efbc908331db322711c082eeefab47b30ff02f1..47a61f1b8dbe0d98b559ebc4778bc71e394124da 100644 (file)
                                <make>TOOLKIT = gtk</make>
                                <make>GTKOBJ = draw_cairo.o</make>
                                <make>APP_PLATFORM_SRC = gtk-text.c</make>
+                               <make>APP_PLATFORM_SRC += gtk-image.c</make>
                        </value>
                        <value str="gtk4">
                                <dependencies>gtk4,webkitgtk6</dependencies>