[pygtk] gio.Mount.get_default_location()

Leon Bogaert leon at tim-online.nl
Mon May 30 06:36:09 WST 2011


Thank you very much! Worked like a charm!
Do you perhaps also know where I can get those mounting flags? I've looked at Gio.MountMountFlags but they don't contain anything.

Leon

________________________________________
From: John Stowers [john.stowers.lists at gmail.com]
Sent: Monday, May 30, 2011 00:28
To: Leon Bogaert
Cc: pygtk at daa.com.au
Subject: Re: [pygtk] gio.Mount.get_default_location()

On Sun, 2011-05-29 at 20:49 +0000, Leon Bogaert wrote:
> Could somebody try this code on their machine? http://pastebin.com/Q3UqQrND

You are reading the wrong docs. The pygobject docs which bind gio are
for pre gobject-introspection times.

For gobject-introspection you must refer to the C docs (and
unfortunately guess how they map to python).

Yes I know this sucks.

The following works

http://developer.gnome.org/gio/stable/GFile.html#g-file-mount-enclosing-volume


location.mount_enclosing_volume(0, mo, None, callbackz, None)

John





More information about the pygtk mailing list