summaryrefslogtreecommitdiff
path: root/netspeed/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-03-13 11:56:39 +0100
committerraveit65 <[email protected]>2019-03-20 15:38:56 +0100
commit5b153a6130de6b905b73b9e1a23b3922c929a0a7 (patch)
tree87224e66b2a8d2f117584e229269d20b37cbf48a /netspeed/src
parentf3654da400e936dbc2f52b40c9a1869d2f5e46eb (diff)
downloadmate-applets-5b153a6130de6b905b73b9e1a23b3922c929a0a7.tar.bz2
mate-applets-5b153a6130de6b905b73b9e1a23b3922c929a0a7.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 'netspeed/src')
-rw-r--r--netspeed/src/netspeed.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index 0e5e9a7b..3a673823 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -16,7 +16,7 @@
*
* Netspeed Applet was writen by Jörgen Scheibengruber <[email protected]>
*
- * Mate Netspeed Applet migrated by Stefano Karapetsas <[email protected]>
+ * MATE Netspeed Applet migrated by Stefano Karapetsas <[email protected]>
*/
#ifdef HAVE_CONFIG_H
@@ -830,6 +830,7 @@ about_cb(GtkAction *action, gpointer data)
"Copyright \xc2\xa9 2002-2003 Jörgen Scheibengruber";
gtk_show_about_dialog (NULL,
+ "title", _("About MATE Netspeed"),
"version", VERSION,
"copyright", copyright,
"comments", _("A little applet that displays some information on the traffic on the specified network device"),
@@ -993,7 +994,7 @@ settings_cb(GtkAction *action, gpointer data)
category_label_size_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
- applet->settings = GTK_DIALOG(gtk_dialog_new_with_buttons(_("Mate Netspeed Preferences"),
+ applet->settings = GTK_DIALOG(gtk_dialog_new_with_buttons(_("MATE Netspeed Preferences"),
NULL,
GTK_DIALOG_DESTROY_WITH_PARENT,
"gtk-help", GTK_RESPONSE_HELP,
@@ -1590,7 +1591,7 @@ mate_netspeed_applet_factory(MatePanelApplet *applet_widget, const gchar *iid, g
return FALSE;
glibtop_init();
- g_set_application_name (_("Mate Netspeed"));
+ g_set_application_name (_("MATE Netspeed"));
icon_theme = gtk_icon_theme_get_default();