Re: [java-gnome-hackers] LinkButton
Brought to you by:
afcowie
From: Guillaume M. <res...@gm...> - 2009-09-01 16:34:41
|
Hello, > Guillaume, I merged your 'linkbutton' into mine; if you could in turn > merge (or pull) 'hackers/andrew/linkbutton' into yours hopefully it'll > be clean. Done. > You'll notice I wrote some tests that are failing. Perhaps you can see > if you can figure out what wrong assumptions we're making about > LinkButton's behaviour. About the failing tests, I did some investigations to know more about the "gtk_link_button_set_uri_hook" method. I eventually wrote an example in C and its Java equivalent. When the GtkLinkButton (in C) is pressed, there is *no* "clicked" signal emitted (that is a little weird?) but in Java this signal is still emitted. So I guess the "gtk_link_button_set_uri_hook" callback totally replaces the "clicked" signal callback. With the current state of the "linkbutton" branch, we can do two different things with the "gtk_link_button_set_uri_hook" and the "clicked" signal, so maybe I should correct the current LinkButton behavior (how?) to make it act like the official GtkLinkButton does. -- Guillaume Mazoyer - http://www.respawner.fr/ |