-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
python: Init GtkSource (+ minor formatting/style fixes) #736
Conversation
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.
We might need something similar for WebKitGTK / Soup
can't remember
# Load non-GTK widget types | ||
GtkSource.init() |
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.
we might want to do this in the demo code too
so that the code works when they copy paste it to their app
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.
Good idea. Also the reason why I decided to keep the "gi.requires_version" in there too. We may also want to update the JS demos to specify the versions on import then.
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.
We may also want to update the JS demos to specify the versions on import then.
I've been having an internal war on this - it's ... tricky.
reminder to talk about this : #738
I did not realize one needed to call
GtkSource.init()
from PyGObject. Currently PyGObject automatically inits the core namespaces, so I figured it did the same forGtkSource
(this is also what I remembered from other apps I worked on).Also contains one code style fix and one formatting fix for demos.
Closes #713.