mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
310781ecdd
This example implements the mockups from the help overlay design, showing off the various features of GtkShortcutsWindow.
182 lines
7.9 KiB
XML
182 lines
7.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.17 -->
|
|
|
|
<object class="GFileIcon" id="left-swipe-icon">
|
|
<property name="file">resource:///icons/gesture-two-finger-swipe-left.svg</property>
|
|
</object>
|
|
<object class="GFileIcon" id="right-swipe-icon">
|
|
<property name="file">resource:///icons/gesture-two-finger-swipe-right.svg</property>
|
|
</object>
|
|
|
|
<object class="GtkShortcutsWindow" id="shortcuts-gedit">
|
|
<property name="modal">1</property>
|
|
<child>
|
|
<object class="GtkShortcutsSection">
|
|
<property name="visible">1</property>
|
|
<property name="section-name">shortcuts</property>
|
|
<property name="max-height">12</property>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Touchpad gestures</property>
|
|
<child>
|
|
<object class="GtkShortcutsGesture">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Switch to the next document</property>
|
|
<property name="subtitle" translatable="yes">Two finger swipe right</property>
|
|
<property name="icon">right-swipe-icon</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsGesture">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Switch to the previous document</property>
|
|
<property name="subtitle" translatable="yes">Two finger swipe left</property>
|
|
<property name="icon">left-swipe-icon</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Documents</property>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>N</property>
|
|
<property name="title" translatable="yes">Create new document</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>O</property>
|
|
<property name="title" translatable="yes">Open a document</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>S</property>
|
|
<property name="title" translatable="yes">Save the document</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>W</property>
|
|
<property name="title" translatable="yes">Close the document</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl><Alt>Page_Down</property>
|
|
<property name="title" translatable="yes">Switch to the next document</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl><Alt>Page_Up</property>
|
|
<property name="title" translatable="yes">Switch to the previous document</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Find and Replace</property>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>F</property>
|
|
<property name="title" translatable="yes">Find</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>G</property>
|
|
<property name="title" translatable="yes">Find the next match</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl><Shift>G</property>
|
|
<property name="title" translatable="yes">Find the previous match</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>H</property>
|
|
<property name="title" translatable="yes">Find and Replace</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl><Shift>K</property>
|
|
<property name="title" translatable="yes">Clear highlight</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>I</property>
|
|
<property name="title" translatable="yes">Go to line</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Tools</property>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><shift>F7</property>
|
|
<property name="title" translatable="yes">Check spelling</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Miscellaneous</property>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator">F11</property>
|
|
<property name="title" translatable="yes">Fullscreen on / off</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><ctrl>P</property>
|
|
<property name="title" translatable="yes">Print the document</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator">Insert</property>
|
|
<property name="title" translatable="yes">Toggle insert / overwrite</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
|
|
</interface>
|