webapp-additional-urls-dialog.ui 5.51 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <!-- interface-requires gtk+ 3.10 -->
  <object class="GtkListStore" id="liststore">
    <columns>
      <!-- column-name URL -->
      <column type="gchararray"/>
    </columns>
  </object>
  <template class="EphyWebappAdditionalURLsDialog" parent="GtkDialog">
    <property name="modal">True</property>
12
    <property name="window_position">center-on-parent</property>
13
14
15
16
    <property name="default_width">300</property>
    <property name="default_height">400</property>
    <property name="destroy_with_parent">True</property>
    <property name="type_hint">dialog</property>
17
    <property name="title" translatable="yes">Additional URLs</property>
18
19
20
    <child internal-child="vbox">
      <object class="GtkBox">
        <child>
21
          <object class="GtkLabel">
22
            <property name="visible">True</property>
23
            <property name="xalign">0</property>
24
25
26
27
            <property name="margin-top">12</property>
            <property name="margin-bottom">12</property>
            <property name="margin-start">12</property>
            <property name="margin-end">12</property>
28
29
            <property name="label" translatable="yes">A URL that starts with any of the additional URLs will be opened by the web application. If you omit the URL scheme, the one from the currently loaded URL will be used.</property>
            <property name="wrap">True</property>
30
31
32
33
34
          </object>
        </child>
        <child>
          <object class="GtkScrolledWindow">
            <property name="visible">True</property>
35
            <property name="vexpand">True</property>
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
            <property name="hscrollbar_policy">never</property>
            <child>
              <object class="GtkTreeView" id="treeview">
                <property name="visible">True</property>
                <property name="model">liststore</property>
                <property name="enable_search">False</property>
                <property name="search_column">0</property>
                <child internal-child="selection">
                  <object class="GtkTreeSelection" id="tree_selection">
                    <property name="mode">multiple</property>
                    <signal name="changed" handler="on_treeview_selection_changed"/>
                  </object>
                </child>
                <child>
                  <object class="GtkTreeViewColumn" id="url_column">
                    <property name="sizing">autosize</property>
52
                    <property name="title" translatable="yes" context="Column header in the Additional URLs dialog">URL</property>
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
92
93
94
95
96
97
98
99
100
101
                    <property name="clickable">True</property>
                    <property name="reorderable">True</property>
                    <property name="sort_column_id">0</property>
                    <child>
                      <object class="GtkCellRendererText">
                        <property name="editable">TRUE</property>
                        <signal name="edited" handler="on_cell_edited"/>
                      </object>
                      <attributes>
                        <attribute name="text">0</attribute>
                      </attributes>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkActionBar">
            <property name="visible">True</property>
            <child>
              <object class="GtkButton">
                <property name="visible">True</property>
                <property name="tooltip_text" translatable="yes">Add new URL</property>
                <property name="action-name">webapp-additional-urls.new</property>
                <child>
                  <object class="GtkImage">
                    <property name="visible">True</property>
                    <property name="icon_name">list-add-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkButton">
                <property name="visible">True</property>
                <property name="tooltip_text" translatable="yes">Remove the selected URLs</property>
                <property name="action-name">webapp-additional-urls.forget</property>
                <accelerator key="Delete" signal="clicked"/>
                <accelerator key="KP_Delete" signal="clicked"/>
                <child>
                  <object class="GtkImage">
                    <property name="visible">True</property>
                    <property name="icon_name">list-remove-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
            <child>
              <object class="GtkButton">
                <property name="label" translatable="yes">C_lear All</property>
                <property name="visible">True</property>
                <property name="use_underline">True</property>
                <property name="action-name">webapp-additional-urls.forget-all</property>
                <accelerator key="Delete" modifiers="GDK_SHIFT_MASK" signal="clicked"/>
                <style>
                  <class name="destructive-action"/>
                  <class name="text-button"/>
                </style>
              </object>
              <packing>
                <property name="pack-type">end</property>
              </packing>
            </child>
118
119
120
121
122
123
          </object>
        </child>
      </object>
    </child>
  </template>
</interface>