summaryrefslogtreecommitdiffstats
path: root/src/resources/ui/nautilus-app-chooser.ui
blob: e30beacdf43c66767a95182d2911a6a21fe13a0f (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
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="NautilusAppChooser" parent="GtkDialog">
    <property name="title" translatable="yes">Open File</property>
    <property name="focusable">False</property>
    <property name="destroy-with-parent">True</property>
    <property name="modal">True</property>
    <property name="default-width">420</property>
    <property name="default-height">560</property>
    <child internal-child="content_area">
      <object class="GtkBox" id="content_area">
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkStack">
            <property name="hexpand">True</property>
            <child>
              <object class="GtkStackPage">
                <property name="name">list</property>
                <property name="child">
                  <object class="GtkBox">
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkScrolledWindow">
                        <property name="hscrollbar-policy">never</property>
                        <property name="vscrollbar-policy">never</property>
                        <property name="vexpand">true</property>
                        <style>
                          <class name="background"/>
                        </style>
                        <property name="child">
                          <object class="AdwClamp">
                            <property name="margin-top">18</property>
                            <property name="margin-bottom">18</property>
                            <property name="margin-start">18</property>
                            <property name="margin-end">18</property>
                            <property name="child">
                              <object class="GtkBox">
                                <property name="orientation">vertical</property>
                                <property name="spacing">12</property>
                                <child>
                                  <object class="GtkLabel" id="label_description">
                                    <property name="wrap">True</property>
                                    <property name="wrap-mode">PANGO_WRAP_WORD_CHAR</property>
                                    <property name="justify">center</property>
                                    <property name="label" translatable="yes">Choose an application to open the selected files.</property>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkBox" id="app_chooser_widget_box">
                                    <property name="halign">center</property>
                                    <property name="vexpand">True</property>
                                  </object>
                                </child>
                              </object>
                            </property>
                          </object>
                        </property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox" id="set_default_box">
                        <property name="orientation">vertical</property>
                        <style>
                          <class name="background"/>
                        </style>
                        <child>
                          <object class="GtkSeparator"/>
                        </child>
                        <child>
                          <object class="GtkListBox">
                            <style>
                              <class name="background"/>
                            </style>
                            <child>
                              <object class="AdwActionRow" id="set_default_row">
                                <property name="hexpand">true</property>
                                <property name="selectable">false</property>
                                <property name="activatable-widget">set_as_default_switch</property>
                                <property name="title" translatable="yes">Always use for this file type</property>
                                <child>
                                  <object class="GtkSwitch" id="set_as_default_switch">
                                    <property name="halign">end</property>
                                    <property name="valign">center</property>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="cancel_button">
        <property name="label" translatable="yes">_Cancel</property>
        <property name="use-underline">True</property>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="ok_button">
        <property name="label" translatable="yes">_Open</property>
        <property name="use-underline">True</property>
        <property name="sensitive">False</property>
        <signal name="clicked" object="NautilusAppChooser" handler="open_cb" swapped="yes"/>
      </object>
    </child>
    <action-widgets>
      <action-widget response="ok" default="true">ok_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
    </action-widgets>
  </template>
</interface>