File: bookmarks.ui

package info (click to toggle)
dconf-editor 49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,904 kB
  • sloc: xml: 446; sh: 21; makefile: 4
file content (144 lines) | stat: -rw-r--r-- 6,831 bytes parent folder | download | duplicates (4)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?xml version="1.0" encoding="UTF-8"?>
<!--
  This file is part of Dconf Editor

  Dconf Editor is free software: you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.

  Dconf Editor is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with Dconf Editor.  If not, see <https://www.gnu.org/licenses/>.
-->
<interface domain="dconf-editor">
  <requires lib="gtk+" version="3.12"/>
  <object class="GtkImage" id="big_rows_icon">
    <property name="visible">True</property>
    <property name="icon-name">ca.desrt.dconf-editor.big-rows-symbolic</property>
    <property name="icon-size">1</property>
  </object>
  <object class="GtkImage" id="small_rows_icon">
    <property name="visible">True</property>
    <property name="icon-name">ca.desrt.dconf-editor.small-rows-symbolic</property>
    <property name="icon-size">1</property>
  </object>
  <object class="GtkPopover" id="bookmarks_popover">
    <property name="width-request">350</property>
    <property name="height-request">300</property>
    <signal name="key-press-event" handler="on_key_press_event"/>
    <style>
      <class name="bookmarks"/>
    </style>
    <child>
      <object class="GtkGrid">
        <property name="visible">True</property>
        <property name="row-spacing">6</property>
        <property name="margin">4</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkStack" id="edit_mode_stack">
            <property name="visible">True</property>
            <child>
              <object class="GtkGrid">
                <property name="visible">True</property>
                <property name="valign">center</property>
                <property name="orientation">horizontal</property>
                <property name="column-spacing">12</property>
                <child>
                  <object class="GtkLabel" id="switch_label">
                    <property name="visible">True</property>
                    <property name="margin-start">6</property>
                    <property name="hexpand">True</property>
                    <property name="halign">start</property>
                  </object>
                </child>
                <child>
                  <object class="GtkSwitch" id="bookmarked_switch">
                    <property name="visible">True</property>
                    <property name="halign">end</property>
                    <property name="action-name">browser.empty</property>
                    <property name="action-target">(byte 255,'')</property>
                    <child internal-child="accessible">
                      <object class="AtkObject">
                        <!-- Translators: accessible name of the switch for bookmarking current path in the bookmarks popover -->
                        <property name="AtkObject::accessible-name" translatable="yes">Location bookmarked</property>
                        <!-- Translators: accessible description of the switch for bookmarking current path in the bookmarks popover -->
                        <property name="AtkObject::accessible-description" translatable="yes">Toggle to bookmark this location</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">edit-mode-off</property>
              </packing>
            </child>
            <child>
              <object class="BookmarksController" id="bookmarks_controller">
                <property name="visible">True</property>
                <property name="show-rows-size-button">True</property>
                <property name="controller-action-prefix">bookmarks</property>
              </object>
              <packing>
                <property name="name">edit-mode-on</property>
              </packing>
            </child>
            <child>
              <object class="GtkLabel">
                <property name="visible">True</property>
                <property name="halign">center</property>
                <!-- Translators: text that might appear in the bookmarks popover in place of the switch and its label -->
                <property name="label" translatable="yes">The bookmarks list is not editable.</property>
                <style>
                  <class name="italic-label"/>
                </style>
              </object>
              <packing>
                <property name="name">edit-mode-disabled</property>
              </packing>
            </child>
          </object>
        </child>
        <child>
          <object class="BookmarksList" id="bookmarks_list">
            <property name="visible">True</property>
            <property name="needs-shadows">True</property>
            <property name="big-placeholder">False</property>
            <property name="edit-mode-action-prefix">bookmarks</property>
            <signal name="writability-changed"    handler="on_writability_changed"/>
            <signal name="bookmarks-changed"      handler="on_bookmarks_changed"/>
            <signal name="selection-changed"      handler="on_selection_changed"/>
            <signal name="update_bookmarks_icons" handler="on_update_bookmarks_icons"/>
          </object>
        </child>
      </object>
    </child>
  </object>
  <template class="Bookmarks" parent="GtkMenuButton">
    <property name="popover">bookmarks_popover</property>
    <signal name="clicked" handler="leave_edit_mode"/>
<!--    <style>
      <class name="image-button"/>  TODO bug https://bugzilla.gnome.org/show_bug.cgi?id=756731
    </style> -->
    <child internal-child="accessible">
      <object class="AtkObject">
        <!-- Translators: accessible name of the button for opening the bookmarks popover -->
        <property name="AtkObject::accessible-name" translatable="yes">Bookmarks</property>
        <!-- Translators: accessible description of the button for opening the bookmarks popover -->
        <property name="AtkObject::accessible-description" translatable="yes">Manage your bookmarks</property>
      </object>
    </child>
    <child>
      <object class="GtkImage" id="bookmarks_icon">
        <property name="visible">True</property>
        <property name="icon-name">non-starred-symbolic</property>
        <property name="icon-size">1</property>
      </object>
    </child>
  </template>
</interface>