GNOME Bugzilla – Bug 566391
gtk_about_dialog_set_url_hook should activate pre-existing website links
Last modified: 2009-01-05 03:38:56 UTC
If the website property for a GtkAboutDialog has already been set when gtk_about_dialog_set_url_hook is called for the first time, GTK+ should update the website label to make it a GtkLinkButton. This will allow it to utilize the newly set GtkAboutDialogActivateLinkFunc to open the website in a web browser. Currently gtk_about_dialog_set_url_hook just sets the function and you have to call gtk_about_dialog_set_website again in order to update the label to be a link. Use case: 1) Set website property in glade 2) Set url hook in code since it cannot be specified in code (using gtk+ in c++) Expected results: Website text in GtkAboutDialog gets update to be a GtkLinkButton Actual results: Website text in GtkAboutDialog does not get updated to be a GtkLinkButton
Sorry, step #2 should be the following: 2) Set url hook in code since it cannot be specified in glade easily (using gtk+ in c++)
* gtk/gtkaboutdialog.c: Make setting website, website-label and url hook work independent of their order. Reported by Steven Sheehy.