summaryrefslogtreecommitdiff
path: root/examples/bp/gtk/menus.ui
blob: e81f0a442f39281e985044a6ae9f66cfb8332be5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="UTF-8"?>

<interface>
  <menu id="app-menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">_New Window</attribute>
        <attribute name="action">app.new</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_About Bloatpad</attribute>
        <attribute name="hidden-when">macos-menubar</attribute>
        <attribute name="action">app.about</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_Quit</attribute>
        <attribute name="hidden-when">macos-menubar</attribute>
        <attribute name="action">app.quit</attribute>
      </item>
    </section>
  </menu>
  <menu id="menubar">
    <submenu>
      <attribute name="label" translatable="yes">_Edit</attribute>
      <section>
        <item>
          <attribute name="label" translatable="yes">_Copy</attribute>
          <attribute name="action">win.copy</attribute>
        </item>
        <item>
          <attribute name="label" translatable="yes">_Paste</attribute>
          <attribute name="action">win.paste</attribute>
        </item>
      </section>
      <section>
        <item>
          <!-- action should never be missing (so always shown) -->
          <attribute name="label">Clear (always shown)</attribute>
          <attribute name="action">win.clear</attribute>
          <attribute name="hidden-when">action-missing</attribute>
        </item>
        <item>
          <attribute name="label">Clear (hidden when no text)</attribute>
          <attribute name="hidden-when">action-disabled</attribute>
          <attribute name="action">win.clear</attribute>
        </item>
        <item>
          <attribute name="label">Spell check (does nothing, hides)</attribute>
          <attribute name="hidden-when">action-missing</attribute>
          <attribute name="action">win.spell-check</attribute>
        </item>
      </section>
      <section>
        <item>
          <attribute name="label" translatable="yes">Accelerators...</attribute>
          <attribute name="action">app.edit-accels</attribute>
        </item>
      </section>
      <section>
        <item>
          <attribute name="label" translatable="yes">Shortcuts...</attribute>
          <attribute name="action">win.show-help-overlay</attribute>
        </item>
      </section>
    </submenu>
    <submenu>
      <attribute name="label" translatable="yes">_View</attribute>
      <section>
        <item>
          <attribute name="label" translatable="yes">_Fullscreen</attribute>
          <attribute name="action">win.fullscreen</attribute>
        </item>
        <item>
          <attribute name="label" translatable="yes">_Look Busy</attribute>
          <attribute name="action">win.busy</attribute>
        </item>
      </section>
    </submenu>
    <submenu id="icon-menu">
      <attribute name="label" translatable="yes">_Icons</attribute>
    </submenu>
    <submenu id="time-menu">
      <attribute name="label" translatable="yes">Time</attribute>
      <attribute name="submenu-action">app.time-active</attribute>
    </submenu>
  </menu>
</interface>