-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Add workbench.build experimental API #690
Conversation
@@ -80,6 +81,10 @@ export default function Internal({ | |||
dropdown_preview_align.selected = 0; | |||
preview(object); | |||
}, | |||
build(params) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should do this instead
build(params) { | |
build(interface, params) { |
and use it like so:
build(params) { | |
workbench.build(workbench.interface, params); |
It's a bit repetitive, but it's closer to whatever "standard" API we will get.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, what would workbench.interface
resolve to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An XML string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, for the primary demo interface?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the code in the UI
panel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I expect with more use there will be some changes desired, but I like this overall.
Fixes #667
Makes Workbench support signal handlers and closures for Gtk interface.
It uses https://github.com/sonnyp/troll#build