summaryrefslogtreecommitdiff
path: root/panels/datetime/cc-tz-dialog.ui
blob: 9143af61040e8683ed9ab2a36e97b9103918b143 (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcTzDialog" parent="AdwWindow">
    <property name="modal">True</property>
    <property name="hide-on-close">True</property>
    <property name="title" translatable="yes">Select Time Zone</property>
    <property name="width-request">360</property>
    <property name="height-request">300</property>
    <property name="default-height">540</property>

    <property name="content">
      <object class="GtkBox">
        <property name="orientation">vertical</property>

        <child>
          <object class="AdwHeaderBar">
            <property name="show-start-title-buttons">True</property>
            <property name="show-end-title-buttons">True</property>
          </object>
        </child>

        <!-- SearchBar -->
        <child>
          <object class="GtkSearchEntry" id="location_entry">
            <property name="halign">center</property>
            <property name="margin-top">6</property>
            <property name="margin-bottom">6</property>
            <property name="width-chars">24</property>
            <signal name="search-changed" handler="tz_dialog_search_changed_cb" swapped="yes"/>
          </object>
        </child>

        <child>
          <object class="GtkStack" id="main_stack">
            <property name="vexpand">True</property>

            <child>
              <object class="AdwStatusPage" id="empty_page">
                <property name="margin-top">18</property>
                <property name="title" translatable="yes">No Results</property>
                <property name="icon-name">system-search-symbolic</property>
              </object>
            </child>

            <child>
              <object class="GtkScrolledWindow" id="tz_page">
                <property name="hscrollbar-policy">never</property>
                <property name="vexpand">True</property>
                <child>
                  <object class="AdwClampScrollable">
                    <child>
                      <object class="GtkListView" id="tz_view">
                        <property name="show-separators">True</property>
                        <property name="single-click-activate">True</property>
                        <signal name="activate" handler="tz_dialog_row_activated_cb" swapped="yes"/>
                        <style>
                         /* fixme: 'boxed-list' gives nice rounded borders, but we can't use
                          * it here as it works only with GtkListBox, not with GtkListView */
                           <class name="frame"/>
                        </style>
                        <property name="factory">
                          <object class="GtkBuilderListItemFactory">
                            <property name="resource">/org/gnome/control-center/datetime/cc-tz-row.ui</property>
                          </object>
                        </property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>

      </object>
    </property>
  </template>
</interface>