Build fails:
testpixbuf.c: In function ‘progressive_updated_callback’:
testpixbuf.c:494:45: error: passing argument 1 of ‘gtk_object_get_data’ from incompatible poin
ter type [-Wincompatible-pointer-types]
494 | drawing_area = gtk_object_get_data (*window_loc, "drawing_area");
| ^~~~~~~~~~~
| |
| GtkWidget * {aka struct _GtkWidget *}
In file included from /usr/include/gtk-1.2/gtk/gtkaccelgroup.h:35,
from /usr/include/gtk-1.2/gtk/gtk.h:32,
from testpixbuf.c:25:
/usr/include/gtk-1.2/gtk/gtkobject.h:300:55: note: expected ‘GtkObject *’ {aka ‘struct _GtkObj
ect *’} but argument is of type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’}
300 | gpointer gtk_object_get_data (GtkObject *object,
| ~~~~~~~~~~~~~~~~^~~~~~
testpixbuf-scale.c: In function ‘main’:
testpixbuf-scale.c:70:17: error: implicit declaration of function ‘exit’ [-Wimplicit-function-
declaration]
70 | exit (1);
| ^~~~
Pinned Comments
bidulock commented on 2020-06-30 03:49 (UTC)
Note: this is NOT gdk2-pixbuf, it is gdk-pixbuf.