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.li...@gmail.com]
Sent: Monday, May 30, 2011 00:28
To: Leon Bogaert
Cc: pygtk@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



_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to