Skip to content

Getting FileChooserNative.New to display #837

Answered by fsobolev
PlatinumLucario asked this question in Q&A
Discussion options

You must be logged in to vote

@PlatinumLucario There are 2 problems with your example:

  1. You added the action to application, not to the window, so the action name is app.openAccount, not win.openAccount. Either change the action name, or add it to the window instead of application. This will make keyboard shortcut work.
  2. Your button doesn't do anything. If you want it to activate the action, add _openAccountButton.SetActionName("app.openAccount"); (or win.openAccount if you connect it to the window).

I'm currently on Arch, and with fixes above your example runs successfully.

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@fsobolev
Comment options

@PlatinumLucario
Comment options

@PlatinumLucario
Comment options

@fsobolev
Comment options

Answer selected by PlatinumLucario
@PlatinumLucario
Comment options

@PlatinumLucario
Comment options

@cameronwhite
Comment options

@PlatinumLucario
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants