[nautilus] view: use ATK API directly to set accessible name/description
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] view: use ATK API directly to set accessible name/description
- Date: Thu, 8 Dec 2011 15:40:03 +0000 (UTC)
commit f78dee9affd9c88ce410c42cbf9c1118839d33d7
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Dec 8 10:38:59 2011 -0500
view: use ATK API directly to set accessible name/description
src/nautilus-view.c | 6 ++++++
src/nautilus-window-manage-views.c | 3 ---
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 576c8b8..83171c0 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -2400,6 +2400,7 @@ have_bulk_rename_tool ()
static void
nautilus_view_init (NautilusView *view)
{
+ AtkObject *atk_object;
NautilusDirectory *scripts_directory;
NautilusDirectory *templates_directory;
char *templates_uri;
@@ -2480,6 +2481,11 @@ nautilus_view_init (NautilusView *view)
g_signal_connect_swapped (nautilus_window_state,
"changed::" NAUTILUS_WINDOW_STATE_START_WITH_STATUS_BAR,
G_CALLBACK (nautilus_view_display_selection_info), view);
+
+ /* Accessibility */
+ atk_object = gtk_widget_get_accessible (GTK_WIDGET (view));
+ atk_object_set_name (atk_object, _("Content View"));
+ atk_object_set_description (atk_object, _("View of the current folder"));
}
static void
diff --git a/src/nautilus-window-manage-views.c b/src/nautilus-window-manage-views.c
index 1aab573..803760e 100644
--- a/src/nautilus-window-manage-views.c
+++ b/src/nautilus-window-manage-views.c
@@ -1069,9 +1069,6 @@ create_content_view (NautilusWindowSlot *slot,
/* create a new content view */
view = nautilus_view_factory_create (view_id, slot);
- eel_accessibility_set_name (view, _("Content View"));
- eel_accessibility_set_description (view, _("View of the current folder"));
-
slot->new_content_view = view;
nautilus_window_connect_content_view (window, slot->new_content_view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]