Re: [java-gnome-hackers] LinkButton
Brought to you by:
afcowie
From: Guillaume M. <res...@gm...> - 2009-09-13 11:57:10
|
Hello, I found a way to "unset" the previous URI hook in the GtkLinkButton class but using it in the JNI side still does not work. And now, I'm a bit lost. In order to come back to the default GtkLinkButton behavior, we have to use the "gtk_link_button_set_uri_hook()" but with 3 NULL arguments. >> gtk_link_button_set_uri_hook(NULL, NULL, NULL); In this way, even if this method has been used before, a click on the button will simply open the given URI with the with the showUri(URI) method. I tried to use this to correct the our default LinkButton behavior but it still doesn't work. I guess it is due to the fact that there is no reference to the GtkLinkButton given to the "gtk_link_button_set_uri_hook()" method. Is it possible to fix that? I guess but I don't know how... -- Guillaume Mazoyer - http://www.respawner.fr/ |