Remove branding from window title and menu item

This commit is contained in:
Clement Lefebvre 2016-01-26 12:42:33 +00:00
parent d21fcb2595
commit 6397759eb1
2 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,5 @@
[Desktop Entry] [Desktop Entry]
_Name=Xedit _Name=Text Editor
_GenericName=Text Editor
_Comment=Edit text files _Comment=Edit text files
Exec=xedit %U Exec=xedit %U
Terminal=false Terminal=false
@ -9,6 +8,5 @@ StartupNotify=true
MimeType=text/plain; MimeType=text/plain;
Icon=accessories-text-editor Icon=accessories-text-editor
Categories=GTK;Utility;TextEditor; Categories=GTK;Utility;TextEditor;
Keywords=text;editor;MATE;tabs;highlighting;code;multiple;files;pluggable; Keywords=text;editor;tabs;highlighting;code;multiple;files;pluggable;
X-MATE-DocPath=xedit/xedit.xml X-MATE-DocPath=xedit/xedit.xml
_X-MATE-FullName=Xedit Text Editor

View File

@ -2175,23 +2175,23 @@ set_title (XeditWindow *window)
if (xedit_document_get_readonly (doc)) if (xedit_document_get_readonly (doc))
{ {
if (dirname != NULL) if (dirname != NULL)
title = g_strdup_printf ("%s [%s] (%s) - Xedit", title = g_strdup_printf ("%s [%s] (%s)",
name, name,
_("Read-Only"), _("Read-Only"),
dirname); dirname);
else else
title = g_strdup_printf ("%s [%s] - Xedit", title = g_strdup_printf ("%s [%s]",
name, name,
_("Read-Only")); _("Read-Only"));
} }
else else
{ {
if (dirname != NULL) if (dirname != NULL)
title = g_strdup_printf ("%s (%s) - Xedit", title = g_strdup_printf ("%s (%s)",
name, name,
dirname); dirname);
else else
title = g_strdup_printf ("%s - Xedit", title = g_strdup_printf ("%s",
name); name);
} }