[nautilus] Set accessible name for the desktop.



commit 5d86a47524e86980ec0ac21728ec76911d6bface
Author: A. Walton <awalton gnome org>
Date:   Sun Jul 4 15:27:28 2010 +0200

    Set accessible name for the desktop.
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=555425

 src/nautilus-desktop-window.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c
index 907713f..edc70ad 100644
--- a/src/nautilus-desktop-window.c
+++ b/src/nautilus-desktop-window.c
@@ -50,6 +50,7 @@ static void
 nautilus_desktop_window_init (NautilusDesktopWindow *window)
 {
 	GtkAction *action;
+	AtkObject *accessible;
 	
 	window->details = g_new0 (NautilusDesktopWindowDetails, 1);
 
@@ -71,6 +72,11 @@ nautilus_desktop_window_init (NautilusDesktopWindow *window)
 	action = gtk_action_group_get_action (NAUTILUS_WINDOW (window)->details->main_action_group,
 					      NAUTILUS_ACTION_CLOSE);
 	gtk_action_set_sensitive (action, FALSE);
+
+	/* Set the accessible name so that it doesn't inherit the cryptic desktop URI. */
+	accessible = gtk_widget_get_accessible (GTK_WIDGET (window));
+	if (accessible)
+		atk_object_set_name (accessible, _("Desktop"));
 }
 
 static gint



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]