File: restrict-applications-selector.ui

package info (click to toggle)
malcontent 0.13.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,756 kB
  • sloc: ansic: 7,414; python: 418; xml: 377; sh: 36; makefile: 14
file content (40 lines) | stat: -rw-r--r-- 1,280 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright © 2020 Endless, Inc. -->
<interface domain="malcontent">
  <requires lib="gtk+" version="3.12"/>
  <template class="MctRestrictApplicationsSelector" parent="GtkBox">
    <child>
      <object class="GtkListBox" id="listbox">
        <property name="hexpand">True</property>
        <property name="selection-mode">none</property>

        <child type="placeholder">
          <object class="GtkLabel">
            <property name="label" translatable="yes">No applications found to restrict.</property>
            <property name="margin-top">12</property>
            <property name="margin-bottom">12</property>
          </object>
        </child>

        <style>
          <class name="content"/>
        </style>
      </object>
    </child>
  </template>

  <object class="GListStore" id="apps">
    <property name="item-type">GAppInfo</property>
  </object>

  <object class="GtkFilterListModel" id="filtered_apps">
    <property name="model">apps</property>
    <property name="filter">search_filter</property>
  </object>

  <object class="GtkStringFilter" id="search_filter">
    <property name="expression">
      <closure type="gchararray" function="app_info_dup_name" />
    </property>
  </object>
</interface>