mnemonics
- From: Dave Camp <dave ximian com>
- To: nautilus-list gnome org
- Subject: mnemonics
- Date: 12 May 2002 14:34:43 -0400
Here's a patch to add a bunch of mnemonics to the prefs dialog and the
bookmarks window.
While I was at it I rearranged the Windows tab to list the pieces
(sidebar, toolbar, location bar, and status bar) in the same order as
the View menu lists them.
-dave
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.5286
diff -u -r1.5286 ChangeLog
--- ChangeLog 11 May 2002 23:53:45 -0000 1.5286
+++ ChangeLog 12 May 2002 19:12:17 -0000
@@ -1,3 +1,9 @@
+2002-05-12 Dave Camp <dave ximian com>
+
+ * libnautilus-private/nautilus-global-preferences.c:
+ * src/nautilus-bookmarks-window.c: (create_bookmarks_window):
+ * src/nautilus-preferences-dialog.c: Added mnemonics.
+
2002-05-11 Alex Larsson <alexl redhat com>
* components/music/nautilus-music-view.c: (set_up_tree_view):
Index: libnautilus-private/nautilus-global-preferences.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-global-preferences.c,v
retrieving revision 1.201
diff -u -r1.201 nautilus-global-preferences.c
--- libnautilus-private/nautilus-global-preferences.c 11 May 2002 23:53:49 -0000 1.201
+++ libnautilus-private/nautilus-global-preferences.c 12 May 2002 19:12:19 -0000
@@ -97,9 +97,9 @@
/* Enumerations used to qualify some INTEGER preferences */
static EelEnumerationEntry speed_tradeoff_enum_entries[] = {
- { "always", N_("Always"), NAUTILUS_SPEED_TRADEOFF_ALWAYS },
- { "local_only", N_("Local Files Only"), NAUTILUS_SPEED_TRADEOFF_LOCAL_ONLY },
- { "never", N_("Never"), NAUTILUS_SPEED_TRADEOFF_NEVER },
+ { "always", N_("_Always"), NAUTILUS_SPEED_TRADEOFF_ALWAYS },
+ { "local_only", N_("_Local Files Only"), NAUTILUS_SPEED_TRADEOFF_LOCAL_ONLY },
+ { "never", N_("_Never"), NAUTILUS_SPEED_TRADEOFF_NEVER },
{ NULL }
};
@@ -134,11 +134,11 @@
static EelEnumerationEntry click_policy_enum_entries[] = {
{ "single",
- N_("Activate items with a single click"),
+ N_("Activate items with a _single click"),
NAUTILUS_CLICK_POLICY_SINGLE
},
{ "double",
- N_("Activate items with a double click"),
+ N_("Activate items with a _double click"),
NAUTILUS_CLICK_POLICY_DOUBLE
},
{ NULL }
@@ -146,15 +146,15 @@
static EelEnumerationEntry executable_text_activation_enum_entries[] = {
{ "launch",
- N_("Execute files when they are clicked"),
+ N_("E_xecute files when they are clicked"),
NAUTILUS_EXECUTABLE_TEXT_LAUNCH
},
{ "display",
- N_("Display files when they are clicked"),
+ N_("Display _files when they are clicked"),
NAUTILUS_EXECUTABLE_TEXT_DISPLAY
},
{ "ask",
- N_("Ask each time"),
+ N_("_Ask each time"),
NAUTILUS_EXECUTABLE_TEXT_ASK
},
{ NULL }
Index: src/nautilus-bookmarks-window.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-bookmarks-window.c,v
retrieving revision 1.64
diff -u -r1.64 nautilus-bookmarks-window.c
--- src/nautilus-bookmarks-window.c 26 Apr 2002 00:47:38 -0000 1.64
+++ src/nautilus-bookmarks-window.c 12 May 2002 19:12:21 -0000
@@ -199,7 +199,7 @@
gtk_widget_show (vbox3);
gtk_box_pack_start (GTK_BOX (right_side), vbox3, FALSE, FALSE, 0);
- name_label = gtk_label_new (_("Name"));
+ name_label = gtk_label_new_with_mnemonic (_("_Name"));
gtk_widget_show (name_label);
gtk_box_pack_start (GTK_BOX (vbox3), name_label, FALSE, FALSE, 0);
@@ -208,11 +208,13 @@
gtk_box_pack_start (GTK_BOX (vbox3), name_field, FALSE, FALSE, 0);
nautilus_undo_editable_set_undo_key (GTK_EDITABLE (name_field), TRUE);
+ gtk_label_set_mnemonic_widget (GTK_LABEL (name_label), name_field);
+
vbox4 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox4);
gtk_box_pack_start (GTK_BOX (right_side), vbox4, FALSE, FALSE, 0);
- url_label = gtk_label_new (_("Location"));
+ url_label = gtk_label_new_with_mnemonic (_("_Location"));
gtk_widget_show (url_label);
gtk_box_pack_start (GTK_BOX (vbox4), url_label, FALSE, FALSE, 0);
@@ -220,6 +222,8 @@
gtk_widget_show (uri_field);
gtk_box_pack_start (GTK_BOX (vbox4), uri_field, FALSE, FALSE, 0);
nautilus_undo_editable_set_undo_key (GTK_EDITABLE (uri_field), TRUE);
+
+ gtk_label_set_mnemonic_widget (GTK_LABEL (url_label), uri_field);
hbox2 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox2);
Index: src/nautilus-preferences-dialog.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-preferences-dialog.c,v
retrieving revision 1.35
diff -u -r1.35 nautilus-preferences-dialog.c
--- src/nautilus-preferences-dialog.c 11 May 2002 23:53:50 -0000 1.35
+++ src/nautilus-preferences-dialog.c 12 May 2002 19:12:22 -0000
@@ -66,27 +66,27 @@
static EelPreferencesItemDescription windows_items[] = {
{ N_("Opening New Windows"),
NAUTILUS_PREFERENCES_WINDOW_ALWAYS_NEW,
- N_("Open each file or folder in a separate window"),
+ N_("_Open each file or folder in a separate window"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Opening New Windows"),
- NAUTILUS_PREFERENCES_START_WITH_TOOLBAR,
- N_("Display toolbar in new windows"),
+ NAUTILUS_PREFERENCES_START_WITH_SIDEBAR,
+ N_("Display _sidebar in new windows"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Opening New Windows"),
- NAUTILUS_PREFERENCES_START_WITH_LOCATION_BAR,
- N_("Display location bar in new windows"),
+ NAUTILUS_PREFERENCES_START_WITH_TOOLBAR,
+ N_("Display _toolbar in new windows"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Opening New Windows"),
- NAUTILUS_PREFERENCES_START_WITH_STATUS_BAR,
- N_("Display status bar in new windows"),
+ NAUTILUS_PREFERENCES_START_WITH_LOCATION_BAR,
+ N_("Display location _bar in new windows"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Opening New Windows"),
- NAUTILUS_PREFERENCES_START_WITH_SIDEBAR,
- N_("Display sidebar in new windows"),
+ NAUTILUS_PREFERENCES_START_WITH_STATUS_BAR,
+ N_("Display st_atus bar in new windows"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ NULL }
@@ -95,22 +95,22 @@
static EelPreferencesItemDescription desktop_and_trash_items[] = {
{ N_("Desktop"),
NAUTILUS_PREFERENCES_SHOW_DESKTOP,
- N_("Use Nautilus to draw the desktop"),
+ N_("_Use Nautilus to draw the desktop"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Desktop"),
NAUTILUS_PREFERENCES_DESKTOP_IS_HOME_DIR,
- N_("Use your home folder as the desktop"),
+ N_("Use your _home folder as the desktop"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Trash Behavior"),
NAUTILUS_PREFERENCES_CONFIRM_TRASH,
- N_("Ask before emptying the Trash or deleting files"),
+ N_("_Ask before emptying the Trash or deleting files"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Trash Behavior"),
NAUTILUS_PREFERENCES_ENABLE_DELETE,
- N_("Include a Delete command that bypasses Trash"),
+ N_("_Include a Delete command that bypasses Trash"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ NULL }
@@ -129,22 +129,22 @@
},
{ N_("Show/Hide Options"),
NAUTILUS_PREFERENCES_SHOW_HIDDEN_FILES,
- N_("Show hidden files (file names start with \".\")"),
+ N_("Show _hidden files (file names start with \".\")"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Show/Hide Options"),
NAUTILUS_PREFERENCES_SHOW_BACKUP_FILES,
- N_("Show backup files (file names end with \"~\")"),
+ N_("Show _backup files (file names end with \"~\")"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Show/Hide Options"),
NAUTILUS_PREFERENCES_SHOW_SPECIAL_FLAGS,
- N_("Show special flags in Properties window"),
+ N_("Show special flags in _Properties window"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Sorting Order"),
NAUTILUS_PREFERENCES_SORT_DIRECTORIES_FIRST,
- N_("Always list folders before files"),
+ N_("Always _list folders before files"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ NULL }
@@ -168,30 +168,30 @@
static EelPreferencesItemDescription view_preferences_items[] = {
{ N_("Default View"),
NAUTILUS_PREFERENCES_DEFAULT_FOLDER_VIEWER,
- N_("View new folders using:"),
+ N_("_View new folders using:"),
EEL_PREFERENCE_ITEM_ENUMERATION_MENU
},
/* Icon View Defaults */
{ N_("Icon View Defaults"),
NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_SORT_ORDER_OR_MANUAL_LAYOUT,
- N_("Arrange Items:"),
+ N_("_Arrange Items:"),
EEL_PREFERENCE_ITEM_ENUMERATION_MENU
},
{ N_("Icon View Defaults"),
NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_SORT_IN_REVERSE_ORDER,
- N_("Sort in reversed order"),
+ N_("_Sort in reversed order"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("Icon View Defaults"),
NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_ZOOM_LEVEL,
- N_("Default zoom level:"),
+ N_("_Default zoom level:"),
EEL_PREFERENCE_ITEM_ENUMERATION_MENU,
NULL, 0, 1
},
{ N_("Icon View Defaults"),
NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_USE_TIGHTER_LAYOUT,
- N_("Use tighter layout"),
+ N_("Use _tighter layout"),
EEL_PREFERENCE_ITEM_BOOLEAN,
NULL, 0, 1
},
@@ -199,17 +199,17 @@
/* List View Defaults */
{ N_("List View Defaults"),
NAUTILUS_PREFERENCES_LIST_VIEW_DEFAULT_SORT_ORDER,
- N_("Arrange Items:"),
+ N_("Arrange _Items:"),
EEL_PREFERENCE_ITEM_ENUMERATION_MENU
},
{ N_("List View Defaults"),
NAUTILUS_PREFERENCES_LIST_VIEW_DEFAULT_SORT_IN_REVERSE_ORDER,
- N_("Sort in reversed order"),
+ N_("Sort in _reversed order"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ N_("List View Defaults"),
NAUTILUS_PREFERENCES_LIST_VIEW_DEFAULT_ZOOM_LEVEL,
- N_("Default zoom level:"),
+ N_("Default _zoom level:"),
EEL_PREFERENCE_ITEM_ENUMERATION_MENU,
NULL, 0, 1
},
@@ -236,12 +236,12 @@
static EelPreferencesItemDescription navigation_items[] = {
{ N_("Home"),
NAUTILUS_PREFERENCES_HOME_URI,
- N_("Location:"),
+ N_("_Location:"),
EEL_PREFERENCE_ITEM_EDITABLE_STRING
},
{ N_("Built-in Bookmarks"),
NAUTILUS_PREFERENCES_HIDE_BUILT_IN_BOOKMARKS,
- N_("Don't include the built-in bookmarks in the Bookmarks menu"),
+ N_("_Don't include the built-in bookmarks in the Bookmarks menu"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ NULL }
@@ -265,7 +265,7 @@
},
{ N_("Show Thumbnails for Image Files"),
NAUTILUS_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT,
- N_("Don't make thumbnails for files larger than:"),
+ N_("_Don't make thumbnails for files larger than:"),
EEL_PREFERENCE_ITEM_ENUMERATION_MENU_INTEGER
},
{ N_("Preview Sound Files"),
@@ -288,7 +288,7 @@
},
{ N_("Tree"),
NAUTILUS_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES,
- N_("Show only folders (no files) in the tree"),
+ N_("_Show only folders (no files) in the tree"),
EEL_PREFERENCE_ITEM_BOOLEAN
},
{ NULL }
@@ -298,12 +298,12 @@
static EelPreferencesItemDescription news_panel_items[] = {
{ N_("Maximum items per site"),
NAUTILUS_PREFERENCES_NEWS_MAX_ITEMS,
- N_("Maximum number of items displayed per site"),
+ N_("_Maximum number of items displayed per site"),
EEL_PREFERENCE_ITEM_EDITABLE_INTEGER
},
{ N_("Update Minutes"),
NAUTILUS_PREFERENCES_NEWS_UPDATE_INTERVAL,
- N_("Update frequency in minutes"),
+ N_("_Update frequency in minutes"),
EEL_PREFERENCE_ITEM_EDITABLE_INTEGER
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]