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

2011-06-01 Thread Leon Bogaert
June 01, 2011 10:16 To: Timo; pygtk@daa.com.au Subject: RE: [pygtk] gio.Mount.get_default_location() That's really weird. I've reinstalled python-gobject and gir1.2-glib-2.0 but the problem persists and it also happens on my other pc. I also created a new user account locally because ma

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

2011-06-01 Thread Leon Bogaert
ent: Wednesday, June 01, 2011 09:13 To: pygtk@daa.com.au Subject: Re: [pygtk] gio.Mount.get_default_location() On 31-05-11 20:38, Leon Bogaert wrote: > Hi Avi, > > Good guess :) I'm running Ubuntu 11.04 Weird, I'm running 11.04 as well, and I have no problems. No idea why it w

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

2011-06-01 Thread Timo
May 31, 2011 19:26 To: Leon Bogaert Cc: John Stowers; pygtk@daa.com.au Subject: Re: [pygtk] gio.Mount.get_default_location() I can verify that John's instructions work on my system: Gio.MountMountFlags.NONE It looks like you are running Linux, if possible what distro? For instance, I am r

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

2011-05-31 Thread Leon Bogaert
pection there is 0.10.8-1 Regards, Leon From: Avi Levy [avi...@gmail.com] Sent: Tuesday, May 31, 2011 19:26 To: Leon Bogaert Cc: John Stowers; pygtk@daa.com.au Subject: Re: [pygtk] gio.Mount.get_default_location() I can verify that John's

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

2011-05-31 Thread Avi Levy
I can verify that John's instructions work on my system: >>> Gio.MountMountFlags.NONE It looks like you are running Linux, if possible what distro? For instance, I am running Ubuntu and the package containing gir bindings for gio is called gir1.0-glib-2.0 (0.9.3-0) the relevant file containing g

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

2011-05-31 Thread Leon Bogaert
Leon Bogaert Cc: Johannes Sasongko; pygtk@daa.com.au Subject: Re: [pygtk] gio.Mount.get_default_location() On Mon, 2011-05-30 at 22:37 +, Leon Bogaert wrote: > Thanks for the help. I think I fail to understand. Well experiment, try all the options... Gio.MountMountFlags.NONE --

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

2011-05-30 Thread John Stowers
On Mon, 2011-05-30 at 22:37 +, Leon Bogaert wrote: > Thanks for the help. I think I fail to understand. Well experiment, try all the options... Gio.MountMountFlags.NONE --> works hint: dir(Gio.MountMountFlags) ___ pygtk mailing list pygtk@daa.

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

2011-05-30 Thread Leon Bogaert
k-boun...@daa.com.au] on behalf of Johannes Sasongko [sason...@gmail.com] Sent: Monday, May 30, 2011 11:36 To: pygtk@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

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

2011-05-30 Thread Johannes Sasongko
> 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 in the page. Search for "enum GMountMountFlags" and you'll find the right one. Which, amusingly eno

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

2011-05-29 Thread Leon Bogaert
y 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 +, Leon Bogaert wrote: > Could somebody try this code on their machine? http://pastebin.com/Q3UqQrND You are reading the wrong docs. The pygobject docs w

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

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

2011-05-29 Thread Leon Bogaert
Bogaert Cc: pygtk@daa.com.au Subject: Re: [pygtk] gio.Mount.get_default_location() 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,

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

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

2011-05-27 Thread Leon Bogaert
: [pygtk] gio.Mount.get_default_location() Il giorno ven, 27/05/2011 alle 11.10 +, Leon Bogaert ha scritto: > Does anyone know how to get the default location of a gio mount? > Or maybe knows a place where I could better ask? Well, if you can affort to migrate to gi... from gi.repo

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

2011-05-27 Thread Pietro Battiston
print Gio.Mount.get_default_location bye Pietro > > Regards, > Leon > > > From: pygtk-boun...@daa.com.au [pygtk-boun...@daa.com.au] on behalf of Leon > Bogaert [l...@tim-online.nl] > Sent: Wednesday, April 20, 2011 01:11 > To: p

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

2011-05-27 Thread Leon Bogaert
, April 20, 2011 01:11 To: pygtk@daa.com.au Subject: [pygtk] gio.Mount.get_default_location() Hi all, I'm trying to put something together with python and gio. I'm trying to get the default location for a mount (home directory for example). The c api has a g_mount_get_default_location() func

[pygtk] gio.Mount.get_default_location()

2011-04-19 Thread Leon Bogaert
Hi all, I'm trying to put something together with python and gio. I'm trying to get the default location for a mount (home directory for example). The c api has a g_mount_get_default_location() function: http://developer.gnome.org/gio/2.26/GMount.html#g-mount-get-default-location But the python a