7650e80...
by
Giovanni Campagna <email address hidden>
Util: improve GtkBuilder loader
Accept an optional scope object that is exposed to GtkBuilder as 'scope'.
This allows to use <external-object> to have UI definitions that set
properties of JS derived classes.
Additionally, support connecting signals, using property names on the
scope object.
(XXX: the external-object thing is in the GTK docs, but I saw no code for it...)
af0f62d...
by
Giovanni Campagna <email address hidden>
Util: deal with resources, not path names
Now that we have resource support in package, it's reasonable to expect
that UI and style lives in resources, so we should optimize for that in Util.
3ea9937...
by
Giovanni Campagna <email address hidden>
Move resource loading to package
Resource loading is useful for all applications, so let's move there
so we can remember of it when package is moved into gjs.
d231612...
by
Giovanni Campagna <email address hidden>
Temporarily import package and params modules
This allows gnome-weather to run without the new gjs API.
Unfortunately, as a side effect you need to install the application
to try it, running gnome-weather from the source tree no longer works.
Cherry-picked to master because it is not clear if the new gjs
API will be ever merged upstream.
71660d1...
by
Paolo Borelli <email address hidden>
Add a "new" action to the app menu
This way it is possible to use ctrl+N to show the dialog. It also
refactors the code to move the "about" action to the window, so that
we do not need to proxy it manually.