rustydialogs 0.4.2

Provides a simple and cross-platform way to display native dialog boxes.
Documentation
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
Environment
  OS: linux
  Arch: x86_64
  RUSTY_DIALOGS_BACKEND: gtk4
  rustc: rustc 1.92.0 (ded5c06cf 2025-12-08)
  cargo: cargo 1.92.0 (344c4567c 2025-10-21)

Select tests
  Enter = all tests
  m = MessageBox
  s = SaveFileDialog
  o = OpenFileDialog
  f = FolderDialog
  t = TextInput
  c = ColorPicker
  n = Notification
Choice: 

==== Testing MessageBox ====

Testing Icon: Info

Step: Press OK.
  Buttons: Ok
  Icon: Info
Gtk-Message: 22:04:44.858: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: Ok
  Icon: Info
Gtk-Message: 22:04:47.469: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press OK.
  Buttons: OkCancel
  Icon: Info
Gtk-Message: 22:04:48.321: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Cancel.
  Buttons: OkCancel
  Icon: Info
Gtk-Message: 22:04:49.283: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: OkCancel
  Icon: Info
Gtk-Message: 22:04:49.835: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Yes.
  Buttons: YesNo
  Icon: Info
Gtk-Message: 22:04:50.534: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press No.
  Buttons: YesNo
  Icon: Info
Gtk-Message: 22:04:51.114: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: YesNo
  Icon: Info
Gtk-Message: 22:04:51.560: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Yes.
  Buttons: YesNoCancel
  Icon: Info
Gtk-Message: 22:04:52.078: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press No.
  Buttons: YesNoCancel
  Icon: Info
Gtk-Message: 22:04:52.783: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Cancel.
  Buttons: YesNoCancel
  Icon: Info
Gtk-Message: 22:04:53.208: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: YesNoCancel
  Icon: Info
Gtk-Message: 22:04:53.585: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Testing Icon: Warning

Step: Press OK.
  Buttons: Ok
  Icon: Warning
Gtk-Message: 22:04:53.939: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: Ok
  Icon: Warning
Gtk-Message: 22:04:54.746: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press OK.
  Buttons: OkCancel
  Icon: Warning
Gtk-Message: 22:04:55.280: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Cancel.
  Buttons: OkCancel
  Icon: Warning
Gtk-Message: 22:04:55.887: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: OkCancel
  Icon: Warning
Gtk-Message: 22:04:56.284: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Yes.
  Buttons: YesNo
  Icon: Warning
Gtk-Message: 22:04:56.612: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press No.
  Buttons: YesNo
  Icon: Warning
Gtk-Message: 22:04:57.171: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: YesNo
  Icon: Warning
Gtk-Message: 22:04:57.599: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Yes.
  Buttons: YesNoCancel
  Icon: Warning
Gtk-Message: 22:04:57.920: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press No.
  Buttons: YesNoCancel
  Icon: Warning
Gtk-Message: 22:04:58.484: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Cancel.
  Buttons: YesNoCancel
  Icon: Warning
Gtk-Message: 22:04:58.858: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: YesNoCancel
  Icon: Warning
Gtk-Message: 22:04:59.185: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Testing Icon: Error

Step: Press OK.
  Buttons: Ok
  Icon: Error
Gtk-Message: 22:04:59.517: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: Ok
  Icon: Error
Gtk-Message: 22:05:00.138: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press OK.
  Buttons: OkCancel
  Icon: Error
Gtk-Message: 22:05:00.484: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Cancel.
  Buttons: OkCancel
  Icon: Error
Gtk-Message: 22:05:00.946: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: OkCancel
  Icon: Error
Gtk-Message: 22:05:01.330: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Yes.
  Buttons: YesNo
  Icon: Error
Gtk-Message: 22:05:01.785: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press No.
  Buttons: YesNo
  Icon: Error
Gtk-Message: 22:05:02.291: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: YesNo
  Icon: Error
Gtk-Message: 22:05:02.672: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Yes.
  Buttons: YesNoCancel
  Icon: Error
Gtk-Message: 22:05:02.996: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press No.
  Buttons: YesNoCancel
  Icon: Error
Gtk-Message: 22:05:03.549: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Cancel.
  Buttons: YesNoCancel
  Icon: Error
Gtk-Message: 22:05:03.953: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: YesNoCancel
  Icon: Error
Gtk-Message: 22:05:04.282: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Testing Icon: Question

Step: Press OK.
  Buttons: Ok
  Icon: Question
Gtk-Message: 22:05:04.612: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: Ok
  Icon: Question
Gtk-Message: 22:05:05.230: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press OK.
  Buttons: OkCancel
  Icon: Question
Gtk-Message: 22:05:05.577: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Cancel.
  Buttons: OkCancel
  Icon: Question
Gtk-Message: 22:05:06.070: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: OkCancel
  Icon: Question
Gtk-Message: 22:05:06.451: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Yes.
  Buttons: YesNo
  Icon: Question
Gtk-Message: 22:05:06.645: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press No.
  Buttons: YesNo
  Icon: Question
