Skip to content

GtkDialog mapped without a transient parent. #50

Answered by can-lehmann
ITwrx asked this question in Q&A
Discussion options

You must be logged in to vote

From reading around, it seems gtk needs to be told what the Parent Window of the Dialog is, but i'm not sure if it needs it's immediate upstream viewable, or the actual top-level (and currently only) upstream Window, and i'm not sure how, or where, to specify either.

You are correct, GTK needs the "parent window" for the dialog. This means that you need to pass the toplevel viewable to the open function. This is actually pretty simple to do, since every viewable has the toplevel viewable stored in the Viewable.app field. Try using loanListView.app.open instead of loanListView.open.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ITwrx
Comment options

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