diff options
author | Neil Herald <neil.herald@gmail.com> | 2016-04-29 23:20:48 +0100 |
---|---|---|
committer | Neil Herald <neil.herald@gmail.com> | 2016-06-22 23:38:22 +0100 |
commit | bdcdbe67ff051d797edc7a40f3486d0abc7a9be2 (patch) | |
tree | 1317453d7f2d982b7bc5d43fa1c0eae5335b2aa1 /src/resources | |
parent | 6ab063d474c4535821bf7065e844d2a87a45ed4d (diff) | |
download | nautilus-bdcdbe67ff051d797edc7a40f3486d0abc7a9be2.tar.gz |
files-view: merge action and view menus
Usability tests conducted by Gina Dobrescu have highlighted a number of
issues with the toolbar menus. Users can't switch between list and grid
mode with a single click, and they have struggled to find the switch
between list and grid mode.
Allan Day has come up with a design to address these problems. The view
and action menus have been combined into a single menu, and we have
added a new button to the toolbar which toggles the view mode between
list and grid mode.
https://bugzilla.gnome.org/show_bug.cgi?id=764632
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/nautilus.gresource.xml | 1 | ||||
-rw-r--r-- | src/resources/ui/nautilus-toolbar-action-menu.ui | 95 | ||||
-rw-r--r-- | src/resources/ui/nautilus-toolbar-view-menu.ui | 138 | ||||
-rw-r--r-- | src/resources/ui/nautilus-toolbar.ui | 15 |
4 files changed, 97 insertions, 152 deletions
diff --git a/src/resources/nautilus.gresource.xml b/src/resources/nautilus.gresource.xml index 0acbc708a..30a056650 100644 --- a/src/resources/nautilus.gresource.xml +++ b/src/resources/nautilus.gresource.xml @@ -7,7 +7,6 @@ <file>ui/nautilus-pathbar-context-menu.ui</file> <file>ui/nautilus-toolbar.ui</file> <file>ui/nautilus-toolbar-view-menu.ui</file> - <file>ui/nautilus-toolbar-action-menu.ui</file> <file>ui/nautilus-create-folder-dialog.ui</file> <file>ui/nautilus-rename-file-popover.ui</file> <file>ui/nautilus-files-view-context-menus.ui</file> diff --git a/src/resources/ui/nautilus-toolbar-action-menu.ui b/src/resources/ui/nautilus-toolbar-action-menu.ui deleted file mode 100644 index 2ac1e248c..000000000 --- a/src/resources/ui/nautilus-toolbar-action-menu.ui +++ /dev/null @@ -1,95 +0,0 @@ -<?xml version="1.0"?> -<interface> - <!-- interface-requires gtk+ 3.0 --> - <object class="GtkPopoverMenu" id="action_menu_widget"> - <child> - <object class="GtkBox"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="border_width">9</property> - <property name="orientation">vertical</property> - <property name="width_request">160</property> - <child> - <object class="GtkModelButton" id="new-folder"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="text" translatable="yes">New _Folder</property> - <property name="action-name">view.new-folder</property> - </object> - </child> - <child> - <object class="GtkModelButton" id="new-tab"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="text" translatable="yes">New _Tab</property> - <property name="action-name">win.new-tab</property> - </object> - </child> - <child> - <object class="GtkSeparator"> - <property name="visible">True</property> - <property name="orientation">horizontal</property> - <property name="margin-top">6</property> - <property name="margin-bottom">6</property> - </object> - </child> - <child> - <object class="GtkModelButton" id="undo"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="text" translatable="yes">Undo</property> - <property name="action-name">win.undo</property> - </object> - </child> - <child> - <object class="GtkModelButton" id="redo"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="text" translatable="yes">Redo</property> - <property name="action-name">win.redo</property> - </object> - </child> - <child> - <object class="GtkSeparator"> - <property name="visible">True</property> - <property name="orientation">horizontal</property> - <property name="margin-top">6</property> - <property name="margin-bottom">6</property> - </object> - </child> - <child> - <object class="GtkModelButton" id="select-all"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="text" translatable="yes">Select _All</property> - <property name="action-name">view.select-all</property> - </object> - </child> - <child> - <object class="GtkModelButton" id="enter-location"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="text" translatable="yes">Enter _Location</property> - <property name="action-name">win.enter-location</property> - </object> - </child> - <child> - <object class="GtkSeparator"> - <property name="visible">True</property> - <property name="orientation">horizontal</property> - <property name="margin-top">6</property> - <property name="margin-bottom">6</property> - </object> - </child> - <child> - <object class="GtkModelButton" id="bookmark-this-location"> - <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="text" translatable="yes">_Bookmark this Location</property> - <property name="action-name">win.bookmark-current-location</property> - </object> - </child> - </object> - </child> - </object> -</interface> diff --git a/src/resources/ui/nautilus-toolbar-view-menu.ui b/src/resources/ui/nautilus-toolbar-view-menu.ui index 7cb336db0..b7b076325 100644 --- a/src/resources/ui/nautilus-toolbar-view-menu.ui +++ b/src/resources/ui/nautilus-toolbar-view-menu.ui @@ -9,48 +9,6 @@ <property name="orientation">vertical</property> <property name="width_request">160</property> <child> - <object class="GtkBox" id="views_box"> - <property name="visible">True</property> - <property name="orientation">horizontal</property> - <property name="margin-bottom">6</property> - <style> - <class name="linked"/> - </style> - <child> - <object class="GtkModelButton" id="grid_button"> - <property name="visible">True</property> - <property name="text">Grid</property> - <property name="action-name">slot.files-view-mode</property> - <property name="action-target">uint32 0</property> - <property name="iconic">True</property> - <property name="centered">True</property> - <property name="icon">icon_grid</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkModelButton" id="list_button"> - <property name="visible">True</property> - <property name="text">List</property> - <property name="action-name">slot.files-view-mode</property> - <property name="action-target">uint32 1</property> - <property name="iconic">True</property> - <property name="centered">True</property> - <property name="icon">icon_list</property> - </object> - <packing> - <property name="expand">True</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - </object> - </child> - <child> <object class="GtkScale" id="zoom_level_scale"> <property name="visible">True</property> <property name="can_focus">True</property> @@ -196,7 +154,7 @@ <object class="GtkModelButton" id="reload"> <property name="visible">True</property> <property name="can_focus">True</property> - <property name="text" translatable="yes">_Reload</property> + <property name="text" translatable="yes">R_eload</property> <property name="action-name">win.reload</property> </object> </child> @@ -208,15 +166,97 @@ <property name="action-name">win.stop</property> </object> </child> + <child> + <object class="GtkSeparator"> + <property name="visible">True</property> + <property name="orientation">horizontal</property> + <property name="margin-top">6</property> + <property name="margin-bottom">6</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="new-folder"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">New _Folder</property> + <property name="action-name">view.new-folder</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="new-tab"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">New _Tab</property> + <property name="action-name">win.new-tab</property> + </object> + </child> + <child> + <object class="GtkSeparator"> + <property name="visible">True</property> + <property name="orientation">horizontal</property> + <property name="margin-top">6</property> + <property name="margin-bottom">6</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="undo"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">_Undo</property> + <property name="action-name">win.undo</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="redo"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">_Redo</property> + <property name="action-name">win.redo</property> + </object> + </child> + <child> + <object class="GtkSeparator"> + <property name="visible">True</property> + <property name="orientation">horizontal</property> + <property name="margin-top">6</property> + <property name="margin-bottom">6</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="select-all"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">Select _All</property> + <property name="action-name">view.select-all</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="enter-location"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">Enter _Location</property> + <property name="action-name">win.enter-location</property> + </object> + </child> + <child> + <object class="GtkSeparator"> + <property name="visible">True</property> + <property name="orientation">horizontal</property> + <property name="margin-top">6</property> + <property name="margin-bottom">6</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="bookmark-this-location"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">_Bookmark this Location</property> + <property name="action-name">win.bookmark-current-location</property> + </object> + </child> </object> </child> </object> - <object class="GThemedIcon" id="icon_grid"> - <property name="name">view-grid-symbolic</property> - </object> - <object class="GThemedIcon" id="icon_list"> - <property name="name">view-list-symbolic</property> - </object> <object class="GtkAdjustment" id="zoom_adjustment"> <property name="lower">0</property> <property name="upper">3</property> diff --git a/src/resources/ui/nautilus-toolbar.ui b/src/resources/ui/nautilus-toolbar.ui index 024e3f3b0..3c3b1d553 100644 --- a/src/resources/ui/nautilus-toolbar.ui +++ b/src/resources/ui/nautilus-toolbar.ui @@ -72,15 +72,15 @@ </packing> </child> <child> - <object class="GtkMenuButton" id="action_button"> + <object class="GtkMenuButton" id="view_button"> <property name="visible">True</property> <property name="sensitive">True</property> - <property name="action_name">win.action-menu</property> + <property name="action_name">win.view-menu</property> <style> <class name="image-button"/> </style> <child> - <object class="GtkImage" id="action_icon"> + <object class="GtkImage"> <property name="visible">True</property> <property name="icon-name">open-menu-symbolic</property> <property name="icon-size">1</property> @@ -98,22 +98,23 @@ </packing> </child> <child> - <object class="GtkMenuButton" id="view_button"> + <object class="GtkButton" id="view_toggle_button"> <property name="visible">True</property> <property name="sensitive">True</property> + <property name="action_name">slot.files-view-mode-toggle</property> <style> <class name="image-button"/> </style> <child> - <object class="GtkImage" id="view_icon"> + <object class="GtkImage" id="view_toggle_icon"> <property name="visible">True</property> <property name="icon-size">1</property> </object> </child> <child internal-child="accessible"> <object class="AtkObject"> - <property name="accessible-name" translatable="yes">View menu</property> - <property name="accessible-description" translatable="yes">Open view menu</property> + <property name="accessible-name" translatable="yes">View mode toggle</property> + <property name="accessible-description" translatable="yes">Toggle between grid and list view</property> </object> </child> </object> |