Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portage from GTK3 to GTK4 #113

Open
LouKev opened this issue Oct 23, 2024 · 2 comments
Open

Portage from GTK3 to GTK4 #113

LouKev opened this issue Oct 23, 2024 · 2 comments

Comments

@LouKev
Copy link

LouKev commented Oct 23, 2024

Hi, I'm currently using this library in a GTK3 project. It work well. But the project is transitioning to GTK4 and it cause interference with the GTK3 needed by NFD. I think I already know the answer but I still ask, is there a portage to GTK4 in the pipe ? If no, is it a big deal ? I've never did this, would it cost my soul to try to do it myself ?

@btzy
Copy link

btzy commented Oct 25, 2024

I have some half-attempted code for this from more than three years ago (btzy/nativefiledialog-extended#38), but it was abandoned because it was quite non-trivial, GTK4 made it more difficult to just get the file name because it deals with non-local files, and most users of such cross-platform file dialog libraries do not already use some version of GTK.

Why can't you directly use the file dialog API provided by GTK4 if you're already using GTK4? The API is Gtk.FileChooserNative (though it seems deprecated and I'm not sure if the replacement also opens a native dialog).

@LouKev
Copy link
Author

LouKev commented Oct 28, 2024

@btzy Thanks for your answer, you are right I should implement the GTK4 functions I need. But to be honest there is a lot of resources for GTK3 but not for GTK4...
Anyway if I in the end, use your project and improve it, I'll let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants