summaryrefslogtreecommitdiff
path: root/src/caja-desktop-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-desktop-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-desktop-window.c')
-rw-r--r--src/caja-desktop-window.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c
index c063d06c..278beb17 100644
--- a/src/caja-desktop-window.c
+++ b/src/caja-desktop-window.c
@@ -204,6 +204,8 @@ caja_desktop_window_new (CajaApplication *application,
XFree(xch);
}
+ gdk_window_set_title (gdkwin, _("Desktop"));
+
g_signal_connect (window, "delete_event", G_CALLBACK (caja_desktop_window_delete_event), NULL);
/* Point window at the desktop folder.
@@ -313,12 +315,6 @@ draw (GtkWidget *widget,
return GTK_WIDGET_CLASS (caja_desktop_window_parent_class)->draw (widget, cr);
}
-static char *
-real_get_title (CajaWindow *window)
-{
- return g_strdup (_("Desktop"));
-}
-
static CajaIconInfo *
real_get_icon (CajaWindow *window,
CajaWindowSlot *slot)
@@ -341,7 +337,6 @@ caja_desktop_window_class_init (CajaDesktopWindowClass *klass)
gtk_widget_class_set_accessible_type (wclass, CAJA_TYPE_DESKTOP_WINDOW_ACCESSIBLE);
nclass->window_type = CAJA_WINDOW_DESKTOP;
- nclass->get_title = real_get_title;
nclass->get_icon = real_get_icon;
}