[maemo-developers] markup problem

From: daniel wilms daniel.wilms at nokia.com
Date: Wed Dec 2 17:06:11 EET 2009
Hi,
> To create links you have GtkLinkButton.
But don't forget to set then the callback-function, to tell what the 
button should do, like:

gtk.link_button_set_uri_hook(callback)

def callback (button_obj,url):
        bus = dbus.SessionBus()
        obj = 
bus.get_object('com.nokia.osso_browser','/com/nokia/osso_browser')
        interface = dbus.Interface(obj, 'com.nokia.osso_browser')
        interface.open_new_window(str(url))

Cheers Daniel
More information about the maemo-developers mailing list