summaryrefslogtreecommitdiff
path: root/src/callbacks.cpp
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-02-16 09:43:13 +0100
committerraveit65 <[email protected]>2019-02-16 10:40:06 +0100
commit2eec5c431f638c99e3d4a6dd13d085c72b781316 (patch)
treecd03d4ab5b679506bb3e711e83e6b523157df96a /src/callbacks.cpp
parentacd6123cf163948434e364c419d96cf1cfcae32a (diff)
downloadmate-system-monitor-2eec5c431f638c99e3d4a6dd13d085c72b781316.tar.bz2
mate-system-monitor-2eec5c431f638c99e3d4a6dd13d085c72b781316.tar.xz
Ensure proper translation of the about dialog title
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 https://developer.gnome.org/gtk3/stable/GtkAboutDialog.html
Diffstat (limited to 'src/callbacks.cpp')
-rw-r--r--src/callbacks.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/callbacks.cpp b/src/callbacks.cpp
index ee297ba..1cf0ede 100644
--- a/src/callbacks.cpp
+++ b/src/callbacks.cpp
@@ -201,6 +201,7 @@ cb_about (GtkAction *action, gpointer data)
gtk_show_about_dialog (
GTK_WINDOW (procdata->app),
"name", _("System Monitor"),
+ "title", _("About System Monitor"),
"comments", _("View current processes and monitor system state"),
"version", VERSION,
"copyright", _("Copyright \xc2\xa9 2001-2004 Kevin Vandersloot\n"