Re: [pygtk] gio.Mount.get_default_location()

2011-05-29 Thread Leon Bogaert
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

Re: [pygtk] gio.Mount.get_default_location()

2011-05-29 Thread John Stowers
On Sun, 2011-05-29 at 20:49 +, 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 (a

Re: [pygtk] gio.Mount.get_default_location()

2011-05-29 Thread Leon Bogaert
Could somebody try this code on their machine? http://pastebin.com/Q3UqQrND From: Leon Bogaert Sent: Sunday, May 29, 2011 20:14 To: Avi Levy Cc: pygtk@daa.com.au Subject: RE: [pygtk] gio.Mount.get_default_location() Sorry, the type is not in the actual code

Re: [pygtk] gio.Mount.get_default_location()

2011-05-29 Thread Leon Bogaert
Sorry, the type is not in the actual code. So even without the type the error persists :) Even if I replace the callback by 'None' the error occurs. Regards, Leon From: Avi Levy [avi...@gmail.com] Sent: Sunday, May 29, 2011 20:03 To: Leon Bogaert Cc: pyg

Re: [pygtk] gio.Mount.get_default_location()

2011-05-29 Thread Avi Levy
In the code you typed, there is a typo right? You pass "callbackz" to mount_enclosing_volume but you defined only the function "callback" Does the issue persist after fixing this? On Sun, May 29, 2011 at 10:43 AM, Leon Bogaert wrote: > I'm migrating my gio code from the static binding to gi. >

Re: [pygtk] gio.Mount.get_default_location()

2011-05-29 Thread Leon Bogaert
I'm migrating my gio code from the static binding to gi. But I have a problem with a callback. For example: def callback(): pass location = Gio.file_new_for_uri('ssh://kees@concepts') mo = Gtk.MountOperation() location.mount_enclosing_volume(mo, callbackz) When you run that I get: Tracebac