How to pass ListStore to functions in a GTK4 application?

,

Hello!

I am trying to create an application using C and GTK4, but I am a little lost here. I have defined a menu item “Open file…” which a user can use to retrieve a file and then the application should parse the file, line-by-line, into a ListStore so it could be shown in an GtkColumnView. I don’t know how or what is even the correct way to pass my ListStore for “open_file_complete” function so the contents could be added to that ListStore. Can someone help me out?
https://jpst.it/42b0C

You can build it using (name the paste as “example.c”):

gcc -Wall $(pkg-config --cflags gtk4) -o "example" "example.c" $(pkg-config --libs gtk4)

And another thing, if you see errors or mistakes in my code, please tell me about those so I could fix them and learn something in the process :slight_smile:

Thanks in advance!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.