GNOME Bugzilla – Bug 794733
Gtk.Border compile error (0.40.0 regression)
Last modified: 2018-03-28 09:39:11 UTC
Created attachment 370208 [details] source code that triggers the error When trying to compile the attached source code with valac 0.40.0 I get the following error message: test.vala.c: In function ‘_vala_main’: test.vala.c:24:14: warning: implicit declaration of function ‘gtk_border_init’; did you mean ‘gtk_border_new’? [-Wimplicit-function-declaration] (GtkBorder) gtk_border_init (&border); ^~~~~~~~~~~~~~~ gtk_border_new test.vala.c:24:2: error: conversion to non-scalar type requested (GtkBorder) gtk_border_init (&border); ^ error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s)
Created attachment 370210 [details] [review] gtk+-*.0: Hide dedicated constructor for GtkBorder which is bound as struct
Created attachment 370218 [details] [review] gtk+-*.0: Hide dedicated constructors of compact classes bound as structs
Attachment 370218 [details] pushed as 54be0bf - gtk+-*.0: Hide dedicated constructors of compact classes bound as structs
Thank you for fixing this so quickly. I wonder if the copy and free functions should be hidden as well. They were all introduced in commit a8e6aff63e5e1502290ba93398314acf2ad45b60.