View Single Post
Posts: 25 | Thanked: 8 times | Joined on Feb 2008
#4
Well, I installed the Khertan bindings (the desktop applets work great, thanks!), but so far I'm getting no love on the task navigator panel.

This is what I tried:

/usr/share/applications/hildon-navigator/pythontest.desktop
Code:
[Desktop Entry]
Name=Python Test
Type=python
X-Path=pythontest
/usr/lib/hildon-navigator/pythontest.py
(taken from sample file above)
Code:
import gtk
import hildondesktop

class PythonTestApp(hildondesktop.TaskNavigatorItem):

	def __init__(self):

		hildondesktop.TaskNavigatorItem.__init__(self)

		image = gtk.Image()
		image.set_from_stock(gtk.STOCK_CUT, gtk.ICON_SIZE_LARGE_TOOLBAR)

		button = gtk.Button()
		button.connect("clicked", self.clicked, None)
		button.set_image(image)
		button.set_size_request(80, 80);
		button.show()

		self.add(button)

def hd_plugin_get_objects():
	plugin = PythonTestApp()
	return [plugin]
The panel shows up in the "Panels" control panel and I can activate it, but it doesn't actually display it in the task navigator (though it tries, the one I disabled goes away, but the rest of the bar just slides up over where it used to be).

I'm afraid I really have no idea what I'm doing, so I'm not sure how to proceed. Any thoughts?