diff options
author | Felipe Borges <felipeborges@gnome.org> | 2015-11-12 11:51:22 +0100 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2015-11-12 14:28:39 +0100 |
commit | be5a5e9e9f688c7df4685c611c6d298b3a3a15fa (patch) | |
tree | f51b38cc56291b2c129fc22b5d8937b911b4f78f /src/resources | |
parent | 0a26d0b2a8f4c1d43a8d08ff30a965cb3543a586 (diff) | |
download | nautilus-be5a5e9e9f688c7df4685c611c6d298b3a3a15fa.tar.gz |
resources: organize the resource files in a separate folder
https://bugzilla.gnome.org/show_bug.cgi?id=757978
Diffstat (limited to 'src/resources')
18 files changed, 2985 insertions, 0 deletions
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css new file mode 100644 index 000000000..4abe735e1 --- /dev/null +++ b/src/resources/css/Adwaita.css @@ -0,0 +1,121 @@ +.nautilus-canvas-item { + border-radius: 5px; +} + +.nautilus-canvas-item.dim-label, +.nautilus-list-dim-label { + color: mix (@theme_fg_color, @theme_bg_color, 0.50); +} + +.nautilus-canvas-item.dim-label:selected, +.nautilus-list-dim-label:selected { + color: mix (@theme_selected_fg_color, @theme_selected_bg_color, 0.20); +} + +.nautilus-desktop.nautilus-canvas-item { + color: @theme_selected_fg_color; + text-shadow: 1px 1px black; +} + +.nautilus-desktop.nautilus-canvas-item:active { + color: @theme_text_color; +} + +.nautilus-desktop.nautilus-canvas-item:selected { + color: @theme_selected_fg_color; +} + +.nautilus-desktop.nautilus-canvas-item:active, +.nautilus-desktop.nautilus-canvas-item:prelight, +.nautilus-desktop.nautilus-canvas-item:selected { + text-shadow: none; +} + +.nautilus-desktop.nautilus-canvas-item:selected:backdrop { + color: @theme_unfocused_selected_fg_color; +} + +.nautilus-circular-button { + border-radius: 20px; + outline-radius: 20px; +} + +/* Toolbar */ + +/* Here we use the .button background-image colors from Adwaita, but ligthen them, + * since is not possible to use lighten () in common css. */ +@keyframes needs_attention_keyframes { + 0% {background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0); border-color: @borders; } + /* can't do animation-direction, so holding the color on two keyframes */ + 30% {background-image: linear-gradient(to bottom, @theme_base_color); border-color: @theme_fg_color; } + 90% {background-image: linear-gradient(to bottom, @theme_base_color); border-color: @theme_fg_color; } + 100% {background-image: linear-gradient(to bottom, #fafafa, #ededed 40%, #e0e0e0); border-color: @borders; } +} +.nautilus-operations-button-needs-attention { + animation: needs_attention_keyframes 2s ease-in-out; +} +.nautilus-operations-button-needs-attention-multiple { + animation: needs_attention_keyframes 3s ease-in-out; + animation-iteration-count: 3; +} + +/* Floating status bar */ +.floating-bar { + padding: 2px; + background-color: @theme_base_color; + border-width: 1px; + border-style: solid solid none; + border-color: @borders; + border-radius: 3px 3px 0 0; +} + +.floating-bar.bottom.left { /* axes left border and border radius */ + border-left-style: none; + border-top-left-radius: 0; +} +.floating-bar.bottom.right { /* axes right border and border radius */ + border-right-style: none; + border-top-right-radius: 0; +} + +.floating-bar:backdrop { + background-color: @theme_unfocused_base_color; + border-color: @unfocused_borders; +} + +.floating-bar .button { + padding: 4px; +} + +.search-bar { + box-shadow: none; +} + +@define-color disk_space_unknown #888a85; +@define-color disk_space_used #729fcf; +@define-color disk_space_free #eeeeec; + +.disk-space-display { + border-style: solid; + border-width: 2px; +} + +.disk-space-display.unknown { + background-color: @disk_space_unknown; + border-color: shade(@disk_space_unknown, 0.7); +} + +.disk-space-display.used { + background-color: @disk_space_used; + border-color: shade(@disk_space_used, 0.7); +} + +.disk-space-display.free { + background-color: @disk_space_free; + border-color: shade(@disk_space_free, 0.7); +} + +/* View */ +NautilusListView .view { + border-bottom: 1px solid @theme_bg_color; +} diff --git a/src/resources/nautilus.gresource.xml b/src/resources/nautilus.gresource.xml new file mode 100644 index 000000000..a88b1032c --- /dev/null +++ b/src/resources/nautilus.gresource.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<gresources> + <gresource prefix="/org/gnome/nautilus"> + <file compressed="true">ui/nautilus-bookmarks-window.ui</file> + <file compressed="true">ui/nautilus-file-management-properties.ui</file> + <file>ui/nautilus-app-menu.ui</file> + <file>ui/nautilus-pathbar-context-menu.ui</file> + <file>ui/nautilus-toolbar-ui.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> + <file>ui/nautilus-progress-info-widget.ui</file> + <file>ui/nautilus-move-to-trash-shortcut-changed.ui</file> + <file>ui/nautilus-window.ui</file> + <file>ui/nautilus-no-search-results.ui</file> + <file>ui/nautilus-folder-is-empty.ui</file> + <file>ui/nautilus-remote-warning-bar.ui</file> + <file alias="gtk/gtkplacesview.ui">../gtk/gtkplacesview.ui</file> + <file alias="gtk/gtkplacesviewrow.ui">../gtk/gtkplacesviewrow.ui</file> + <file alias="icons/thumbnail_frame.png">../../icons/thumbnail_frame.png</file> + <file alias="icons/filmholes.png">../../icons/filmholes.png</file> + <file alias="icons/knob.png">../../icons/knob.png</file> + <file>css/Adwaita.css</file> + </gresource> +</gresources> diff --git a/src/resources/ui/nautilus-app-menu.ui b/src/resources/ui/nautilus-app-menu.ui new file mode 100644 index 000000000..ced0d77fb --- /dev/null +++ b/src/resources/ui/nautilus-app-menu.ui @@ -0,0 +1,41 @@ +<interface> + <menu id="app-menu"> + <section> + <item> + <attribute name="action">app.new-window</attribute> + <attribute name="label" translatable="yes">New _Window</attribute> + <attribute name="accel"><Primary>n</attribute> + </item> + </section> + <section> + <item> + <attribute name="action">app.show-hide-sidebar</attribute> + <attribute name="label" translatable="yes">Sidebar</attribute> + </item> + </section> + <section> + </section> + <section> + <item> + <attribute name="action">app.preferences</attribute> + <attribute name="label" translatable="yes">Prefere_nces</attribute> + </item> + </section> + <section> + <item> + <attribute name="action">app.help</attribute> + <attribute name="label" translatable="yes">_Help</attribute> + <attribute name="accel">F1</attribute> + </item> + <item> + <attribute name="action">app.about</attribute> + <attribute name="label" translatable="yes">_About</attribute> + </item> + <item> + <attribute name="action">app.quit</attribute> + <attribute name="label" translatable="yes">_Quit</attribute> + <attribute name="accel"><Primary>q</attribute> + </item> + </section> + </menu> +</interface> diff --git a/src/resources/ui/nautilus-bookmarks-window.ui b/src/resources/ui/nautilus-bookmarks-window.ui new file mode 100644 index 000000000..92d14a3af --- /dev/null +++ b/src/resources/ui/nautilus-bookmarks-window.ui @@ -0,0 +1,318 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <object class="GtkBox" id="bookmarks_window_content"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="border_width">5</property> + <property name="spacing">18</property> + <child> + <object class="GtkBox" id="box1"> + <property name="width_request">200</property> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkScrolledWindow" id="bookmark_list_window"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="hscrollbar_policy">never</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkTreeView" id="bookmark_tree_view"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="headers_visible">False</property> + <property name="reorderable">True</property> + <child internal-child="selection"> + <object class="GtkTreeSelection" id="treeview-selection"/> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkToolbar" id="bookmarks_toolbar"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="toolbar_style">icons</property> + <property name="icon_size">1</property> + <style> + <class name="inline-toolbar"/> + </style> + <child> + <object class="GtkToolItem" id="remove_toolitem"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkBox" id="box3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkButton" id="bookmark_remove_button"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="has_tooltip">True</property> + <property name="tooltip_text" translatable="yes">Remove</property> + <child> + <object class="GtkImage" id="image2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">list-remove-symbolic</property> + <property name="icon-size">1</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + </packing> + </child> + <child> + <object class="GtkSeparatorToolItem" id="toolbutton1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="draw">False</property> + </object> + <packing> + <property name="expand">True</property> + </packing> + </child> + <child> + <object class="GtkToolItem" id="up_down_toolitem"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkBox" id="box2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkButton" id="bookmark_up_button"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="has_tooltip">True</property> + <property name="tooltip_text" translatable="yes">Move Up</property> + <child> + <object class="GtkImage" id="image3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">go-up-symbolic</property> + <property name="icon-size">1</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="bookmark_down_button"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="has_tooltip">True</property> + <property name="tooltip_text" translatable="yes">Move Down</property> + <child> + <object class="GtkImage" id="image5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">go-down-symbolic</property> + <property name="icon-size">1</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="valign">start</property> + <property name="hexpand">True</property> + <property name="orientation">vertical</property> + <property name="spacing">18</property> + <child> + <object class="GtkBox" id="vbox4"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="bookmark_name_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes" context="Bookmark" comments=""Name" is the label on the rigth side of the bookmark window referencing the bookmark name">_Name</property> + <property name="use_underline">True</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="hbox3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkLabel" id="label3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label"> </property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="bookmark_name_placeholder"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="bookmark_location_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="xpad">2</property> + <property name="ypad">2</property> + <property name="label" translatable="yes">_Location</property> + <property name="use_underline">True</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="hbox2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkLabel" id="label2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label"> </property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="bookmark_location_placeholder"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> +</interface> diff --git a/src/resources/ui/nautilus-create-folder-dialog.ui b/src/resources/ui/nautilus-create-folder-dialog.ui new file mode 100644 index 000000000..e39f5e603 --- /dev/null +++ b/src/resources/ui/nautilus-create-folder-dialog.ui @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk+" version="3.14"/> + <object class="GtkDialog" id="create_folder_dialog"> + <property name="resizable">False</property> + <property name="modal">True</property> + <property name="window_position">center-on-parent</property> + <property name="destroy_with_parent">True</property> + <property name="type_hint">dialog</property> + <property name="use-header-bar">1</property> + <property name="width_request">450</property> + <signal name="response" handler="create_folder_dialog_on_response"/> + <child internal-child="vbox"> + <object class="GtkBox" id="vbox"> + <property name="orientation">vertical</property> + <property name="margin_top">18</property> + <property name="margin_bottom">12</property> + <property name="margin_start">18</property> + <property name="margin_end">18</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="name_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="name_entry"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <signal name="changed" handler="file_name_widget_entry_on_changed" swapped="yes" /> + <signal name="activate" handler="file_name_widget_on_activate" swapped="yes" /> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="error_label"> + <property name="visible">True</property> + <property name="xalign">0</property> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">3</property> + </packing> + </child> + </object> + </child> + <child type="action"> + <object class="GtkButton" id="cancel_button"> + <property name="label" translatable="yes">Cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + </object> + </child> + <child type="action"> + <object class="GtkButton" id="ok_button"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="can_default">True</property> + <property name="receives_default">True</property> + <property name="sensitive">False</property> + </object> + </child> + <action-widgets> + <action-widget response="ok" default="true">ok_button</action-widget> + <action-widget response="cancel">cancel_button</action-widget> + </action-widgets> + </object> +</interface> diff --git a/src/resources/ui/nautilus-file-management-properties.ui b/src/resources/ui/nautilus-file-management-properties.ui new file mode 100644 index 000000000..4127e1fff --- /dev/null +++ b/src/resources/ui/nautilus-file-management-properties.ui @@ -0,0 +1,1197 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <object class="GtkDialog" id="file_management_dialog"> + <property name="can_focus">False</property> + <property name="border_width">0</property> + <property name="window_position">center</property> + <property name="type_hint">dialog</property> + <property name="title" translatable="yes">Files Preferences</property> + <property name="use_header_bar">1</property> + <child internal-child="vbox"> + <object class="GtkBox" id="dialog-vbox1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <property name="border_width">0</property> + <child internal-child="action_area"> + <object class="GtkButtonBox" id="dialog-action_area1"> + <property name="visible">False</property> + <property name="can_focus">False</property> + <property name="layout_style">end</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkNotebook" id="notebook1"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="border_width">0</property> + <property name="show_border">False</property> + <child> + <object class="GtkBox" id="vbox1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="border_width">12</property> + <property name="orientation">vertical</property> + <property name="spacing">18</property> + <child> + <object class="GtkBox" id="vbox2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label4"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Default View</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkBox" id="vbox14"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkBox" id="hbox11"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="views_label_1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Arrange items:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">sort_order_combobox</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBox" id="sort_order_combobox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="model">model2</property> + <child> + <object class="GtkCellRendererText" id="renderer2"/> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="sort_folders_first_checkbutton"> + <property name="label" translatable="yes">Sort _folders before files</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + </object> + <packing> + <property name="tab_expand">True</property> + </packing> + </child> + <child type="tab"> + <object class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Views</property> + </object> + <packing> + <property name="tab_fill">False</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="border_width">12</property> + <property name="orientation">vertical</property> + <property name="spacing">10</property> + <child> + <object class="GtkBox" id="vbox6"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label10"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Behavior</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkBox" id="vbox17"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkRadioButton" id="single_click_radiobutton"> + <property name="label" translatable="yes">_Single click to open items</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkRadioButton" id="double_click_radiobutton"> + <property name="label" translatable="yes">_Double click to open items</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + <property name="group">single_click_radiobutton</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">6</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox7"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label12"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Executable Text Files</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment6"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkBox" id="vbox18"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkRadioButton" id="scripts_execute_radiobutton"> + <property name="label" translatable="yes">_Run executable text files when they are opened</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkRadioButton" id="scripts_view_radiobutton"> + <property name="label" translatable="yes">_View executable text files when they are opened</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + <property name="group">scripts_execute_radiobutton</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkRadioButton" id="scripts_confirm_radiobutton"> + <property name="label" translatable="yes">_Ask each time</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + <property name="group">scripts_execute_radiobutton</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox8"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label14"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Trash</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment7"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkBox" id="vbox19"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkCheckButton" id="trash_confirm_checkbutton"> + <property name="label" translatable="yes">Ask before _emptying the Trash or deleting files</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="use_action_appearance">False</property> + <property name="use_underline">True</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="position">1</property> + <property name="tab_expand">True</property> + </packing> + </child> + <child type="tab"> + <object class="GtkLabel" id="label2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Behavior</property> + </object> + <packing> + <property name="position">1</property> + <property name="tab_fill">False</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox26"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="border_width">12</property> + <property name="orientation">vertical</property> + <property name="spacing">18</property> + <child> + <object class="GtkBox" id="vbox27"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label28"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Icon Captions</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment8"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkBox" id="vbox28"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label29"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="wrap">True</property> + <property name="max-width-chars">65</property> + <property name="label" translatable="yes">Choose the order of information to appear beneath icon names. More information will appear when zooming in closer.</property> + <property name="wrap">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="hbox28"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkLabel" id="captions_label_0"> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBoxText" id="captions_0_combobox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="entry_text_column">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkBox" id="hbox29"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkLabel" id="captions_label_1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="use_underline">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBoxText" id="captions_1_combobox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="entry_text_column">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">2</property> + </packing> + </child> + <child> + <object class="GtkBox" id="hbox30"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkLabel" id="captions_label_2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBoxText" id="captions_2_combobox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="entry_text_column">0</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">3</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel" id="label7"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">List View</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment4"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkCheckButton" id="use_tree_view_checkbutton"> + <property name="label" translatable="yes">Navigate folders in a tree</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">2</property> + <property name="tab_expand">True</property> + </packing> + </child> + <child type="tab"> + <object class="GtkLabel" id="label24"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Display</property> + </object> + <packing> + <property name="position">2</property> + <property name="tab_fill">False</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox29"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="border_width">12</property> + <property name="orientation">vertical</property> + <property name="spacing">18</property> + <child> + <object class="GtkBox" id="vbox30"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkBox" id="list_columns_vbox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label33"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="wrap">True</property> + <property name="max-width-chars">65</property> + <property name="label" translatable="yes">Choose the order of information to appear in the list view.</property> + <property name="wrap">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + </object> + <packing> + <property name="position">3</property> + <property name="tab_expand">True</property> + </packing> + </child> + <child type="tab"> + <object class="GtkLabel" id="label30"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">List Columns</property> + </object> + <packing> + <property name="position">3</property> + <property name="tab_fill">False</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox9"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="border_width">12</property> + <property name="orientation">vertical</property> + <property name="spacing">18</property> + <child> + <object class="GtkBox" id="vbox11"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label18"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Files</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment11"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkBox" id="vbox21"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkBox" id="hbox20"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="preview_label_0"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Show _thumbnails:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">preview_image_combobox</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBox" id="preview_image_combobox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="model">model7</property> + <child> + <object class="GtkCellRendererText" id="renderer7"/> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="hbox21"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="preview_label_1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">_Only for files smaller than:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">preview_image_size_combobox</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBox" id="preview_image_size_combobox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="model">model8</property> + <child> + <object class="GtkCellRendererText" id="renderer8"/> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="vbox13"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkLabel" id="label22"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Folders</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkAlignment" id="alignment13"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="left_padding">12</property> + <child> + <object class="GtkBox" id="vbox23"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkBox" id="hbox23"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="spacing">12</property> + <child> + <object class="GtkLabel" id="preview_label_2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Count _number of items:</property> + <property name="use_underline">True</property> + <property name="mnemonic_widget">preview_folder_combobox</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkComboBox" id="preview_folder_combobox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="model">model10</property> + <child> + <object class="GtkCellRendererText" id="renderer10"/> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="position">4</property> + <property name="tab_expand">True</property> + </packing> + </child> + <child type="tab"> + <object class="GtkLabel" id="label3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Preview</property> + </object> + <packing> + <property name="position">4</property> + <property name="tab_fill">False</property> + </packing> + </child> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + </object> + <object class="GtkListStore" id="model1"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">Icon View</col> + </row> + <row> + <col id="0" translatable="yes">List View</col> + </row> + </data> + </object> + <object class="GtkListStore" id="model10"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">Always</col> + </row> + <row> + <col id="0" translatable="yes">Local Files Only</col> + </row> + <row> + <col id="0" translatable="yes">Never</col> + </row> + </data> + </object> + <object class="GtkListStore" id="model2"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">By Name</col> + </row> + <row> + <col id="0" translatable="yes">By Size</col> + </row> + <row> + <col id="0" translatable="yes">By Type</col> + </row> + <row> + <col id="0" translatable="yes">By Modification Date</col> + </row> + <row> + <col id="0" translatable="yes">By Access Date</col> + </row> + <row> + <col id="0" translatable="yes">By Trashed Date</col> + </row> + </data> + </object> + <object class="GtkListStore" id="model3"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">Small</col> + </row> + <row> + <col id="0" translatable="yes">Standard</col> + </row> + <row> + <col id="0" translatable="yes">Large</col> + </row> + </data> + </object> + <object class="GtkListStore" id="list_view_zoom_levels"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">Small</col> + </row> + <row> + <col id="0" translatable="yes">Standard</col> + </row> + <row> + <col id="0" translatable="yes">Large</col> + </row> + </data> + </object> + <object class="GtkListStore" id="icon_view_zoom_levels"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">Always</col> + </row> + <row> + <col id="0" translatable="yes">Local Files Only</col> + </row> + <row> + <col id="0" translatable="yes">Never</col> + </row> + </data> + </object> + <object class="GtkListStore" id="model7"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">Always</col> + </row> + <row> + <col id="0" translatable="yes">Local Files Only</col> + </row> + <row> + <col id="0" translatable="yes">Never</col> + </row> + </data> + </object> + <object class="GtkListStore" id="model8"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">100 KB</col> + </row> + <row> + <col id="0" translatable="yes">500 KB</col> + </row> + <row> + <col id="0" translatable="yes">1 MB</col> + </row> + <row> + <col id="0" translatable="yes">3 MB</col> + </row> + <row> + <col id="0" translatable="yes">5 MB</col> + </row> + <row> + <col id="0" translatable="yes">10 MB</col> + </row> + <row> + <col id="0" translatable="yes">100 MB</col> + </row> + <row> + <col id="0" translatable="yes">1 GB</col> + </row> + <row> + <col id="0" translatable="yes">2 GB</col> + </row> + <row> + <col id="0" translatable="yes">4 GB</col> + </row> + </data> + </object> + <object class="GtkListStore" id="model9"> + <columns> + <!-- column-name gchararray --> + <column type="gchararray"/> + </columns> + <data> + <row> + <col id="0" translatable="yes">Always</col> + </row> + <row> + <col id="0" translatable="yes">Local Files Only</col> + </row> + <row> + <col id="0" translatable="yes">Never</col> + </row> + </data> + </object> +</interface> diff --git a/src/resources/ui/nautilus-files-view-context-menus.ui b/src/resources/ui/nautilus-files-view-context-menus.ui new file mode 100644 index 000000000..df91fb87a --- /dev/null +++ b/src/resources/ui/nautilus-files-view-context-menus.ui @@ -0,0 +1,226 @@ +<?xml version="1.0"?> +<interface> + <menu id="background-menu"> + <item> + <attribute name="label" translatable="yes">New _Folder</attribute> + <attribute name="action">view.new-folder</attribute> + </item> + <submenu> + <attribute name="id">templates-submenu</attribute> + <attribute name="label" translatable="yes">New _Document</attribute> + <attribute name="action">view.new-document</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </submenu> + <section> + <item> + <attribute name="label" translatable="yes">_Paste</attribute> + <attribute name="action">view.paste</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Select _All</attribute> + <attribute name="action">view.select-all</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">P_roperties</attribute> + <attribute name="action">view.properties</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">_Keep aligned</attribute> + <attribute name="action">view.keep-aligned</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Organize _Desktop by Name</attribute> + <attribute name="action">view.organize-desktop-by-name</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Change _Background</attribute> + <attribute name="action">view.change-background</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <attribute name="id">extensions</attribute> + </section> + </menu> + <menu id="selection-menu"> + <section> + <attribute name="id">new-folder-with-selection-section</attribute> + </section> + <section> + <attribute name="id">open-with-default-application-section</attribute> + </section> + <submenu> + <attribute name="id">scripts-submenu</attribute> + <attribute name="label" translatable="yes">_Scripts</attribute> + <attribute name="action">view.scripts</attribute> + <attribute name="hidden-when">action-disabled</attribute> + <section> + <item> + <attribute name="label" translatable="yes">_Open Scripts Folder</attribute> + <attribute name="action">view.open-scripts-folder</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + </submenu> + <section> + <item> + <attribute name="label" translatable="yes">_Open Item Location</attribute> + <attribute name="action">view.open-item-location</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Open In New _Tab</attribute> + <attribute name="action">view.open-item-new-tab</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Open In New _Window</attribute> + <attribute name="action">view.open-item-new-window</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Open With Other _Application</attribute> + <attribute name="action">view.open-with-other-application</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <attribute name="id">drive-section</attribute> + <item> + <attribute name="label" translatable="yes">_Mount</attribute> + <attribute name="action">view.mount-volume</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Unmount</attribute> + <attribute name="action">view.unmount-volume</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Eject</attribute> + <attribute name="action">view.eject-volume</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Start</attribute> + <attribute name="action">view.start-volume</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Stop</attribute> + <attribute name="action">view.stop-volume</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Detect Media</attribute> + <attribute name="action">view.detect-media</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Cu_t</attribute> + <attribute name="action">view.cut</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Copy</attribute> + <attribute name="action">view.copy</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Paste Into Folder</attribute> + <attribute name="action">view.paste-into</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Move to…</attribute> + <attribute name="action">view.move-to</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Copy to…</attribute> + <attribute name="action">view.copy-to</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Mo_ve to Trash</attribute> + <attribute name="action">view.move-to-trash</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Delete from Trash</attribute> + <attribute name="action">view.delete-from-trash</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Delete Permanently</attribute> + <attribute name="action">view.delete-permanently-menu-item</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Empty Trash</attribute> + <attribute name="action">view.empty-trash</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">_Restore From Trash</attribute> + <attribute name="action">view.restore-from-trash</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Resize Icon…</attribute> + <attribute name="action">view.stretch</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Restore Icon's Original Size</attribute> + <attribute name="action">view.unstretch</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Rena_me</attribute> + <attribute name="action">view.rename</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Set As Wallpaper</attribute> + <attribute name="action">view.set-as-wallpaper</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">_Remove from Recent</attribute> + <attribute name="action">view.remove-from-recent</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <attribute name="id">extensions</attribute> + </section> + <section> + <item> + <attribute name="label" translatable="yes">P_roperties</attribute> + <attribute name="action">view.properties</attribute> + </item> + </section> + </menu> +</interface> diff --git a/src/resources/ui/nautilus-folder-is-empty.ui b/src/resources/ui/nautilus-folder-is-empty.ui new file mode 100644 index 000000000..be16c5765 --- /dev/null +++ b/src/resources/ui/nautilus-folder-is-empty.ui @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkGrid" id="folder_is_empty"> + <property name="visible">False</property> + <property name="row_spacing">12</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="halign">center</property> + <property name="valign">center</property> + <style> + <class name="dim-label"/> + </style> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="icon-name">folder-symbolic</property> + <property name="pixel-size">72</property> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="label" translatable="yes">Folder is Empty</property> + <attributes> + <attribute name="weight" value="bold"/> + <attribute name="scale" value="1.44"/> + </attributes> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">1</property> + </packing> + </child> + </object> +</interface> diff --git a/src/resources/ui/nautilus-move-to-trash-shortcut-changed.ui b/src/resources/ui/nautilus-move-to-trash-shortcut-changed.ui new file mode 100644 index 000000000..6de8b2b08 --- /dev/null +++ b/src/resources/ui/nautilus-move-to-trash-shortcut-changed.ui @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.18.3 --> +<interface> + <requires lib="gtk+" version="3.12"/> + <object class="GtkMessageDialog" id="move_to_trash_shortcut_changed_dialog"> + <property name="resizable">False</property> + <property name="modal">True</property> + <property name="window_position">center-on-parent</property> + <property name="destroy_with_parent">True</property> + <property name="type_hint">dialog</property> + <property name="text" translatable="yes">Delete Shortcuts Have Changed</property> + <property name="secondary_text" translatable="yes">With the latest version of Files, you no longer need to hold Ctrl to delete — the Delete key will work when pressed on its own.</property> + <child type="action"> + <object class="GtkButton" id="button_got_it"> + <property name="label" translatable="yes">Got it</property> + <property name="visible">True</property> + </object> + </child> + <action-widgets> + <action-widget response="ok">button_got_it</action-widget> + </action-widgets> + </object> +</interface> diff --git a/src/resources/ui/nautilus-no-search-results.ui b/src/resources/ui/nautilus-no-search-results.ui new file mode 100644 index 000000000..4811ed437 --- /dev/null +++ b/src/resources/ui/nautilus-no-search-results.ui @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkGrid" id="no_search_results"> + <property name="visible">False</property> + <property name="row_spacing">12</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <property name="halign">center</property> + <property name="valign">center</property> + <style> + <class name="dim-label"/> + </style> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="icon-name">edit-find-symbolic</property> + <property name="pixel-size">72</property> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">0</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="label" translatable="yes">No Results Found</property> + <attributes> + <attribute name="weight" value="bold"/> + <attribute name="scale" value="1.44"/> + </attributes> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">1</property> + </packing> + </child> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="label" translatable="yes">Try a different search</property> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">2</property> + </packing> + </child> + </object> +</interface> diff --git a/src/resources/ui/nautilus-pathbar-context-menu.ui b/src/resources/ui/nautilus-pathbar-context-menu.ui new file mode 100644 index 000000000..11b68857d --- /dev/null +++ b/src/resources/ui/nautilus-pathbar-context-menu.ui @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <menu id="pathbar-menu"> + <section> + <item> + <attribute name="label" translatable="yes">Open In New _Tab</attribute> + <attribute name="action">pathbar.open-item-new-tab</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Open In New _Window</attribute> + <attribute name="action">pathbar.open-item-new-window</attribute> + <attribute name="hidden-when">action-disabled</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">P_roperties</attribute> + <attribute name="action">pathbar.properties</attribute> + </item> + </section> + </menu> +</interface> diff --git a/src/resources/ui/nautilus-progress-info-widget.ui b/src/resources/ui/nautilus-progress-info-widget.ui new file mode 100644 index 000000000..3eace47df --- /dev/null +++ b/src/resources/ui/nautilus-progress-info-widget.ui @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <template class="NautilusProgressInfoWidget" parent="GtkGrid"> + <property name="visible">True</property> + <property name="margin-start">5</property> + <property name="margin-end">5</property> + <child> + <object class="GtkLabel" id="status"> + <property name="label">status</property> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="width-request">300</property> + <property name="max-width-chars">30</property> + <property name="ellipsize">middle</property> + <property name="margin-bottom">6</property> + </object> + <packing> + <property name="top-attach">0</property> + <property name="left-attach">0</property> + </packing> + </child> + <child> + <object class="GtkProgressBar" id="progress_bar"> + <property name="visible">True</property> + <property name="valign">center</property> + <property name="pulse-step">0.05</property> + <property name="margin_start">2</property> + <property name="margin-bottom">4</property> + </object> + <packing> + <property name="top-attach">1</property> + <property name="left-attach">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="cancel"> + <property name="visible">True</property> + <property name="receives_default">True</property> + <property name="margin_start">20</property> + <property name="valign">center</property> + <style> + <class name="image-button"/> + <class name="nautilus-circular-button"/> + </style> + <child> + <object class="GtkImage" id="cancel_icon"> + <property name="visible">True</property> + <property name="icon-name">window-close-symbolic</property> + <property name="icon-size">1</property> + </object> + </child> + </object> + <packing> + <property name="height">3</property> + <property name="top-attach">0</property> + <property name="left-attach">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="details"> + <property name="label">details</property> + <property name="visible">True</property> + <property name="label" translatable="no">label</property> + <property name="ellipsize">end</property> + <property name="xalign">0</property> + <property name="wrap">True</property> + <property name="wrap-mode">word-char</property> + <style> + <class name="dim-label"/> + </style> + </object> + <packing> + <property name="top-attach">2</property> + <property name="left-attach">0</property> + </packing> + </child> + </template> +</interface> diff --git a/src/resources/ui/nautilus-remote-warning-bar.ui b/src/resources/ui/nautilus-remote-warning-bar.ui new file mode 100644 index 000000000..322289102 --- /dev/null +++ b/src/resources/ui/nautilus-remote-warning-bar.ui @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkActionBar" id="remote_warning_bar"> + <child type="center"> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="label" translatable="yes">Remote location — only searching the current folder</property> + </object> + </child> + </object> +</interface> diff --git a/src/resources/ui/nautilus-rename-file-popover.ui b/src/resources/ui/nautilus-rename-file-popover.ui new file mode 100644 index 000000000..ff60a97f5 --- /dev/null +++ b/src/resources/ui/nautilus-rename-file-popover.ui @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class="GtkPopover" id="rename_file_popover"> + <property name="position">bottom</property> + <signal name="closed" handler="rename_file_popover_on_closed"/> + <signal name="unmap" handler="rename_file_popover_on_unmap"/> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <property name="margin">10</property> + <property name="row-spacing">6</property> + <property name="column-spacing">6</property> + <child> + <object class="GtkLabel" id="name_label"> + <property name="visible">True</property> + <property name="label" translatable="yes">Name</property> + <property name="halign">start</property> + <property name="mnemonic_widget">name_entry</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="width">2</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="name_entry"> + <property name="visible">True</property> + <property name="activates-default">True</property> + <signal name="changed" handler="file_name_widget_entry_on_changed" swapped="yes" /> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">1</property> + </packing> + </child> + <child> + <object class="GtkButton" id="rename_button"> + <property name="visible">True</property> + <property name="sensitive">False</property> + <property name="label" translatable="yes">_Rename</property> + <property name="use_underline">True</property> + <property name="can_default">True</property> + <signal name="clicked" handler="file_name_widget_on_activate" swapped="yes" /> + <style> + <class name="suggested-action"/> + </style> + </object> + <packing> + <property name="left-attach">1</property> + <property name="top-attach">1</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="error_label"> + <property name="visible">True</property> + <property name="halign">start</property> + </object> + <packing> + <property name="left-attach">0</property> + <property name="top-attach">2</property> + <property name="width">2</property> + </packing> + </child> + </object> + </child> + </object> +</interface> diff --git a/src/resources/ui/nautilus-toolbar-action-menu.ui b/src/resources/ui/nautilus-toolbar-action-menu.ui new file mode 100644 index 000000000..a0eefd658 --- /dev/null +++ b/src/resources/ui/nautilus-toolbar-action-menu.ui @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <menu id="action-menu"> + <section> + <item> + <attribute name="label" translatable="yes">New _Folder</attribute> + <attribute name="action">view.new-folder</attribute> + </item> + <item> + <attribute name="label" translatable="yes">New _Tab</attribute> + <attribute name="action">win.new-tab</attribute> + </item> + </section> + <section> + <attribute name="id">undo-redo-section</attribute> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Select _All</attribute> + <attribute name="action">view.select-all</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Enter _Location</attribute> + <attribute name="action">win.enter-location</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">_Bookmark this Location</attribute> + <attribute name="action">win.bookmark-current-location</attribute> + </item> + </section> + </menu> +</interface>
\ No newline at end of file diff --git a/src/resources/ui/nautilus-toolbar-ui.ui b/src/resources/ui/nautilus-toolbar-ui.ui new file mode 100644 index 000000000..8e47f0815 --- /dev/null +++ b/src/resources/ui/nautilus-toolbar-ui.ui @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.8 --> + <template class="NautilusToolbar" parent="GtkHeaderBar"> + <property name="visible">True</property> + <property name="show-close-button">True</property> + <child> + <object class="GtkBox" id="navigation_box"> + <property name="visible">True</property> + <property name="orientation">horizontal</property> + <style> + <class name="linked"/> + <class name="raised"/> + </style> + <child> + <object class="GtkButton" id="back_button"> + <property name="visible">True</property> + <property name="sensitive">True</property> + <property name="action_name">win.back</property> + <style> + <class name="image-button"/> + </style> + <child> + <object class="GtkImage" id="back_icon"> + <property name="visible">True</property> + <property name="icon-name">go-previous-symbolic</property> + <property name="icon-size">1</property> + </object> + </child> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child> + <object class="GtkButton" id="forward_button"> + <property name="visible">True</property> + <property name="sensitive">True</property> + <property name="action_name">win.forward</property> + <style> + <class name="image-button"/> + </style> + <child> + <object class="GtkImage" id="forward_icon"> + <property name="visible">True</property> + <property name="icon-name">go-next-symbolic</property> + <property name="icon-size">1</property> + </object> + </child> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child> + <object class="GtkBox" id="path_bar_container"> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child> + <object class="GtkBox" id="location_entry_container"> + </object> + <packing> + <property name="pack-type">start</property> + </packing> + </child> + <child> + <object class="GtkMenuButton" id="action_button"> + <property name="visible">True</property> + <property name="sensitive">True</property> + <property name="action_name">win.action-menu</property> + <style> + <class name="image-button"/> + </style> + <child> + <object class="GtkImage" id="action_icon"> + <property name="visible">True</property> + <property name="icon-name">open-menu-symbolic</property> + <property name="icon-size">1</property> + </object> + </child> + <child internal-child="accessible"> + <object class="AtkObject"> + <property name="accessible-name" translatable="yes">Action menu</property> + <property name="accessible-description" translatable="yes">Open action menu</property> + </object> + </child> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + <child> + <object class="GtkMenuButton" id="view_button"> + <property name="visible">True</property> + <property name="sensitive">True</property> + <style> + <class name="image-button"/> + </style> + <child> + <object class="GtkImage" id="view_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> + </object> + </child> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + <child> + <object class="GtkToggleButton" id="search_button"> + <property name="visible">True</property> + <property name="sensitive">True</property> + <property name="action_name">slot.search-visible</property> + <style> + <class name="image-button"/> + </style> + <child> + <object class="GtkImage" id="search_icon"> + <property name="visible">True</property> + <property name="icon-name">edit-find-symbolic</property> + <property name="icon-size">1</property> + </object> + </child> + <child internal-child="accessible"> + <object class="AtkObject"> + <property name="accessible-name" translatable="yes">Search</property> + <property name="accessible-description" translatable="yes">Search files</property> + </object> + </child> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + <child> + <object class="GtkRevealer" id="operations_revealer"> + <property name="visible">True</property> + <property name="transition-type">GTK_REVEALER_TRANSITION_TYPE_CROSSFADE</property> + <child> + <object class="GtkMenuButton" id="operations_button"> + <property name="visible">False</property> + <property name="popover">operations_popover</property> + <signal name="toggled" handler="on_operations_button_toggled" object="NautilusToolbar" swapped="yes"/> + <style> + <class name="button"/> + </style> + <child> + <object class="GtkDrawingArea" id="operations_icon"> + <property name="visible">True</property> + <property name="height-request">16</property> + <property name="width-request">16</property> + <property name="valign">GTK_ALIGN_CENTER</property> + <property name="halign">GTK_ALIGN_CENTER</property> + <signal name="draw" handler="on_operations_icon_draw" object="NautilusToolbar" swapped="no"/> + </object> + </child> + <child internal-child="accessible"> + <object class="AtkObject"> + <property name="accessible-name" translatable="yes">Operations in progress</property> + <property name="accessible-description" translatable="yes">Open operations in progress</property> + </object> + </child> + </object> + </child> + </object> + <packing> + <property name="pack-type">end</property> + </packing> + </child> + </template> + <object class="GtkPopover" id="operations_popover"> + <property name="modal">false</property> + <property name="relative-to">operations_button</property> + <child> + <object class="GtkScrolledWindow"> + <property name="visible">True</property> + <property name="hscrollbar_policy">GTK_POLICY_NEVER</property> + <property name="min-content-height">270</property> + <child> + <object class="GtkBox" id="operations_container"> + <property name="orientation">vertical</property> + <property name="visible">True</property> + <property name="margin">12</property> + <property name="spacing">10</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 new file mode 100644 index 000000000..d8d57e49d --- /dev/null +++ b/src/resources/ui/nautilus-toolbar-view-menu.ui @@ -0,0 +1,226 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <object class ="GtkPopoverMenu" id="view_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="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">'grid'</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">'list'</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> + <property name="draw_value">False</property> + <property name="has_origin">False</property> + <property name="adjustment">zoom_adjustment</property> + <property name="round_digits">0</property> + <property name="restrict_to_fill_level">False</property> + <marks> + <mark value="0" position="bottom"/> + <mark value="1" position="bottom"/> + <mark value="2" position="bottom"/> + </marks> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + <child> + <object class="GtkBox" id="sort_menu"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="orientation">vertical</property> + <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="GtkLabel" id="sort_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">start</property> + <property name="label" translatable="yes">Sort</property> + <property name="margin-start">12</property> + <style> + <class name="separator"/> + </style> + </object> + </child> + <child> + <object class="GtkModelButton" id="sort_name"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes" context="Sort Criterion" comments="This is used to sort by name in the toolbar view menu">_Name</property> + <property name="action-name">view.sort</property> + <property name="action-target">'name'</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="sort_size"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">_Size</property> + <property name="action-name">view.sort</property> + <property name="action-target">'size'</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="sort_type"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">_Type</property> + <property name="action-name">view.sort</property> + <property name="action-target">'type'</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="sort_modification_date"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">Last _Modified</property> + <property name="action-name">view.sort</property> + <property name="action-target">'modification-date'</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="sort_trash_time"> + <property name="visible">False</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">Last _Trashed</property> + <property name="action-name">view.sort</property> + <property name="action-target">'trash-time'</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="sort_search_relevance"> + <property name="visible">False</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">Search _Relevance</property> + <property name="action-name">view.sort</property> + <property name="action-target">'search-relevance'</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="reversed_order"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">Re_verse Order</property> + <property name="action-name">view.reversed-order</property> + </object> + </child> + </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="visible_columns"> + <property name="visible">False</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">_Visible Columns…</property> + <property name="action-name">view.visible-columns</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="show_hidden_files"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">Show _Hidden Files</property> + <property name="action-name">view.show-hidden-files</property> + </object> + </child> + <child> + <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="action-name">win.reload</property> + </object> + </child> + <child> + <object class="GtkModelButton" id="stop"> + <property name="visible">False</property> + <property name="can_focus">True</property> + <property name="text" translatable="yes">St_op</property> + <property name="action-name">win.stop</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">2</property> + <property name="step_increment">1</property> + <property name="page_increment">1</property> + <property name="value">1</property> + </object> +</interface> diff --git a/src/resources/ui/nautilus-window.ui b/src/resources/ui/nautilus-window.ui new file mode 100644 index 000000000..b23e3a5a4 --- /dev/null +++ b/src/resources/ui/nautilus-window.ui @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <template class="NautilusWindow" parent="GtkApplicationWindow"> + <property name="show-menubar">False</property> + <property name="title" translatable="yes">_Files</property> + <property name="icon-name">system-file-manager</property> + <child type="titlebar"> + <object class="NautilusToolbar" id="toolbar"> + <!-- We override the title widget so the GtkHeaderBar stop managing the + title label automatically, since we use the NautilusPathBar. We need to set it + here rather than in the NautilusToolbar definition due to bug 744324 on + gtk+ . --> + <child type="title"> + <object class="GtkLabel"> + </object> + </child> + </object> + </child> + <child> + <object class="GtkGrid"> + <property name="visible">True</property> + <child> + <object class="GtkPaned" id="content_paned"> + <property name="visible">True</property> + <property name="vexpand">True</property> + <property name="hexpand">True</property> + <child> + <object class="GtkBox" id="sidebar"> + <property name="visible">False</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> + <child> + <object class="GtkPlacesSidebar" id="places_sidebar"> + <property name="visible">True</property> + <property name="populate-all">True</property> + <property name="show-other-locations">True</property> + <signal name="show-other-locations" handler="places_sidebar_show_other_locations" object="NautilusWindow" swapped="yes" /> + </object> + <packing> + <property name="pack_type">start</property> + <property name="expand">True</property> + <property name="fill">True</property> + </packing> + </child> + </object> + <packing> + <property name="resize">False</property> + <property name="shrink">False</property> + </packing> + </child> + <child> + <object class="GtkOverlay" id="main_view"> + <property name="visible">True</property> + <child> + <object class="NautilusNotebook" id="notebook"> + <property name="visible">True</property> + <property name="show-tabs">False</property> + <property name="show-border">False</property> + </object> + </child> + <child type="overlay"> + <object class="GtkRevealer" id="notification_delete"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">center</property> + <property name="valign">start</property> + <property name="transition_duration">100</property> + <child> + <object class="GtkFrame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_start">12</property> + <property name="margin_end">4</property> + <child> + <object class="GtkLabel" id="notification_delete_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="max_width_chars">50</property> + <property name="ellipsize">middle</property> + <property name="margin_end">30</property> + </object> + </child> + <child> + <object class="GtkButton" id="notification_delete_undo"> + <property name="label" translatable="yes">Undo</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="no_show_all">True</property> + <property name="margin_end">6</property> + <style> + <class name="text-button"/> + </style> + </object> + </child> + <child> + <object class="GtkButton" id="notification_delete_close"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="relief">none</property> + <property name="focus_on_click">False</property> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">window-close-symbolic</property> + <property name="icon_size">2</property> + </object> + </child> + <style> + <class name="image-button"/> + </style> + </object> + </child> + </object> + </child> + <style> + <class name="app-notification"/> + </style> + </object> + </child> + </object> + </child> + <child type="overlay"> + <object class="GtkRevealer" id="notification_operation"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="halign">center</property> + <property name="valign">start</property> + <property name="transition_duration">100</property> + <child> + <object class="GtkFrame"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="margin_start">12</property> + <property name="margin_end">4</property> + <child> + <object class="GtkLabel" id="notification_operation_label"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="max_width_chars">50</property> + <property name="ellipsize">middle</property> + <property name="margin_end">30</property> + </object> + </child> + <child> + <object class="GtkButton" id="notification_operation_open"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="no_show_all">True</property> + <property name="margin_end">6</property> + <signal name="clicked" handler="on_notification_operation_open_clicked" object="NautilusWindow" swapped="no"/> + <style> + <class name="text-button"/> + </style> + </object> + </child> + <child> + <object class="GtkButton" id="notification_operation_close"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="relief">none</property> + <property name="focus_on_click">False</property> + <signal name="clicked" handler="on_notification_operation_close_clicked" object="NautilusWindow" swapped="no"/> + <child> + <object class="GtkImage"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">window-close-symbolic</property> + <property name="icon_size">2</property> + </object> + </child> + <style> + <class name="image-button"/> + </style> + </object> + </child> + </object> + </child> + <style> + <class name="app-notification"/> + </style> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </child> + </template> +</interface> |