[pygtk] gio.Mount.get_default_location()
Leon Bogaert
leon at tim-online.nl
Tue May 31 06:37:53 WST 2011
Thanks for the help. I think I fail to understand.
I was under the impression I could do something like Gio.MountMountFlags.MOUNT_MOUNT_NONE (or something). But that doesn't work.
This does:
In [32]: Gio.MountMountFlags(0)
Out[32]: <enum G_MOUNT_MOUNT_NONE of type GMountMountFlags>
But that doesn't see logical to me. Using something as Gio.MountMountFlags.MOUNT_MOUNT_NONE makes it easy to spot what's going on there but just passing a 0 as argument doesn't make things clearer.
Is using Gio.MountMountFlags(0) the way to go?
Regards,
Leon
________________________________________
From: pygtk-bounces at daa.com.au [pygtk-bounces at daa.com.au] on behalf of Johannes Sasongko [sasongko at gmail.com]
Sent: Monday, May 30, 2011 11:36
To: pygtk at daa.com.au
Subject: Re: [pygtk] gio.Mount.get_default_location()
> Do you perhaps also know where I can get those mounting flags? I've looked at Gio.MountMountFlags but they don't contain anything.
This is probably a gtk-doc bug -- there are two instances of <a
name="GMountMountFlags"> in the page. Search for "enum
GMountMountFlags" and you'll find the right one.
Which, amusingly enough, is just
typedef enum {
G_MOUNT_MOUNT_NONE = 0
} GMountMountFlags;
--
Johannes
_______________________________________________
pygtk mailing list pygtk at daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/
More information about the pygtk
mailing list