After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 425004 - Add a note about the hooks in the AboutDialog
Add a note about the hooks in the AboutDialog
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Documentation
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 499666 (view as bug list)
Depends on:
Blocks: 425006
 
 
Reported: 2007-03-31 22:44 UTC by Emmanuele Bassi (:ebassi)
Modified: 2007-11-26 16:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Emmanuele Bassi (:ebassi) 2007-03-31 22:44:15 UTC
the website and email links are made clickable only if the url and email hooks have been set before setting the 'website' and 'email' properties; if you set the hooks after that, the links won't be clickable.

the documentation should mention that the order is important, so a paragraph should be added, either in the main class description or in the hook setters function description:

'When setting the website and email hooks for the GtkAboutDialog widget, you should remember that the order is important: you should set the hook functions before setting the website and email URL properties, like this:

  gtk_about_dialog_set_url_hook (GTK_ABOUT_DIALOG (dialog), launch_url, NULL, NULL);
  gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (dialog), app_url);

otherwise the GtkAboutDialog widget will not display the website and the email addresses as clickable.'
Comment 1 Tristan Van Berkom 2007-08-14 19:56:04 UTC
Wouldnt it make sence to say that gtk_about_dialog_set_url_hook()
should be made to effect all the about dialogs in existance ?

i.e. its already a bug that inverting those afore mentioned
statements doesnt produce the expected results.. no ?
Comment 2 Emmanuele Bassi (:ebassi) 2007-11-26 11:17:30 UTC
*** Bug 499666 has been marked as a duplicate of this bug. ***
Comment 3 Matthias Clasen 2007-11-26 16:50:56 UTC
2007-11-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Add a note
        about hook setup.  (#425004, Emmanuele Bassi)