Workbench icon indicating copy to clipboard operation
Workbench copied to clipboard

Document internal variables to use

Open lw64 opened this issue 3 years ago • 1 comments

For example workbench.window or workbench.builder.

If you don't have the source code of workbench, it is impossible to find out for example how to access the widgets from javascript to connect a signal to it.

lw64 avatar Mar 03 '22 18:03 lw64

Yup!

Might be a good idea to rework / come up with an API that doesn't break. Open to suggestions.

Should we have workbench.application? Not sure if it's helpful.

I think we should keep workbench.builder but perhaps workbench.builder.get_object("welcome").append; in the example is not super intuitive or portable – you probably wouldn't do that in apps ? Maybe we could do something like workbench.preview which points to the GtkScrolledWindow of Preview ?

sonnyp avatar Mar 03 '22 18:03 sonnyp