Use GTK Composite Templates for GUI elements to clean up and simplify the code for widgets and all UI elements. This includes splitting the large “gtk.glade” file into smaller .ui files and the large “widgets.py” file into smaller .py files.
122 lines
5.3 KiB
XML
122 lines
5.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.18"/>
|
|
<template class="McgShortcutsDialog" parent="GtkShortcutsWindow">
|
|
<property name="modal">True</property>
|
|
<child>
|
|
<object class="GtkShortcutsSection">
|
|
<property name="visible">1</property>
|
|
<property name="section-name">shortcuts</property>
|
|
<property name="max-height">10</property>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">General</property>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>KP_1</property>
|
|
<property name="title" translatable="yes">Switch to the Connection panel</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>KP_2</property>
|
|
<property name="title" translatable="yes">Switch to the Cover panel</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>KP_3</property>
|
|
<property name="title" translatable="yes">Switch to the Playlist panel</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>KP_4</property>
|
|
<property name="title" translatable="yes">Switch to the Library panel</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>k</property>
|
|
<property name="title" translatable="yes">Show the keyboard shortcuts</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>i</property>
|
|
<property name="title" translatable="yes">Open the info dialog</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>q</property>
|
|
<property name="title" translatable="yes">Quit the application</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Player</property>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>c</property>
|
|
<property name="title" translatable="yes">Connect or disconnect</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>p</property>
|
|
<property name="title" translatable="yes">Switch between play and pause</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>r</property>
|
|
<property name="title" translatable="yes">Clear the playlist</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Cover Panel</property>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator">F11</property>
|
|
<property name="title" translatable="yes">Show the cover in fullscreen mode</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkShortcutsGroup">
|
|
<property name="visible">1</property>
|
|
<property name="title" translatable="yes">Library Panel</property>
|
|
<child>
|
|
<object class="GtkShortcutsShortcut">
|
|
<property name="visible">1</property>
|
|
<property name="accelerator"><primary>f</property>
|
|
<property name="title" translatable="yes">Search the library</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|