Getting FileChooserNative.New to display #837
-
I have been attempting to get FileChooserNative.New to display a folder selection dialog, but oddly enough, the variable I specified ends up being skipped, without any errors. It works fine when I do something similar in C though. This was my earlier attempt:
Here's my latest attempt:
I have checked other projects to be absolutely sure that I'm not missing any functions, but everything seems identical. Is there any extra files required in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 13 replies
-
Which version of gtk are you using? And what exactly is going wrong? There is a bug in recent versions (>=4.10) which also doesn't show up for me in an equivalent C program. Denaro works around this by manually wrapping and using FileDialog on 4.10+ versions. |
Beta Was this translation helpful? Give feedback.
@PlatinumLucario There are 2 problems with your example:
app.openAccount
, notwin.openAccount
. Either change the action name, or add it to the window instead of application. This will make keyboard shortcut work._openAccountButton.SetActionName("app.openAccount");
(orwin.openAccount
if you connect it to the window).I'm currently on Arch, and with fixes above your example runs successfully.