summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/caja-desktop-window.c9
-rw-r--r--src/caja-spatial-window.c4
2 files changed, 6 insertions, 7 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c
index b2b193cc..36ae52ce 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;
}
diff --git a/src/caja-spatial-window.c b/src/caja-spatial-window.c
index 1011ad24..50e00a2d 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"));