blob: 2553951ec12600e33e8a2f4c5ec70625a4d7ff1c (
plain) (
blame)
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
|
<?xml version="1.0" encoding="UTF-8"?>
<!-- from: https://gitlab.gnome.org/GNOME/nautilus/-/blob/main/src/resources/ui/nautilus-new-folder-dialog.ui -->
<interface>
<requires lib="gtk" version="4.0"/>
<template class="NewFileDialog" parent="AdwDialog">
<property name="title" translatable="yes">New File</property>
<property name="content-width">450</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwEntryRow" id="name_entry">
<property name="title" translatable="yes">File Name</property>
<property name="use-underline">True</property>
<!-- <signal name="changed" handler="sg_filename_validator_validate" swapped="no"/>-->
<signal name="entry-activated" handler="on_create_clicked" swapped="no"/>
</object>
</child>
<child>
<object class="GtkRevealer">
<!-- <property name="reveal-child" bind-source="validator" bind-property="has-feedback"/>-->
<property name="transition-type">crossfade</property>
<property name="child">
<object class="GtkLabel">
<!-- <property name="label" bind-source="validator" bind-property="feedback-text"/>-->
<property name="margin-top">6</property>
<property name="xalign">0</property>
<style>
<class name="warning"/>
<class name="caption"/>
</style>
</object>
</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="label" translatable="yes">_Create</property>
<property name="use-underline">True</property>
<property name="margin-top">6</property>
<property name="halign">center</property>
<!-- <property name="sensitive" bind-source="validator" bind-property="passed" bind-flags="sync-create"/>-->
<signal name="clicked" handler="on_create_clicked" swapped="no"/>
<style>
<class name="pill"/>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</template>
<!-- <object class="NautilusFilenameValidator" id="validator">-->
<!-- <property name="new-name" bind-source="name_entry" bind-property="text"/>-->
<!-- <property name="target-is-folder">true</property>-->
<!-- <signal name="name-accepted" handler="on_name_accepted" swapped="yes"/>-->
<!-- <signal name="notify::has-feedback" handler="on_feedback_changed" swapped="yes" object="NewFileDialog"/>-->
<!-- </object>-->
</interface>
|