summaryrefslogtreecommitdiff
path: root/src/caja-spatial-window.c
diff options
context:
space:
mode:
authorJonathan Michalon <[email protected]>2020-01-14 14:18:12 +0100
committerraveit65 <[email protected]>2022-07-20 21:40:43 +0200
commit3a250e4a447b6cff3be67e2384d126cd48ef7e60 (patch)
treeabecba7ead97018fafeb8a17b62a716e3ca16c13 /src/caja-spatial-window.c
parent04c06d658093d22798aba1d7e4bbca040fea2050 (diff)
downloadcaja-3a250e4a447b6cff3be67e2384d126cd48ef7e60.tar.bz2
caja-3a250e4a447b6cff3be67e2384d126cd48ef7e60.tar.xz
Set a real title on the desktop window (as provided to ATK)
Even if we think that the desktop window title is never seen, it is used by the window selector in "all windows" mode and speech synthesis.
Diffstat (limited to 'src/caja-spatial-window.c')
-rw-r--r--src/caja-spatial-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-spatial-window.c b/src/caja-spatial-window.c
index 17a3a892..e3eecfea 100644
--- a/src/caja-spatial-window.c
+++ b/src/caja-spatial-window.c
@@ -394,6 +394,10 @@ sync_window_title (CajaWindow *window)
slot = caja_window_get_active_slot (window);
+ /* Don't change desktop's title, it would override the one already defined */
+ if (CAJA_IS_DESKTOP_WINDOW (window))
+ return;
+
if (slot->title == NULL || slot->title[0] == '\0')
{
gtk_window_set_title (GTK_WINDOW (window), _("Caja"));