gtkfontchooserwidget.ui 10.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk30">
  <!-- interface-requires gtk+ 3.10 -->
  <object class="GtkListStore" id="model">
    <columns>
      <!-- column-name family -->
      <column type="PangoFontFamily"/>
      <!-- column-name face -->
      <column type="PangoFontFace"/>
      <!-- column-name description -->
11
      <column type="GtkDelayedFontDescription"/>
12 13 14 15 16
      <!-- column-name preview-title -->
      <column type="gchararray"/>
    </columns>
  </object>
  <object class="GtkTreeModelFilter" id="filter_model">
Matthias Clasen's avatar
Matthias Clasen committed
17
    <property name="child-model">model</property>
18 19 20 21 22
    <signal name="row-deleted" handler="row_deleted_cb" swapped="no"/>
    <signal name="row-inserted" handler="row_inserted_cb" swapped="no"/>
  </object>
  <object class="GtkAdjustment" id="slider_adjustment">
    <property name="upper">100</property>
Matthias Clasen's avatar
Matthias Clasen committed
23 24
    <property name="step-increment">1</property>
    <property name="page-increment">10</property>
25 26 27 28
    <signal name="value-changed" handler="size_change_cb" swapped="no"/>
  </object>
  <object class="GtkAdjustment" id="spin_adjustment">
    <property name="upper">100</property>
Matthias Clasen's avatar
Matthias Clasen committed
29 30
    <property name="step-increment">1</property>
    <property name="page-increment">10</property>
31 32 33 34 35
    <signal name="value-changed" handler="size_change_cb" swapped="no"/>
  </object>
  <template class="GtkFontChooserWidget" parent="GtkBox">
    <child>
      <object class="GtkGrid" id="grid1">
36
        <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
37 38
        <property name="row-spacing">6</property>
        <property name="column-spacing">6</property>
39 40
        <child>
          <object class="GtkSearchEntry" id="search_entry">
41
            <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
42
            <property name="can-focus">1</property>
43
            <property name="hexpand">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
44 45 46 47 48 49 50
            <property name="activates-default">1</property>
            <property name="primary-icon-name">edit-find-symbolic</property>
            <property name="primary-icon-activatable">0</property>
            <property name="secondary-icon-activatable">0</property>
            <property name="primary-icon-sensitive">0</property>
            <property name="secondary-icon-sensitive">0</property>
            <property name="placeholder-text" translatable="yes">Search font name</property>
51 52
            <signal name="search-changed" handler="text_changed_cb" swapped="no"/>
            <signal name="stop-search" handler="stop_search_cb" swapped="no"/>
53 54
          </object>
          <packing>
Matthias Clasen's avatar
Matthias Clasen committed
55 56
            <property name="left-attach">0</property>
            <property name="top-attach">0</property>
57 58 59 60
            <property name="width">2</property>
          </packing>
        </child>
        <child>
61
          <object class="GtkStack" id="list_stack">
62
            <property name="visible">1</property>
63
            <child>
64
              <object class="GtkGrid">
65
                <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
66 67
                <property name="row-spacing">6</property>
                <property name="column-spacing">6</property>
68
                <child>
69
                  <object class="GtkScrolledWindow" id="list_scrolled_window">
Matthias Clasen's avatar
Matthias Clasen committed
70 71
                    <property name="width-request">400</property>
                    <property name="height-request">300</property>
72
                    <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
73
                    <property name="can-focus">1</property>
74 75
                    <property name="hexpand">1</property>
                    <property name="vexpand">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
76 77
                    <property name="hscrollbar-policy">never</property>
                    <property name="shadow-type">etched-in</property>
78
                    <child>
79
                      <object class="GtkTreeView" id="family_face_list">
80
                        <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
81
                        <property name="can-focus">1</property>
82
                        <property name="model">filter_model</property>
Matthias Clasen's avatar
Matthias Clasen committed
83 84 85
                        <property name="headers-visible">0</property>
                        <property name="enable-search">0</property>
                        <property name="fixed-height-mode">1</property>
86 87 88 89
                        <signal name="cursor-changed" handler="cursor_changed_cb" swapped="no"/>
                        <signal name="row-activated" handler="row_activated_cb" swapped="no"/>
                        <signal name="style-updated" handler="gtk_font_chooser_widget_set_cell_size" object="GtkFontChooserWidget" after="yes" swapped="yes"/>
                        <child internal-child="selection">
90 91
                          <object class="GtkTreeSelection" id="treeview-selection1">
                            <property name="mode">browse</property>
92
                            <signal name="changed" handler="selection_changed"/>
93
                          </object>
94
                        </child>
