Can't get activate_uri signal working when making a lens
Posted
by
pub.david
on Ask Ubuntu
See other posts from Ask Ubuntu
or by pub.david
Published on 2011-11-13T14:29:31Z
Indexed on
2011/11/13
18:06 UTC
Read the original article
Hit count: 335
I'm trying to develop a lens for unity in ubuntu 11.10 and I can not get activate_uri signal working. This is an extract of my code:
def _on_activate_uri (self, scop, uri):
print "----> " + uri + "<-"
ret=Unity.ActivationResponse.new(Unity.HandledType.HIDE_DASH,'')
return ret
and this is what I get back:
TypeError: can't convert return value to desired type
../lens/appslens.py:230: Warning: g_object_get_qdata: assertion G_IS_OBJECT (object)' failed
GObject.MainLoop().run()
../lens/appslens.py:230: Warning: g_object_set_qdata_full: assertion
G_IS_OBJECT (object)' failed
GObject.MainLoop().run()
../lens/appslens.py:230: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed
GObject.MainLoop().run()
Does anyone has an idea where is my mistake ?
Thanks in advance for your help
© Ask Ubuntu or respective owner