![]() |
![]() |
![]() |
![]() |
Since version 2.10, GTK+ provides the GtkLinkButton widget as a replacement for the GnomeHRef widget in the libgnomeui library.
Porting an application from GnomeHRef to GtkLinkButton is very simple. GtkLinkButton does not have a default action for “clicked” signal. So instead of simply creating the widget
1 |
you will have to handle the activation of the GtkLinkButton, using the ::clicked signal for instance
1 |
If you have more than one GtkLinkButton instead of connecting a signal to each one, you can use a "hook function" which will be called whenever a user activates a link button
1 |
Starting with GTK+ 2.16, it is no longer necessary to set up a uri hook
manually, since GTK+ now defaults to calling gtk_show_uri()
if no uri
hook has been set.