1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-04 16:48:55 +00:00
evince/shell/evince-toolbar.ui
Germán Poo-Caamaño 64ef4464fd shell: Save settings automatically at closing a document
Remove 'Save curent settings as default` because it was confusing,
and a non-standard action in the desktop.

Save exactly the same settings once we know the document will be
closed, and when there is an actual document opened (e.g. not in
recent view).

Fixes #1138
2023-03-22 15:30:52 +00:00

221 lines
8.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="EvToolbar" parent="GtkBin">
<child>
<object class="HdyHeaderBar" id="header_bar">
<property name="visible">true</property>
<child>
<object class="GtkButton" id="open_button">
<property name="action-name">win.open</property>
<property name="label" translatable="yes">Open…</property>
<property name="tooltip-text" translatable="yes">Open an existing document</property>
</object>
<packing>
<property name="pack-type">start</property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="sidebar_button">
<property name="action-name">win.show-side-pane</property>
<property name="tooltip-text" translatable="yes">Side pane</property>
<child>
<object class="GtkImage">
<property name="icon-name">view-sidebar-symbolic</property>
<property name="icon-size">1</property>
<property name="visible">true</property>
</object>
</child>
</object>
<packing>
<property name="pack-type">start</property>
</packing>
</child>
<child>
<object class="EvPageActionWidget" id="page_selector">
<property name="tooltip-text" translatable="yes">Select page or search in the outline</property>
<child internal-child="accessible">
<object class="AtkObject">
<property name="AtkObject::accessible-name" translatable="yes">Select page</property>
</object>
</child>
</object>
<packing>
<property name="pack-type">start</property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="annots_button">
<property name="action-name">win.toggle-edit-annots</property>
<property name="tooltip-text" translatable="yes">Annotate the document</property>
<child>
<object class="GtkImage">
<property name="icon-name">document-edit-symbolic</property>
<property name="icon-size">1</property>
<property name="visible">true</property>
</object>
</child>
<child internal-child="accessible">
<object class="AtkObject">
<property name="AtkObject::accessible-name" translatable="yes">Annotate document</property>
</object>
</child>
</object>
<packing>
<property name="pack-type">start</property>
</packing>
</child>
<child>
<object class="GtkMenuButton" id="action_menu_button">
<property name="direction">1</property>
<property name="tooltip-text" translatable="yes">File options</property>
<property name="menu-model">action-menu</property>
<child>
<object class="GtkImage">
<property name="icon-name">open-menu-symbolic</property>
<property name="icon-size">1</property>
<property name="visible">true</property>
</object>
</child>
<child internal-child="accessible">
<object class="AtkObject">
<property name="AtkObject::accessible-name" translatable="yes">File options</property>
</object>
</child>
</object>
<packing>
<property name="pack-type">end</property>
</packing>
</child>
<child>
<object class="GtkToggleButton" id="find_button">
<property name="action-name">win.toggle-find</property>
<signal name="notify::sensitive" handler="ev_toolbar_find_button_sensitive_changed"/>
<child>
<object class="GtkImage">
<property name="icon-name">edit-find-symbolic</property>
<property name="icon-size">1</property>
<property name="visible">true</property>
</object>
</child>
</object>
<packing>
<property name="pack-type">end</property>
</packing>
</child>
<child>
<object class="EvZoomAction" id="zoom_action">
<signal name="activated" handler="ev_toolbar_zoom_selector_activated"/>
<child internal-child="accessible">
<object class="AtkObject">
<property name="AtkObject::accessible-name" translatable="yes">Set zoom level</property>
</object>
</child>
</object>
<packing>
<property name="pack-type">end</property>
</packing>
</child>
</object>
</child>
</template>
<menu id="action-menu">
<section>
<attribute name="display-hint">horizontal-buttons</attribute>
<item>
<attribute name="label" translatable="yes">Print…</attribute>
<attribute name="action">win.print</attribute>
<attribute name="verb-icon">printer-symbolic</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Fullscreen</attribute>
<attribute name="action">win.fullscreen</attribute>
<attribute name="verb-icon">view-fullscreen-symbolic</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Send To…</attribute>
<attribute name="action">win.send-to</attribute>
<attribute name="verb-icon">send-to-symbolic</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">New _Window</attribute>
<attribute name="action">win.new</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Open a C_opy</attribute>
<attribute name="action">win.open-copy</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Open Containing _Folder</attribute>
<attribute name="action">win.open-containing-folder</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Save As…</attribute>
<attribute name="action">win.save-as</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Present as _Slideshow</attribute>
<attribute name="action">win.presentation</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Continuous</attribute>
<attribute name="action">win.continuous</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Dual</attribute>
<attribute name="action">win.dual-page</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Odd Pages Left</attribute>
<attribute name="action">win.dual-odd-left</attribute>
</item>
<item>
<attribute name="label" translatable="yes">Right to Left Document</attribute>
<attribute name="action">win.rtl</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Ro_tate ⤵</attribute>
<attribute name="action">win.rotate-right</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Ni_ght Mode</attribute>
<attribute name="action">win.inverted-colors</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Prop_erties</attribute>
<attribute name="action">win.show-properties</attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">win.show-help-overlay</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Help</attribute>
<attribute name="action">win.help</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Document Viewer</attribute>
<attribute name="action">win.about</attribute>
</item>
</section>
</menu>
</interface>