Gtk-Message: 22:05:07.214: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: YesNo
  Icon: Question
Gtk-Message: 22:05:07.558: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Yes.
  Buttons: YesNoCancel
  Icon: Question
Gtk-Message: 22:05:07.777: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press No.
  Buttons: YesNoCancel
  Icon: Question
Gtk-Message: 22:05:08.431: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Press Cancel.
  Buttons: YesNoCancel
  Icon: Question
Gtk-Message: 22:05:08.801: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
  Buttons: YesNoCancel
  Icon: Question
Gtk-Message: 22:05:09.095: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

==== Testing SaveFileDialog ====

Step: Select `readme.md` and press Save.
Gtk-Message: 22:05:09.405: GtkDialog mapped without a transient parent. This is discouraged.

(process:1767756): Gtk-WARNING **: 22:05:13.633: Attempting to add 'file:///home/user/Projects/rustydialogs/readme.md' to the list of recently used resources, but no name of the application that is registering it was defined
  Result: PASS

Step: Dismiss the dialog.
Gtk-Message: 22:05:13.909: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

==== Testing OpenFileDialog ====

Step: Select `Cargo.toml` and press Open.
Gtk-Message: 22:05:17.364: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Select multiple files (`Cargo.toml` and `readme.md`) and press Open.
Gtk-Message: 22:05:19.502: GtkDialog mapped without a transient parent. This is discouraged.

(process:1767756): Gtk-WARNING **: 22:05:19.509: Attempting to add 'file:///home/user/Projects/rustydialogs/Cargo.toml' to the list of recently used resources, but no name of the application that is registering it was defined
  Result: FAIL - expected Some(["/home/user/Projects/rustydialogs/Cargo.toml", "/home/user/Projects/rustydialogs/readme.md"]), got Some(["/home/user/Projects/rustydialogs/readme.md", "/home/user/Projects/rustydialogs/Cargo.toml"])
  Test failed, retry? [Y/n]: 
  Retrying step...
Gtk-Message: 22:05:31.318: GtkDialog mapped without a transient parent. This is discouraged.

(process:1767756): Gtk-WARNING **: 22:05:31.325: Attempting to add 'file:///home/user/Projects/rustydialogs/readme.md' to the list of recently used resources, but no name of the application that is registering it was defined

(process:1767756): Gtk-WARNING **: 22:05:31.325: Attempting to add 'file:///home/user/Projects/rustydialogs/Cargo.toml' to the list of recently used resources, but no name of the application that is registering it was defined
  Result: FAIL - expected Some(["/home/user/Projects/rustydialogs/Cargo.toml", "/home/user/Projects/rustydialogs/readme.md"]), got Some(["/home/user/Projects/rustydialogs/readme.md", "/home/user/Projects/rustydialogs/Cargo.toml"])
  Test failed, retry? [Y/n]: n
  Marked as failed.

Step: Dismiss the dialog.
Gtk-Message: 22:05:44.835: GtkDialog mapped without a transient parent. This is discouraged.

(process:1767756): Gtk-WARNING **: 22:05:44.843: Attempting to add 'file:///home/user/Projects/rustydialogs/readme.md' to the list of recently used resources, but no name of the application that is registering it was defined

(process:1767756): Gtk-WARNING **: 22:05:44.843: Attempting to add 'file:///home/user/Projects/rustydialogs/Cargo.toml' to the list of recently used resources, but no name of the application that is registering it was defined
  Result: PASS

==== Testing FolderDialog ====

Step: Select the `src` folder and press Open.
Gtk-Message: 22:05:46.909: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
Gtk-Message: 22:06:00.585: GtkDialog mapped without a transient parent. This is discouraged.

(process:1767756): Gtk-WARNING **: 22:06:00.593: Attempting to add 'file:///home/user/Projects/rustydialogs/src' to the list of recently used resources, but no name of the application that is registering it was defined
  Result: PASS

==== Testing ColorPicker ====

Step: Select pure RED (#FF0000) and press OK.
Gtk-Message: 22:06:02.300: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Select specific color (#4FB3A3) (79, 179, 163) and press OK.
Gtk-Message: 22:06:08.480: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
Gtk-Message: 22:06:11.723: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

==== Testing TextInput ====

Step: Enter `Hello, Rust!` and press OK.
Gtk-Message: 22:06:12.883: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Enter `Password123` and press OK.
Gtk-Message: 22:06:19.471: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Enter these three lines and press OK.
Gtk-Message: 22:06:23.886: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

Step: Dismiss the dialog.
Gtk-Message: 22:06:32.055: GtkDialog mapped without a transient parent. This is discouraged.
  Result: PASS

==== Testing Notification ====

Step: Confirm Info appeared.
Confirm notification? [Y/n]: 
  Result: PASS

Step: Confirm Warning appeared.
Confirm notification? [Y/n]: 
  Result: PASS

Step: Confirm Error appeared.
Confirm notification? [Y/n]: 
  Result: PASS

Step: Confirm Question appeared.
Confirm notification? [Y/n]: 
  Result: PASS