From 4f9094dc53bff0dbf90e32ab556b5fb3200472d6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Mar 2007 05:35:51 +0000 Subject: [PATCH] Add some hints about titles on about dialogs svn path=/trunk/; revision=17545 --- ChangeLog | 5 +++++ demos/gtk-demo/appwindow.c | 1 + docs/reference/ChangeLog | 5 +++++ docs/reference/gtk/tmpl/gtkaboutdialog.sgml | 14 ++++++++++++++ 4 files changed, 25 insertions(+) diff --git a/ChangeLog b/ChangeLog index 02e0bd76f1..6b673df04b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-19 Matthias Clasen + + * demos/gtk-demo/appwindow.c: Explicitly set the title on the + about dialog. + 2007-03-18 Matthias Clasen * gtk/gtkentrycompletion.c (gtk_entry_completion_compute_prefix): diff --git a/demos/gtk-demo/appwindow.c b/demos/gtk-demo/appwindow.c index 9fea12fa51..fd3e8fb718 100644 --- a/demos/gtk-demo/appwindow.c +++ b/demos/gtk-demo/appwindow.c @@ -141,6 +141,7 @@ about_cb (GtkAction *action, "authors", authors, "documenters", documentors, "logo", transparent, + "title", "About GTK+ Code Demos", NULL); g_object_unref (transparent); diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 3712255060..6644b7bfe8 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2007-03-19 Matthias Clasen + + * tmpl/gtkaboutdialog.sgml: Add a paragraph about setting + the title on the dialog. + 2007-02-14 Stefan Kost reviewed by: Matthias Clasen diff --git a/docs/reference/gtk/tmpl/gtkaboutdialog.sgml b/docs/reference/gtk/tmpl/gtkaboutdialog.sgml index 558dd856fd..ad9d4ae5c3 100644 --- a/docs/reference/gtk/tmpl/gtkaboutdialog.sgml +++ b/docs/reference/gtk/tmpl/gtkaboutdialog.sgml @@ -28,6 +28,20 @@ To make constructing a #GtkAboutDialog as convenient as possible, you can use the function gtk_show_about_dialog() which constructs and shows a dialog and keeps it around so that it can be shown again. + +Note that GTK+ sets a default title of _("About %s") +on the dialog window (where %s is replaced by the name of the +application, but in order to ensure proper translation of the title, +applications should set the title property explicitly when constructing +a #GtkAboutDialog, as shown in the following example: + + +gtk_show_about_dialog (NULL, + "name", "ExampleCode", + "logo", example_logo, + "title" _("About ExampleCode"), + NULL); +