Closed zedth2 closed 2 years ago
I'm pretty sure you need to call Gtk's init function before you can access the screen (since Gio and Gtk both provide init, make sure to prefix it with e.g gtk:
so that it is bound to gtk:init!
). You might even need to run icon-theme:get-default
in an application's activation hook after having created a window, though I'm not too sure about that one.
Yeah I think I missed that.
When I try to run
icon-theme:get-default
I get an error message.I'm not really sure the what GDK_IS_SCREEN is. I'm also not really sure how to pass a pointer in Guile. I tried using the
(use-modules (system foreign))
to pass a pointer that didn't really work either. Pass an already built GtkIconTheme resulted in the following.Which just makes me think I'm just not doing it right.
Someone please let me know the right way to use that function. I haven't dug into the C code which I might do now to see if I can't figure it out. Unfortunately I greping hasn't shown me where the function is defined so I'm assuming there's a lot of abstraction going on so I'm guessing this is gonna take me a while.