-
Notifications
You must be signed in to change notification settings - Fork 46
Description
Describe the bug
I was making a test program to evaluate the GtkColumnView implementation and found that the fortran interface to
gtk_column_view_new(selection) is incorrect
Expected behavior
In gtk-auto.in, should have the following. I think there are other instances where GtkSelectionModel has a c_int interface instead of c_ptr. I tried to find the logic in your python scripts to change it upstream, but I was unable to figure out how they worked well enough to quickly fix it.
! GDK_AVAILABLE_IN_ALL
!GtkWidget * gtk_column_view_new (GtkSelectionModel *model);
function gtk_column_view_new(model) bind(c)
import :: c_ptr, c_int
implicit none
type(c_ptr) :: gtk_column_view_new
!integer(c_int), value :: model this is the incorrect interface
type(c_ptr), value :: model
end function
To Reproduce
Steps to reproduce the behavior:
I have attached a sample program (I think), which is the gtkhello.f90 example with a columnview object grafted on.
If interested, you can run this by extracting to a folder and using meson to build.
mkdir build
cd build
meson setup ..
meson compile
`
It will not compile without making the change I specify above. After making the change, the object is successfully created and displays the information as expected.
Your system:
gtk-4-fortran version 4.7
Additional context
Add any other context about the problem here.