diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:39:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:39:48 +0000 |
commit | 3ade071f273aaa973e44bf95d6b1d4913a18f03b (patch) | |
tree | e2f99d267ae18427645404f215b984afbe73098d /src/resources/ui/nautilus-window.ui | |
parent | Initial commit. (diff) | |
download | nautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.tar.xz nautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.zip |
Adding upstream version 43.2.upstream/43.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/resources/ui/nautilus-window.ui')
-rw-r--r-- | src/resources/ui/nautilus-window.ui | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/src/resources/ui/nautilus-window.ui b/src/resources/ui/nautilus-window.ui new file mode 100644 index 0000000..d8db7f7 --- /dev/null +++ b/src/resources/ui/nautilus-window.ui @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk" version="4.0"/> + <menu id="tab_menu_model"> + <section> + <item> + <attribute name="label" translatable="yes">_New Tab</attribute> + <attribute name="action">win.new-tab</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Move Tab _Left</attribute> + <attribute name="action">win.tab-move-left</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Move Tab _Right</attribute> + <attribute name="action">win.tab-move-right</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">_Close Tab</attribute> + <attribute name="action">win.close-current-view</attribute> + </item> + </section> + </menu> + <template class="NautilusWindow" parent="AdwApplicationWindow"> + <property name="show-menubar">False</property> + <property name="title" translatable="yes">_Files</property> + <child> + <object class="AdwToastOverlay" id="toast_overlay"> + <property name="child"> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <child> + <object class="NautilusToolbar" id="toolbar"> + <property name="show-sidebar-button" bind-source="content_flap" bind-property="folded" bind-flags="sync-create"/> + <property name="sidebar-button-active" bind-source="content_flap" bind-property="reveal-flap" bind-flags="bidirectional|sync-create"/> + <property name="show-toolbar-children" bind-source="content_flap" bind-property="folded" bind-flags="sync-create|invert-boolean"/> + <property name="window-slot" bind-source="NautilusWindow" bind-property="active-slot" bind-flags="sync-create"/> + </object> + </child> + <child> + <object class="AdwFlap" id="content_flap"> + <property name="swipe-to-close" bind-source="content_flap" bind-property="folded" bind-flags="sync-create"/> + <child type="flap"> + <object class="NautilusGtkPlacesSidebar" id="places_sidebar"> + <property name="vexpand">True</property> + <property name="show-other-locations">True</property> + <property name="show-starred-location">True</property> + <property name="width-request">240</property> + <style> + <class name="background"/> + </style> + </object> + </child> + <child type="separator"> + <object class="GtkSeparator"/> + </child> + <child> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <property name="width-request">360</property> + <child> + <object class="AdwTabBar"> + <property name="view">tab_view</property> + </object> + </child> + <child> + <object class="AdwTabView" id="tab_view"> + <property name="menu-model">tab_menu_model</property> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkActionBar"> + <property name="revealed" bind-source="content_flap" bind-property="folded" bind-flags="sync-create"/> + <child type="start"> + <object class="NautilusHistoryControls"> + <property name="window-slot" bind-source="NautilusWindow" bind-property="active-slot" bind-flags="sync-create"/> + </object> + </child> + <child type="end"> + <object class="GtkBox"> + <property name="spacing">6</property> + <child> + <object class="NautilusProgressIndicator"/> + </child> + <child> + <object class="NautilusViewControls"> + <property name="window-slot" bind-source="NautilusWindow" bind-property="active-slot" bind-flags="sync-create"/> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </property> + </object> + </child> + </template> +</interface> |