95
                        <child>
96 97
                          <object class="GtkTreeViewColumn" id="family_face_column">
                            <property name="sizing">fixed</property>
98
                            <property name="title" translatable="yes">Font Family</property>
99 100 101 102 103
                            <child>
                              <object class="GtkCellRendererText" id="family_face_cell">
                                <property name="ellipsize">end</property>
                              </object>
                            </child>
104 105 106 107 108
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
109
                  <packing>
Matthias Clasen's avatar
Matthias Clasen committed
110 111
                    <property name="left-attach">0</property>
                    <property name="top-attach">1</property>
112 113 114 115 116
                    <property name="width">2</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkEntry" id="preview">
117
                    <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
118 119
                    <property name="can-focus">1</property>
                    <property name="invisible-char"></property>
120
                    <property name="placeholder-text" translatable="yes">Preview text</property>
121 122 123
                    <signal name="scroll-event" handler="resize_by_scroll_cb" swapped="no"/>
                  </object>
                  <packing>
Matthias Clasen's avatar
Matthias Clasen committed
124 125
                    <property name="left-attach">0</property>
                    <property name="top-attach">2</property>
126 127 128 129 130
                    <property name="width">2</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkScale" id="size_slider">
131
                    <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
132
                    <property name="can-focus">1</property>
133
                    <property name="hexpand">1</property>
134
                    <property name="adjustment">slider_adjustment</property>
Matthias Clasen's avatar
Matthias Clasen committed
135
                    <property name="draw-value">0</property>
136 137 138 139
                    <property name="round-digits">0</property>
                    <signal name="scroll-event" handler="resize_by_scroll_cb" swapped="no"/>
                  </object>
                  <packing>
Matthias Clasen's avatar
Matthias Clasen committed
140 141
                    <property name="left-attach">0</property>
                    <property name="top-attach">3</property>
142 143 144 145
                  </packing>
                </child>
                <child>
                  <object class="GtkSpinButton" id="size_spin">
146
                    <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
147 148
                    <property name="can-focus">1</property>
                    <property name="invisible-char"></property>
149 150 151 152
                    <property name="adjustment">spin_adjustment</property>
                    <signal name="output" handler="output_cb"/>
                  </object>
                  <packing>
Matthias Clasen's avatar
Matthias Clasen committed
153 154
                    <property name="left-attach">1</property>
                    <property name="top-attach">3</property>
155
                  </packing>
156 157
                </child>
              </object>
158 159 160
              <packing>
                <property name="name">list</property>
              </packing>
161 162
            </child>
            <child>
163
              <object class="GtkGrid">
164
                <property name="visible">1</property>
Matthias Clasen's avatar
Matthias Clasen committed
165
                <property name="row-spacing">12</property>
166 167
                <property name="hexpand">1</property>
                <property name="vexpand">1</property>
168
                <property name="halign">center</property>
169 170 171 172 173 174
                <property name="valign">center</property>
                <style>
                  <class name="dim-label"/>
                </style>
                <child>
                  <object class="GtkImage">
175
                    <property name="visible">1</property>
176
                    <property name="gicon">fonticon</property>
177 178 179
                    <property name="pixel-size">64</property>
                  </object>
                  <packing>
Matthias Clasen's avatar
Matthias Clasen committed
180 181
                    <property name="left-attach">0</property>
                    <property name="top-attach">0</property>
182 183 184 185
                  </packing>
                </child>
                <child>
                  <object class="GtkLabel">
186
                    <property name="visible">1</property>
187
                    <property name="label" translatable="yes">No Fonts Found</property>
188 189 190 191 192 193
                    <attributes>
                      <attribute name="weight" value="bold"/>
                      <attribute name="scale" value="1.2"/>
                    </attributes>
                  </object>
                  <packing>
Matthias Clasen's avatar
Matthias Clasen committed
194 195
                    <property name="left-attach">0</property>
                    <property name="top-attach">1</property>
196 197
                  </packing>
                </child>
198 199
              </object>
              <packing>
200
                <property name="name">empty</property>
201 202 203 204
              </packing>
            </child>
          </object>
          <packing>
Matthias Clasen's avatar
Matthias Clasen committed
205 206
            <property name="left-attach">0</property>
            <property name="top-attach">1</property>
207 208 209 210 211
            <property name="width">2</property>
          </packing>
        </child>
      </object>
      <packing>
212
        <property name="expand">1</property>
213 214 215
      </packing>
    </child>
  </template>
216 217 218 219
  <object class="GThemedIcon" id="fonticon">
    <property name="names">font-x-generic-symbolic
emblem-documents-symbolic</property>
  </object>
220
</interface>