After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 726484 - Setting Gio.Application().props.flags in Python does not work
Setting Gio.Application().props.flags in Python does not work
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: gobject
unspecified
Other Linux
: Normal minor
: GNOME 3.10
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-17 00:50 UTC by Alex Băluț
Modified: 2017-03-29 08:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
property: support setting flags (3.12 KB, patch)
2017-03-28 16:01 UTC, Christoph Reiter (lazka)
committed Details | Review

Description Alex Băluț 2014-03-17 00:50:51 UTC
from gi.repository import Gio
Gio.Application().props.flags = Gio.ApplicationFlags.HANDLES_OPEN

Notice it raises:
NotImplementedError: Setting properties of type 'GApplicationFlags' is not implemented
Comment 1 Simon Feltman 2014-03-17 00:53:57 UTC
Pretty sure this is a PyGObject bug. Also note calling "set_flags" works fine:

app.set_flags(Gio.ApplicationFlags.HANDLES_OPEN)
Comment 2 Christoph Reiter (lazka) 2017-03-28 16:01:44 UTC
Created attachment 348893 [details] [review]
property: support setting flags

This also adds some tests for setting flags and enum properties
which depend on some properties being added in g-i's gimarshallingtests:
    https://bugzilla.gnome.org/show_bug.cgi?id=780652