-
Notifications
You must be signed in to change notification settings - Fork 80
/
new_custom_conversation.go
127 lines (119 loc) · 4.82 KB
/
new_custom_conversation.go
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
121
122
123
124
125
126
127
package definitions
func init() {
add(`NewCustomConversation`, &defNewCustomConversation{})
}
type defNewCustomConversation struct{}
func (*defNewCustomConversation) String() string {
return `<interface>
<object class="GtkListStore" id="accounts-model">
<columns>
<!-- account name -->
<column type="gchararray"/>
<!-- account id -->
<column type="gchararray"/>
</columns>
</object>
<object class="GtkDialog" id="NewCustomConversation">
<property name="window-position">GTK_WIN_POS_CENTER</property>
<property name="border_width">6</property>
<property name="title" translatable="yes">Start new conversation</property>
<property name="resizable">True</property>
<property name="default-height">200</property>
<property name="default-width">500</property>
<property name="destroy-with-parent">true</property>
<child internal-child="vbox">
<object class="GtkBox" id="Vbox">
<property name="homogeneous">false</property>
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
<property name="spacing">6</property>
<child>
<object class="GtkGrid" id="grid">
<property name="margin-top">15</property>
<property name="margin-bottom">10</property>
<property name="margin-start">10</property>
<property name="margin-end">10</property>
<property name="row-spacing">12</property>
<property name="column-spacing">6</property>
<child>
<object class="GtkLabel" id="accountsLabel" >
<property name="label" translatable="yes">From:</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="halign">GTK_ALIGN_END</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkComboBox" id="accounts">
<property name="model">accounts-model</property>
<property name="has-focus">true</property>
<property name="hexpand">True</property>
<child>
<object class="GtkCellRendererText" id="account-name-rendered"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="peerLabel" >
<property name="label" translatable="yes">With:</property>
<property name="justify">GTK_JUSTIFY_RIGHT</property>
<property name="halign">GTK_ALIGN_END</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="address">
<property name="placeholder-text">someone@jabber.org</property>
<property name="hexpand">True</property>
<signal name="activate" handler="on_start_signal" />
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">true</property>
<property name="fill">true</property>
<property name="position">1</property>
</packing>
</child>
<child internal-child="action_area">
<object class="GtkButtonBox" id="button_box">
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
<child>
<object class="GtkButton" id="button_cancel">
<property name="label">_Cancel</property>
<property name="use-underline">True</property>
<signal name="clicked" handler="on_close_signal" />
</object>
</child>
<child>
<object class="GtkButton" id="button_ok">
<property name="label" translatable="yes">Start</property>
<property name="use-underline">True</property>
<property name="can-default">true</property>
<signal name="clicked" handler="on_start_signal" />
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</interface>
`
}