summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2009-04-03 02:10:55 +0200
committerChristian Persch <chpe@gnome.org>2009-04-20 14:55:13 +0200
commit405955749103dcfdf582b6ae4f053c66837a6281 (patch)
tree6a9d1146d7dff02b9d709461746594be2e86938e /docs
parent45d076fcc2ae6f03a34d9b2018fcd53e9d2bddfe (diff)
downloadgtk+-405955749103dcfdf582b6ae4f053c66837a6281.tar.gz
Add default URL and Email hooks to GtkAboutDialog
Adds default URL and Email hooks which use gtk_show_uri(). It is still possible to provide one's own hooks, and one can disable the default hooks by setting NULL hooks. Bug #577793.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/tmpl/gtkaboutdialog.sgml12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/reference/gtk/tmpl/gtkaboutdialog.sgml b/docs/reference/gtk/tmpl/gtkaboutdialog.sgml
index ebecec0b4e..6aac589c90 100644
--- a/docs/reference/gtk/tmpl/gtkaboutdialog.sgml
+++ b/docs/reference/gtk/tmpl/gtkaboutdialog.sgml
@@ -24,16 +24,20 @@ recognized by looking for <literal>http://url</literal>, with
<literal>url</literal> extending to the next space, tab or line break.
</para>
<para id="gtk-about-dialog-hook-setup">
-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:
+Since 2.18 #GtkAboutDialog provides default website and email hooks that use
+gtk_show_uri().
+</para>
+<para>
+If you want provide your own hooks overriding the default ones, it is important
+to do so before setting the website and email URL properties, like this:
</para>
<informalexample><programlisting>
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);
</programlisting></informalexample>
<para>
-Otherwise the GtkAboutDialog widget will not display the website and the
+To disable the default hooks, you can pass %NULL as the hook func. Then,
+the #GtkAboutDialog widget will not display the website or the
email addresses as clickable.
</para>
<para>