dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / options_ui.C
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $TOG: options_ui.C /main/17 1999/03/25 14:17:16 mgreess $ */
24 /*
25  * File: options_ui.c
26  * Contains: user module object initialize and create functions
27  *
28  * This file was generated by dtcodegen, from module options
29  *
30  *    ** DO NOT MODIFY BY HAND - ALL MODIFICATIONS WILL BE LOST **
31  */
32 /*
33  *                   Common Desktop Environment
34  *
35  *   (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
36  *   (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
37  *   (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
38  *   (c) Copyright 1993, 1994, 1995 Novell, Inc.
39  *   (c) Copyright 1995 Digital Equipment Corp.
40  *   (c) Copyright 1995 Fujitsu Limited
41  *   (c) Copyright 1995 Hitachi, Ltd.
42  *                                                                   
43  *
44  *                     RESTRICTED RIGHTS LEGEND                              
45  *
46  *Use, duplication, or disclosure by the U.S. Government is subject to
47  *restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
48  *Technical Data and Computer Software clause in DFARS 252.227-7013.  Rights
49  *for non-DOD U.S. Government Departments and Agencies are as set forth in
50  *FAR 52.227-19(c)(1,2).
51
52  *Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
53  *International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. 
54  *Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
55  *Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
56  *Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A.
57  *Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
58  *Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
59  */
60
61
62 #include <stdlib.h>
63 #include <X11/Intrinsic.h>
64 #include <Xm/DialogS.h>
65 #include <Xm/Form.h>
66 #include <Xm/PanedW.h>
67 #include <Xm/RowColumn.h>
68 #include <Xm/Separator.h>
69 #include <Xm/Label.h>
70 #include <Xm/PushB.h>
71 #include <Xm/ToggleB.h>
72 #include <Xm/SSpinB.h>
73 #include <Xm/TextF.h>
74 #include <Xm/ScrollBar.h>
75 #include <Xm/ScrolledW.h>
76 #include <Xm/List.h>
77 #include <Xm/Text.h>
78 #include <Xm/Scale.h>
79 #include "dtb_utils.h"
80 #include "dtmailopts.h"
81 #include "options_ui.h"
82 #include "MailMsg.h"            
83
84 DtbOptionsDialogInfoRec dtb_options_dialog = 
85 {
86     False        /* initialized */
87 };
88
89 /*
90  * Widget create procedure decls
91  */
92 static int dtb_options_dialog_create(
93     DtbOptionsDialogInfo        instance,
94     Widget      parent
95 );
96 static int dtb_options_dialog_button_panel_create(
97     DtbOptionsDialogInfo        instance,
98     Widget      parent
99 );
100 static int dtb_options_ctrl_panel_create(
101     DtbOptionsDialogInfo        instance,
102     Widget      parent
103 );
104 static int dtb_options_layer_create(
105     DtbOptionsDialogInfo        instance,
106     Widget      parent
107 );
108 static int dtb_options_category_opmenu_create(
109     DtbOptionsDialogInfo        instance,
110     Widget      parent
111 );
112 static int dtb_options_separator10_create(
113     DtbOptionsDialogInfo        instance,
114     Widget      parent
115 );
116 static int dtb_options_msg_header_pane_create(
117     DtbOptionsDialogInfo        instance,
118     Widget      parent
119 );
120 static int dtb_options_msg_view_pane_create(
121     DtbOptionsDialogInfo        instance,
122     Widget      parent
123 );
124 static int dtb_options_compose_win_pane_create(
125     DtbOptionsDialogInfo        instance,
126     Widget      parent
127 );
128 static int dtb_options_msg_filing_pane_create(
129     DtbOptionsDialogInfo        instance,
130     Widget      parent
131 );
132 static int dtb_options_vacation_pane_create(
133     DtbOptionsDialogInfo        instance,
134     Widget      parent
135 );
136 static int dtb_options_templates_pane_create(
137     DtbOptionsDialogInfo        instance,
138     Widget      parent
139 );
140 static int dtb_options_aliases_pane_create(
141     DtbOptionsDialogInfo        instance,
142     Widget      parent
143 );
144 static int dtb_options_advanced_pane_create(
145     DtbOptionsDialogInfo        instance,
146     Widget      parent
147 );
148 static int dtb_options_separator2_create(
149     DtbOptionsDialogInfo        instance,
150     Widget      parent
151 );
152 static int dtb_options_checkbox_create(
153     DtbOptionsDialogInfo        instance,
154     Widget      parent
155 );
156 static int dtb_options_separator4_create(
157     DtbOptionsDialogInfo        instance,
158     Widget      parent
159 );
160 static int dtb_options_group28_create(
161     DtbOptionsDialogInfo        instance,
162     Widget      parent
163 );
164 static int dtb_options_group21_create(
165     DtbOptionsDialogInfo        instance,
166     Widget      parent
167 );
168 static int dtb_options_destroy_del_msg_lbl_create(
169     DtbOptionsDialogInfo        instance,
170     Widget      parent
171 );
172 static int dtb_options_deleted_msg_cb_create(
173     DtbOptionsDialogInfo        instance,
174     Widget      parent
175 );
176 static int dtb_options_group_create(
177     DtbOptionsDialogInfo        instance,
178     Widget      parent
179 );
180 static int dtb_options_group18_create(
181     DtbOptionsDialogInfo        instance,
182     Widget      parent
183 );
184 static int dtb_options_group19_create(
185     DtbOptionsDialogInfo        instance,
186     Widget      parent
187 );
188 static int dtb_options_group20_create(
189     DtbOptionsDialogInfo        instance,
190     Widget      parent
191 );
192 static int dtb_options_mail_check_sb_create(
193     DtbOptionsDialogInfo        instance,
194     Widget      parent
195 );
196 static int dtb_options_seconds_lbl_create(
197     DtbOptionsDialogInfo        instance,
198     Widget      parent
199 );
200 static int dtb_options_signal_sb_create(
201     DtbOptionsDialogInfo        instance,
202     Widget      parent
203 );
204 static int dtb_options_beeps_lbl_create(
205     DtbOptionsDialogInfo        instance,
206     Widget      parent
207 );
208 static int dtb_options_spinbox2_create(
209     DtbOptionsDialogInfo        instance,
210     Widget      parent
211 );
212 static int dtb_options_flashes_lbl_create(
213     DtbOptionsDialogInfo        instance,
214     Widget      parent
215 );
216 static int dtb_options_display_sb_create(
217     DtbOptionsDialogInfo        instance,
218     Widget      parent
219 );
220 static int dtb_options_headers_lbl_create(
221     DtbOptionsDialogInfo        instance,
222     Widget      parent
223 );
224 static int dtb_options_separator6_create(
225     DtbOptionsDialogInfo        instance,
226     Widget      parent
227 );
228 static int dtb_options_abr_header_lbl_create(
229     DtbOptionsDialogInfo        instance,
230     Widget      parent
231 );
232 static int dtb_options_group8_create(
233     DtbOptionsDialogInfo        instance,
234     Widget      parent
235 );
236 static int dtb_options_group17_create(
237     DtbOptionsDialogInfo        instance,
238     Widget      parent
239 );
240 static int dtb_options_group2_create(
241     DtbOptionsDialogInfo        instance,
242     Widget      parent
243 );
244 static int dtb_options_group22_create(
245     DtbOptionsDialogInfo        instance,
246     Widget      parent
247 );
248 static int dtb_options_fixed_font_cb_create(
249     DtbOptionsDialogInfo        instance,
250     Widget      parent
251 );
252 static int dtb_options_display_row_sb_create(
253     DtbOptionsDialogInfo        instance,
254     Widget      parent
255 );
256 static int dtb_options_rows_lbl_create(
257     DtbOptionsDialogInfo        instance,
258     Widget      parent
259 );
260 static int dtb_options_characters_wide_sb_create(
261     DtbOptionsDialogInfo        instance,
262     Widget      parent
263 );
264 static int dtb_options_char_wide_lbl_create(
265     DtbOptionsDialogInfo        instance,
266     Widget      parent
267 );
268 static int dtb_options_group3_create(
269     DtbOptionsDialogInfo        instance,
270     Widget      parent
271 );
272 static int dtb_options_fields_hide_create(
273     DtbOptionsDialogInfo        instance,
274     Widget      parent
275 );
276 static int dtb_options_hidden_fields_list_create(
277     DtbOptionsDialogInfo        instance,
278     Widget      parent
279 );
280 static int dtb_options_hidden_fields_lbl_create(
281     DtbOptionsDialogInfo        instance,
282     Widget      parent
283 );
284 static int dtb_options_header_fields_lbl_create(
285     DtbOptionsDialogInfo        instance,
286     Widget      parent
287 );
288 static int dtb_options_h_field_add_create(
289     DtbOptionsDialogInfo        instance,
290     Widget      parent
291 );
292 static int dtb_options_h_field_delete_create(
293     DtbOptionsDialogInfo        instance,
294     Widget      parent
295 );
296 static int dtb_options_h_field_change_create(
297     DtbOptionsDialogInfo        instance,
298     Widget      parent
299 );
300 static int dtb_options_wrap_checkbox_create(
301     DtbOptionsDialogInfo        instance,
302     Widget      parent
303 );
304 static int dtb_options_confirm_attachment_create(
305     DtbOptionsDialogInfo        instance,
306     Widget      parent
307 );
308 static int dtb_options_separator3_create(
309     DtbOptionsDialogInfo        instance,
310     Widget      parent
311 );
312 static int dtb_options_separator7_create(
313     DtbOptionsDialogInfo        instance,
314     Widget      parent
315 );
316 static int dtb_options_deadletter_field_create(
317     DtbOptionsDialogInfo        instance,
318     Widget      parent
319 );
320 static int dtb_options_separator9_create(
321     DtbOptionsDialogInfo        instance,
322     Widget      parent
323 );
324 static int dtb_options_format_menu_lbl_create(
325     DtbOptionsDialogInfo        instance,
326     Widget      parent
327 );
328 static int dtb_options_group6_create(
329     DtbOptionsDialogInfo        instance,
330     Widget      parent
331 );
332 static int dtb_options_group4_create(
333     DtbOptionsDialogInfo        instance,
334     Widget      parent
335 );
336 static int dtb_options_indent_str_tf_create(
337     DtbOptionsDialogInfo        instance,
338     Widget      parent
339 );
340 static int dtb_options_group23_create(
341     DtbOptionsDialogInfo        instance,
342     Widget      parent
343 );
344 static int dtb_options_indent_str_lbl_create(
345     DtbOptionsDialogInfo        instance,
346     Widget      parent
347 );
348 static int dtb_options_reply_include_lbl_create(
349     DtbOptionsDialogInfo        instance,
350     Widget      parent
351 );
352 static int dtb_options_group7_create(
353     DtbOptionsDialogInfo        instance,
354     Widget      parent
355 );
356 static int dtb_options_list_create(
357     DtbOptionsDialogInfo        instance,
358     Widget      parent
359 );
360 static int dtb_options_menu_labels_lbl_create(
361     DtbOptionsDialogInfo        instance,
362     Widget      parent
363 );
364 static int dtb_options_hdr_field_create(
365     DtbOptionsDialogInfo        instance,
366     Widget      parent
367 );
368 static int dtb_options_def_value_field_create(
369     DtbOptionsDialogInfo        instance,
370     Widget      parent
371 );
372 static int dtb_options_hdr_field_lbl_create(
373     DtbOptionsDialogInfo        instance,
374     Widget      parent
375 );
376 static int dtb_options_def_value_lbl_create(
377     DtbOptionsDialogInfo        instance,
378     Widget      parent
379 );
380 static int dtb_options_add_button_create(
381     DtbOptionsDialogInfo        instance,
382     Widget      parent
383 );
384 static int dtb_options_del_button_create(
385     DtbOptionsDialogInfo        instance,
386     Widget      parent
387 );
388 static int dtb_options_change_button_create(
389     DtbOptionsDialogInfo        instance,
390     Widget      parent
391 );
392 static int dtb_options_separator8_create(
393     DtbOptionsDialogInfo        instance,
394     Widget      parent
395 );
396 static int dtb_options_separator5_create(
397     DtbOptionsDialogInfo        instance,
398     Widget      parent
399 );
400 static int dtb_options_group25_create(
401     DtbOptionsDialogInfo        instance,
402     Widget      parent
403 );
404 static int dtb_options_mailb_for_sent_lbl_create(
405     DtbOptionsDialogInfo        instance,
406     Widget      parent
407 );
408 static int dtb_options_group26_create(
409     DtbOptionsDialogInfo        instance,
410     Widget      parent
411 );
412 static int dtb_options_group9_create(
413     DtbOptionsDialogInfo        instance,
414     Widget      parent
415 );
416 static int dtb_options_dpy_up_mbox_cb_create(
417     DtbOptionsDialogInfo        instance,
418     Widget      parent
419 );
420 static int dtb_options_recent_sb_create(
421     DtbOptionsDialogInfo        instance,
422     Widget      parent
423 );
424 static int dtb_options_visit_mailb_lbl_create(
425     DtbOptionsDialogInfo        instance,
426     Widget      parent
427 );
428 static int dtb_options_sent_mail_tf_create(
429     DtbOptionsDialogInfo        instance,
430     Widget      parent
431 );
432 static int dtb_options_log_cb_create(
433     DtbOptionsDialogInfo        instance,
434     Widget      parent
435 );
436 static int dtb_options_group24_create(
437     DtbOptionsDialogInfo        instance,
438     Widget      parent
439 );
440 static int dtb_options_path_file_name_tf_create(
441     DtbOptionsDialogInfo        instance,
442     Widget      parent
443 );
444 static int dtb_options_mv_menu_lst_create(
445     DtbOptionsDialogInfo        instance,
446     Widget      parent
447 );
448 static int dtb_options_srt_looking_tf_create(
449     DtbOptionsDialogInfo        instance,
450     Widget      parent
451 );
452 static int dtb_options_move_menu_lbl_create(
453     DtbOptionsDialogInfo        instance,
454     Widget      parent
455 );
456 static int dtb_options_move_menu_lbl2_create(
457     DtbOptionsDialogInfo        instance,
458     Widget      parent
459 );
460 static int dtb_options_path_file_lbl_create(
461     DtbOptionsDialogInfo        instance,
462     Widget      parent
463 );
464 static int dtb_options_start_look_lbl_create(
465     DtbOptionsDialogInfo        instance,
466     Widget      parent
467 );
468 static int dtb_options_mm_add_butt_create(
469     DtbOptionsDialogInfo        instance,
470     Widget      parent
471 );
472 static int dtb_options_mm_delete_butt_create(
473     DtbOptionsDialogInfo        instance,
474     Widget      parent
475 );
476 static int dtb_options_mm_change_butt_create(
477     DtbOptionsDialogInfo        instance,
478     Widget      parent
479 );
480 static int dtb_options_vacation_lbl_create(
481     DtbOptionsDialogInfo        instance,
482     Widget      parent
483 );
484 static int dtb_options_group10_create(
485     DtbOptionsDialogInfo        instance,
486     Widget      parent
487 );
488 static int dtb_options_vacation_rb_create(
489     DtbOptionsDialogInfo        instance,
490     Widget      parent
491 );
492 static int dtb_options_vacation_msg_tp_create(
493     DtbOptionsDialogInfo        instance,
494     Widget      parent
495 );
496 static int dtb_options_subject_tf_create(
497     DtbOptionsDialogInfo        instance,
498     Widget      parent
499 );
500 static int dtb_options_msg_list_lbl_create(
501     DtbOptionsDialogInfo        instance,
502     Widget      parent
503 );
504 static int dtb_options_subject_lbl_create(
505     DtbOptionsDialogInfo        instance,
506     Widget      parent
507 );
508 static int dtb_options_vacation_rb_lbl_create(
509     DtbOptionsDialogInfo        instance,
510     Widget      parent
511 );
512 static int dtb_options_group13_create(
513     DtbOptionsDialogInfo        instance,
514     Widget      parent
515 );
516 static int dtb_options_group11_create(
517     DtbOptionsDialogInfo        instance,
518     Widget      parent
519 );
520 static int dtb_options_menu_label_create(
521     DtbOptionsDialogInfo        instance,
522     Widget      parent
523 );
524 static int dtb_options_path_filename_label_create(
525     DtbOptionsDialogInfo        instance,
526     Widget      parent
527 );
528 static int dtb_options_templates_list_create(
529     DtbOptionsDialogInfo        instance,
530     Widget      parent
531 );
532 static int dtb_options_templates_list_lbl_create(
533     DtbOptionsDialogInfo        instance,
534     Widget      parent
535 );
536 static int dtb_options_menu_label_lbl_create(
537     DtbOptionsDialogInfo        instance,
538     Widget      parent
539 );
540 static int dtb_options_path_filename_label_lbl_create(
541     DtbOptionsDialogInfo        instance,
542     Widget      parent
543 );
544 static int dtb_options_tem_add_but_create(
545     DtbOptionsDialogInfo        instance,
546     Widget      parent
547 );
548 static int dtb_options_tem_del_but_create(
549     DtbOptionsDialogInfo        instance,
550     Widget      parent
551 );
552 static int dtb_options_tem_change_but_create(
553     DtbOptionsDialogInfo        instance,
554     Widget      parent
555 );
556 static int dtb_options_group14_create(
557     DtbOptionsDialogInfo        instance,
558     Widget      parent
559 );
560 static int dtb_options_group15_create(
561     DtbOptionsDialogInfo        instance,
562     Widget      parent
563 );
564 static int dtb_options_alias_tf_create(
565     DtbOptionsDialogInfo        instance,
566     Widget      parent
567 );
568 static int dtb_options_addresses_tf_create(
569     DtbOptionsDialogInfo        instance,
570     Widget      parent
571 );
572 static int dtb_options_alias_list_create(
573     DtbOptionsDialogInfo        instance,
574     Widget      parent
575 );
576 static int dtb_options_alias_list_lbl_create(
577     DtbOptionsDialogInfo        instance,
578     Widget      parent
579 );
580 static int dtb_options_alias_tf_lbl_create(
581     DtbOptionsDialogInfo        instance,
582     Widget      parent
583 );
584 static int dtb_options_address_tf_lbl_create(
585     DtbOptionsDialogInfo        instance,
586     Widget      parent
587 );
588 static int dtb_options_alias_add_but_create(
589     DtbOptionsDialogInfo        instance,
590     Widget      parent
591 );
592 static int dtb_options_alias_delete_but_create(
593     DtbOptionsDialogInfo        instance,
594     Widget      parent
595 );
596 static int dtb_options_al_change_but_create(
597     DtbOptionsDialogInfo        instance,
598     Widget      parent
599 );
600 static int dtb_options_update_mbox_scale_create(
601     DtbOptionsDialogInfo        instance,
602     Widget      parent
603 );
604 static int dtb_options_update_mailb_lbl_create(
605     DtbOptionsDialogInfo        instance,
606     Widget      parent
607 );
608 static int dtb_options_frequently_lbl_create(
609     DtbOptionsDialogInfo        instance,
610     Widget      parent
611 );
612 static int dtb_options_seldom_lbl_create(
613     DtbOptionsDialogInfo        instance,
614     Widget      parent
615 );
616 static int dtb_options_separator11_create(
617     DtbOptionsDialogInfo        instance,
618     Widget      parent
619 );
620 static int dtb_options_adv_def_cb_create(
621     DtbOptionsDialogInfo        instance,
622     Widget      parent
623 );
624 static int dtb_options_group12_create(
625     DtbOptionsDialogInfo        instance,
626     Widget      parent
627 );
628 static int dtb_options_group16_create(
629     DtbOptionsDialogInfo        instance,
630     Widget      parent
631 );
632 static int dtb_options_local_name_tf_create(
633     DtbOptionsDialogInfo        instance,
634     Widget      parent
635 );
636 static int dtb_options_local_name_list_create(
637     DtbOptionsDialogInfo        instance,
638     Widget      parent
639 );
640 static int dtb_options_local_name_add_but_create(
641     DtbOptionsDialogInfo        instance,
642     Widget      parent
643 );
644 static int dtb_options_local_name_del_but_create(
645     DtbOptionsDialogInfo        instance,
646     Widget      parent
647 );
648 static int dtb_options_local_name_chg_but_create(
649     DtbOptionsDialogInfo        instance,
650     Widget      parent
651 );
652 static int dtb_options_ok_button_create(
653     DtbOptionsDialogInfo        instance,
654     Widget      parent
655 );
656 static int dtb_options_reset_button_create(
657     DtbOptionsDialogInfo        instance,
658     Widget      parent
659 );
660 static int dtb_options_cancel_button_create(
661     DtbOptionsDialogInfo        instance,
662     Widget      parent
663 );
664 static int dtb_options_separator_create(
665     DtbOptionsDialogInfo        instance,
666     Widget      parent
667 );
668 static int dtb_options_apply_button_create(
669     DtbOptionsDialogInfo        instance,
670     Widget      parent
671 );
672 static int dtb_options_help_button_create(
673     DtbOptionsDialogInfo        instance,
674     Widget      parent
675 );
676
677 int 
678 dtbOptionsDialogInfo_clear(DtbOptionsDialogInfo instance)
679 {
680     memset((void *)(instance), 0, sizeof(*instance));
681     return 0;
682 }
683
684 int 
685 dtb_options_dialog_initialize(
686     DtbOptionsDialogInfo instance,
687     Widget parent
688 )
689 {
690     if (instance->initialized)
691     {
692         return 0;
693     }
694     instance->initialized = True;
695
696     dtb_options_dialog_create(instance,
697         parent);
698     dtb_options_dialog_button_panel_create(instance,
699         instance->dialog_panedwin);
700     dtb_options_ctrl_panel_create(instance,
701         instance->dialog_form);
702     dtb_options_layer_create(instance,
703         instance->dialog_form);
704     dtb_options_category_opmenu_create(instance,
705         instance->ctrl_panel);
706     dtb_options_separator10_create(instance,
707         instance->ctrl_panel);
708     dtb_options_msg_header_pane_create(instance,
709         instance->layer);
710     dtb_options_msg_view_pane_create(instance,
711         instance->layer);
712     dtb_options_compose_win_pane_create(instance,
713         instance->layer);
714     dtb_options_msg_filing_pane_create(instance,
715         instance->layer);
716     dtb_options_vacation_pane_create(instance,
717         instance->layer);
718     dtb_options_templates_pane_create(instance,
719         instance->layer);
720     dtb_options_aliases_pane_create(instance,
721         instance->layer);
722     dtb_options_advanced_pane_create(instance,
723         instance->layer);
724     dtb_options_separator2_create(instance,
725         instance->msg_header_pane);
726     dtb_options_checkbox_create(instance,
727         instance->msg_header_pane);
728     dtb_options_separator4_create(instance,
729         instance->msg_header_pane);
730     dtb_options_group28_create(instance,
731         instance->msg_header_pane);
732     dtb_options_group21_create(instance,
733         instance->msg_header_pane);
734     dtb_options_destroy_del_msg_lbl_create(instance,
735         instance->group28);
736     dtb_options_deleted_msg_cb_create(instance,
737         instance->group28);
738     dtb_options_group_create(instance,
739         instance->group21);
740     dtb_options_group18_create(instance,
741         instance->group21);
742     dtb_options_group19_create(instance,
743         instance->group21);
744     dtb_options_group20_create(instance,
745         instance->group21);
746     dtb_options_mail_check_sb_create(instance,
747         instance->group);
748     dtb_options_seconds_lbl_create(instance,
749         instance->group);
750     dtb_options_signal_sb_create(instance,
751         instance->group18);
752     dtb_options_beeps_lbl_create(instance,
753         instance->group18);
754     dtb_options_spinbox2_create(instance,
755         instance->group19);
756     dtb_options_flashes_lbl_create(instance,
757         instance->group19);
758     dtb_options_display_sb_create(instance,
759         instance->group20);
760     dtb_options_headers_lbl_create(instance,
761         instance->group20);
762     dtb_options_separator6_create(instance,
763         instance->msg_view_pane);
764     dtb_options_abr_header_lbl_create(instance,
765         instance->msg_view_pane);
766     dtb_options_group8_create(instance,
767         instance->msg_view_pane);
768     dtb_options_group17_create(instance,
769         instance->msg_view_pane);
770     dtb_options_group2_create(instance,
771         instance->group8);
772     dtb_options_group22_create(instance,
773         instance->group8);
774     dtb_options_fixed_font_cb_create(instance,
775         instance->group8);
776     dtb_options_display_row_sb_create(instance,
777         instance->group2);
778     dtb_options_rows_lbl_create(instance,
779         instance->group2);
780     dtb_options_characters_wide_sb_create(instance,
781         instance->group22);
782     dtb_options_char_wide_lbl_create(instance,
783         instance->group22);
784     dtb_options_group3_create(instance,
785         instance->group17);
786     dtb_options_fields_hide_create(instance,
787         instance->group17);
788     dtb_options_hidden_fields_list_create(instance,
789         instance->group17);
790     dtb_options_hidden_fields_lbl_create(instance,
791         instance->group17);
792     dtb_options_header_fields_lbl_create(instance,
793         instance->group17);
794     dtb_options_h_field_add_create(instance,
795         instance->group3);
796     dtb_options_h_field_delete_create(instance,
797         instance->group3);
798     dtb_options_h_field_change_create(instance,
799         instance->group3);
800     dtb_options_wrap_checkbox_create(instance,
801         instance->compose_win_pane);
802     dtb_options_confirm_attachment_create(instance,
803         instance->compose_win_pane);
804     dtb_options_separator3_create(instance,
805         instance->compose_win_pane);
806     dtb_options_separator7_create(instance,
807         instance->compose_win_pane);
808     dtb_options_deadletter_field_create(instance,
809         instance->compose_win_pane);
810     dtb_options_separator9_create(instance,
811         instance->compose_win_pane);
812     dtb_options_format_menu_lbl_create(instance,
813         instance->compose_win_pane);
814     dtb_options_group6_create(instance,
815         instance->compose_win_pane);
816     dtb_options_group4_create(instance,
817         instance->compose_win_pane);
818     dtb_options_indent_str_tf_create(instance,
819         instance->group6);
820     dtb_options_group23_create(instance,
821         instance->group6);
822     dtb_options_indent_str_lbl_create(instance,
823         instance->group23);
824     dtb_options_reply_include_lbl_create(instance,
825         instance->group23);
826     dtb_options_group7_create(instance,
827         instance->group4);
828     dtb_options_list_create(instance,
829         instance->group4);
830     dtb_options_menu_labels_lbl_create(instance,
831         instance->group4);
832     dtb_options_hdr_field_create(instance,
833         instance->group4);
834     dtb_options_def_value_field_create(instance,
835         instance->group4);
836     dtb_options_hdr_field_lbl_create(instance,
837         instance->group4);
838     dtb_options_def_value_lbl_create(instance,
839         instance->group4);
840     dtb_options_add_button_create(instance,
841         instance->group7);
842     dtb_options_del_button_create(instance,
843         instance->group7);
844     dtb_options_change_button_create(instance,
845         instance->group7);
846     dtb_options_separator8_create(instance,
847         instance->msg_filing_pane);
848     dtb_options_separator5_create(instance,
849         instance->msg_filing_pane);
850     dtb_options_group25_create(instance,
851         instance->msg_filing_pane);
852     dtb_options_mailb_for_sent_lbl_create(instance,
853         instance->msg_filing_pane);
854     dtb_options_group26_create(instance,
855         instance->msg_filing_pane);
856     dtb_options_group9_create(instance,
857         instance->msg_filing_pane);
858     dtb_options_dpy_up_mbox_cb_create(instance,
859         instance->group25);
860     dtb_options_recent_sb_create(instance,
861         instance->group25);
862     dtb_options_visit_mailb_lbl_create(instance,
863         instance->group25);
864     dtb_options_sent_mail_tf_create(instance,
865         instance->group26);
866     dtb_options_log_cb_create(instance,
867         instance->group26);
868     dtb_options_group24_create(instance,
869         instance->group9);
870     dtb_options_path_file_name_tf_create(instance,
871         instance->group9);
872     dtb_options_mv_menu_lst_create(instance,
873         instance->group9);
874     dtb_options_srt_looking_tf_create(instance,
875         instance->group9);
876     dtb_options_move_menu_lbl_create(instance,
877         instance->group9);
878     dtb_options_move_menu_lbl2_create(instance,
879         instance->group9);
880     dtb_options_path_file_lbl_create(instance,
881         instance->group9);
882     dtb_options_start_look_lbl_create(instance,
883         instance->group9);
884     dtb_options_mm_add_butt_create(instance,
885         instance->group24);
886     dtb_options_mm_delete_butt_create(instance,
887         instance->group24);
888     dtb_options_mm_change_butt_create(instance,
889         instance->group24);
890     dtb_options_vacation_lbl_create(instance,
891         instance->vacation_pane);
892     dtb_options_group10_create(instance,
893         instance->vacation_pane);
894     dtb_options_vacation_rb_create(instance,
895         instance->group10);
896     dtb_options_vacation_msg_tp_create(instance,
897         instance->group10);
898     dtb_options_subject_tf_create(instance,
899         instance->group10);
900     dtb_options_msg_list_lbl_create(instance,
901         instance->group10);
902     dtb_options_subject_lbl_create(instance,
903         instance->group10);
904     dtb_options_vacation_rb_lbl_create(instance,
905         instance->group10);
906     dtb_options_group13_create(instance,
907         instance->templates_pane);
908     dtb_options_group11_create(instance,
909         instance->group13);
910     dtb_options_menu_label_create(instance,
911         instance->group13);
912     dtb_options_path_filename_label_create(instance,
913         instance->group13);
914     dtb_options_templates_list_create(instance,
915         instance->group13);
916     dtb_options_templates_list_lbl_create(instance,
917         instance->group13);
918     dtb_options_menu_label_lbl_create(instance,
919         instance->group13);
920     dtb_options_path_filename_label_lbl_create(instance,
921         instance->group13);
922     dtb_options_tem_add_but_create(instance,
923         instance->group11);
924     dtb_options_tem_del_but_create(instance,
925         instance->group11);
926     dtb_options_tem_change_but_create(instance,
927         instance->group11);
928     dtb_options_group14_create(instance,
929         instance->aliases_pane);
930     dtb_options_group15_create(instance,
931         instance->group14);
932     dtb_options_alias_tf_create(instance,
933         instance->group14);
934     dtb_options_addresses_tf_create(instance,
935         instance->group14);
936     dtb_options_alias_list_create(instance,
937         instance->group14);
938     dtb_options_alias_list_lbl_create(instance,
939         instance->group14);
940     dtb_options_alias_tf_lbl_create(instance,
941         instance->group14);
942     dtb_options_address_tf_lbl_create(instance,
943         instance->group14);
944     dtb_options_alias_add_but_create(instance,
945         instance->group15);
946     dtb_options_alias_delete_but_create(instance,
947         instance->group15);
948     dtb_options_al_change_but_create(instance,
949         instance->group15);
950     dtb_options_update_mbox_scale_create(instance,
951         instance->advanced_pane);
952     dtb_options_update_mailb_lbl_create(instance,
953         instance->advanced_pane);
954     dtb_options_frequently_lbl_create(instance,
955         instance->advanced_pane);
956     dtb_options_seldom_lbl_create(instance,
957         instance->advanced_pane);
958     dtb_options_separator11_create(instance,
959         instance->advanced_pane);
960     dtb_options_adv_def_cb_create(instance,
961         instance->advanced_pane);
962     dtb_options_group12_create(instance,
963         instance->advanced_pane);
964     dtb_options_group16_create(instance,
965         instance->group12);
966     dtb_options_local_name_tf_create(instance,
967         instance->group12);
968     dtb_options_local_name_list_create(instance,
969         instance->group12);
970     dtb_options_local_name_add_but_create(instance,
971         instance->group16);
972     dtb_options_local_name_del_but_create(instance,
973         instance->group16);
974     dtb_options_local_name_chg_but_create(instance,
975         instance->group16);
976     dtb_options_ok_button_create(instance,
977         instance->dialog_button_panel);
978     dtb_options_reset_button_create(instance,
979         instance->dialog_button_panel);
980     dtb_options_cancel_button_create(instance,
981         instance->dialog_button_panel);
982     dtb_options_separator_create(instance,
983         instance->dialog_button_panel);
984     dtb_options_apply_button_create(instance,
985         instance->dialog_button_panel);
986     dtb_options_help_button_create(instance,
987         instance->dialog_button_panel);
988     
989     /*
990      * Add widget-reference resources.
991      */
992     
993     XtVaSetValues(instance->dialog_shellform,
994         XmNdefaultButton, instance->ok_button,
995         NULL);
996     
997     XtVaSetValues(instance->layer,
998         XmNtopWidget, instance->ctrl_panel,
999         NULL);
1000     
1001     XtVaSetValues(instance->separator10,
1002         XmNtopWidget, instance->category_opmenu_rowcolumn,
1003         NULL);
1004     
1005     XtVaSetValues(instance->separator2,
1006         XmNtopWidget, instance->group21,
1007         NULL);
1008     
1009     XtVaSetValues(instance->checkbox,
1010         XmNtopWidget, instance->separator2,
1011         NULL);
1012     
1013     XtVaSetValues(instance->separator4,
1014         XmNtopWidget, instance->checkbox,
1015         NULL);
1016     
1017     XtVaSetValues(instance->group28,
1018         XmNtopWidget, instance->separator4,
1019         NULL);
1020     
1021     XtVaSetValues(instance->deleted_msg_cb,
1022         XmNtopWidget, instance->destroy_del_msg_lbl,
1023         NULL);
1024     
1025     XtVaSetValues(instance->seconds_lbl,
1026         XmNleftWidget, instance->mail_check_sb_rowcolumn,
1027         NULL);
1028     
1029     XtVaSetValues(instance->beeps_lbl,
1030         XmNleftWidget, instance->signal_sb_rowcolumn,
1031         NULL);
1032     
1033     XtVaSetValues(instance->flashes_lbl,
1034         XmNleftWidget, instance->spinbox2_rowcolumn,
1035         NULL);
1036     
1037     XtVaSetValues(instance->headers_lbl,
1038         XmNleftWidget, instance->display_sb_rowcolumn,
1039         NULL);
1040     
1041     XtVaSetValues(instance->separator6,
1042         XmNtopWidget, instance->group8,
1043         NULL);
1044     
1045     XtVaSetValues(instance->abr_header_lbl,
1046         XmNtopWidget, instance->separator6,
1047         NULL);
1048     
1049     XtVaSetValues(instance->group17,
1050         XmNtopWidget, instance->abr_header_lbl,
1051         NULL);
1052     
1053     XtVaSetValues(instance->rows_lbl,
1054         XmNleftWidget, instance->display_row_sb_rowcolumn,
1055         NULL);
1056     
1057     XtVaSetValues(instance->char_wide_lbl,
1058         XmNleftWidget, instance->characters_wide_sb_rowcolumn,
1059         NULL);
1060     
1061     XtVaSetValues(instance->group3,
1062         XmNleftWidget, instance->hidden_fields_list_scrolledwin,
1063         XmNtopWidget, instance->hidden_fields_list_scrolledwin,
1064         NULL);
1065     
1066     XtVaSetValues(instance->hidden_fields_list_scrolledwin,
1067         XmNrightWidget, instance->fields_hide,
1068         XmNtopWidget, instance->fields_hide,
1069         NULL);
1070     
1071     XtVaSetValues(instance->hidden_fields_lbl,
1072         XmNtopWidget, instance->hidden_fields_list_scrolledwin,
1073         NULL);
1074     
1075     XtVaSetValues(instance->h_field_delete,
1076         XmNtopWidget, instance->h_field_add,
1077         NULL);
1078     
1079     XtVaSetValues(instance->h_field_change,
1080         XmNtopWidget, instance->h_field_delete,
1081         NULL);
1082     
1083     XtVaSetValues(instance->separator7,
1084         XmNtopWidget, instance->group6,
1085         NULL);
1086     
1087     XtVaSetValues(instance->deadletter_field_rowcolumn,
1088         XmNtopWidget, instance->separator7,
1089         NULL);
1090     
1091     XtVaSetValues(instance->separator9,
1092         XmNtopWidget, instance->deadletter_field_rowcolumn,
1093         NULL);
1094     
1095     XtVaSetValues(instance->format_menu_lbl,
1096         XmNtopWidget, instance->separator9,
1097         NULL);
1098     
1099     XtVaSetValues(instance->confirm_attachment,
1100         XmNtopWidget, instance->wrap_checkbox,
1101         NULL);
1102     
1103     XtVaSetValues(instance->separator3,
1104         XmNtopWidget, instance->confirm_attachment,
1105         NULL);
1106     
1107     XtVaSetValues(instance->group6,
1108         XmNtopWidget, instance->separator3,
1109         NULL);
1110     
1111     XtVaSetValues(instance->group4,
1112         XmNtopWidget, instance->format_menu_lbl,
1113         NULL);
1114     
1115     XtVaSetValues(instance->indent_str_tf,
1116         XmNleftWidget, instance->group23,
1117         NULL);
1118     
1119     XtVaSetValues(instance->group7,
1120         XmNleftWidget, instance->list_scrolledwin,
1121         XmNtopWidget, instance->list_scrolledwin,
1122         NULL);
1123     
1124     XtVaSetValues(instance->list_scrolledwin,
1125         XmNrightWidget, instance->def_value_field,
1126         XmNtopWidget, instance->def_value_field,
1127         NULL);
1128     
1129     XtVaSetValues(instance->menu_labels_lbl,
1130         XmNtopWidget, instance->list_scrolledwin,
1131         NULL);
1132     
1133     XtVaSetValues(instance->def_value_field,
1134         XmNtopWidget, instance->hdr_field,
1135         NULL);
1136     
1137     XtVaSetValues(instance->hdr_field_lbl,
1138         XmNbottomWidget, instance->hdr_field,
1139         XmNtopWidget, instance->hdr_field,
1140         NULL);
1141     
1142     XtVaSetValues(instance->def_value_lbl,
1143         XmNbottomWidget, instance->def_value_field,
1144         XmNtopWidget, instance->def_value_field,
1145         NULL);
1146     
1147     XtVaSetValues(instance->del_button,
1148         XmNtopWidget, instance->add_button,
1149         NULL);
1150     
1151     XtVaSetValues(instance->change_button,
1152         XmNtopWidget, instance->del_button,
1153         NULL);
1154     
1155     XtVaSetValues(instance->separator8,
1156         XmNtopWidget, instance->group25,
1157         NULL);
1158     
1159     XtVaSetValues(instance->separator5,
1160         XmNtopWidget, instance->group9,
1161         NULL);
1162     
1163     XtVaSetValues(instance->group25,
1164         XmNtopWidget, instance->separator5,
1165         NULL);
1166     
1167     XtVaSetValues(instance->mailb_for_sent_lbl,
1168         XmNtopWidget, instance->separator8,
1169         NULL);
1170     
1171     XtVaSetValues(instance->group26,
1172         XmNtopWidget, instance->mailb_for_sent_lbl,
1173         NULL);
1174     
1175     XtVaSetValues(instance->group24,
1176         XmNleftWidget, instance->mv_menu_lst_scrolledwin,
1177         XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1178         NULL);
1179     
1180     XtVaSetValues(instance->mv_menu_lst_scrolledwin,
1181         XmNrightWidget, instance->path_file_name_tf,
1182         XmNtopWidget, instance->path_file_name_tf,
1183         NULL);
1184     
1185     XtVaSetValues(instance->srt_looking_tf,
1186         XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1187         NULL);
1188     
1189     XtVaSetValues(instance->move_menu_lbl,
1190         XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1191         NULL);
1192     
1193     XtVaSetValues(instance->move_menu_lbl2,
1194         XmNtopWidget, instance->move_menu_lbl,
1195         NULL);
1196     
1197     XtVaSetValues(instance->path_file_lbl,
1198         XmNbottomWidget, instance->path_file_name_tf,
1199         XmNtopWidget, instance->path_file_name_tf,
1200         NULL);
1201     
1202     XtVaSetValues(instance->start_look_lbl,
1203         XmNbottomWidget, instance->srt_looking_tf,
1204         XmNtopWidget, instance->srt_looking_tf,
1205         NULL);
1206     
1207     XtVaSetValues(instance->mm_delete_butt,
1208         XmNtopWidget, instance->mm_add_butt,
1209         NULL);
1210     
1211     XtVaSetValues(instance->mm_change_butt,
1212         XmNtopWidget, instance->mm_delete_butt,
1213         NULL);
1214     
1215     XtVaSetValues(instance->group10,
1216         XmNtopWidget, instance->vacation_lbl,
1217         NULL);
1218     
1219     XtVaSetValues(instance->vacation_msg_tp_scrolledwin,
1220         XmNtopWidget, instance->subject_tf,
1221         NULL);
1222     
1223     XtVaSetValues(instance->subject_tf,
1224         XmNtopWidget, instance->vacation_rb,
1225         NULL);
1226     
1227     XtVaSetValues(instance->msg_list_lbl,
1228         XmNtopWidget, instance->vacation_msg_tp_scrolledwin,
1229         NULL);
1230     
1231     XtVaSetValues(instance->subject_lbl,
1232         XmNbottomWidget, instance->subject_tf,
1233         XmNtopWidget, instance->subject_tf,
1234         NULL);
1235     
1236     XtVaSetValues(instance->vacation_rb_lbl,
1237         XmNbottomWidget, instance->vacation_rb,
1238         XmNtopWidget, instance->vacation_rb,
1239         NULL);
1240     
1241     XtVaSetValues(instance->group11,
1242         XmNleftWidget, instance->templates_list_scrolledwin,
1243         XmNtopWidget, instance->templates_list_scrolledwin,
1244         NULL);
1245     
1246     XtVaSetValues(instance->path_filename_label,
1247         XmNtopWidget, instance->menu_label,
1248         NULL);
1249     
1250     XtVaSetValues(instance->templates_list_scrolledwin,
1251         XmNrightWidget, instance->path_filename_label,
1252         XmNtopWidget, instance->path_filename_label,
1253         NULL);
1254     
1255     XtVaSetValues(instance->templates_list_lbl,
1256         XmNtopWidget, instance->templates_list_scrolledwin,
1257         NULL);
1258     
1259     XtVaSetValues(instance->menu_label_lbl,
1260         XmNbottomWidget, instance->menu_label,
1261         XmNtopWidget, instance->menu_label,
1262         NULL);
1263     
1264     XtVaSetValues(instance->path_filename_label_lbl,
1265         XmNbottomWidget, instance->path_filename_label,
1266         XmNtopWidget, instance->path_filename_label,
1267         NULL);
1268     
1269     XtVaSetValues(instance->tem_del_but,
1270         XmNtopWidget, instance->tem_add_but,
1271         NULL);
1272     
1273     XtVaSetValues(instance->tem_change_but,
1274         XmNtopWidget, instance->tem_del_but,
1275         NULL);
1276     
1277     XtVaSetValues(instance->group15,
1278         XmNleftWidget, instance->alias_list_scrolledwin,
1279         XmNtopWidget, instance->alias_list_scrolledwin,
1280         NULL);
1281     
1282     XtVaSetValues(instance->addresses_tf,
1283         XmNtopWidget, instance->alias_tf,
1284         NULL);
1285     
1286     XtVaSetValues(instance->alias_list_scrolledwin,
1287         XmNrightWidget, instance->addresses_tf,
1288         XmNtopWidget, instance->addresses_tf,
1289         NULL);
1290     
1291     XtVaSetValues(instance->alias_list_lbl,
1292         XmNtopWidget, instance->alias_list_scrolledwin,
1293         NULL);
1294     
1295     XtVaSetValues(instance->alias_tf_lbl,
1296         XmNbottomWidget, instance->alias_tf,
1297         XmNtopWidget, instance->alias_tf,
1298         NULL);
1299     
1300     XtVaSetValues(instance->address_tf_lbl,
1301         XmNbottomWidget, instance->addresses_tf,
1302         XmNtopWidget, instance->addresses_tf,
1303         NULL);
1304     
1305     XtVaSetValues(instance->alias_delete_but,
1306         XmNtopWidget, instance->alias_add_but,
1307         NULL);
1308     
1309     XtVaSetValues(instance->al_change_but,
1310         XmNtopWidget, instance->alias_delete_but,
1311         NULL);
1312     
1313     XtVaSetValues(instance->update_mbox_scale,
1314         XmNtopWidget, instance->update_mailb_lbl,
1315         NULL);
1316     
1317     XtVaSetValues(instance->frequently_lbl,
1318         XmNleftWidget, instance->update_mbox_scale,
1319         XmNtopWidget, instance->update_mbox_scale,
1320         NULL);
1321     
1322     XtVaSetValues(instance->seldom_lbl,
1323         XmNrightWidget, instance->update_mbox_scale,
1324         XmNtopWidget, instance->update_mbox_scale,
1325         NULL);
1326     
1327     XtVaSetValues(instance->separator11,
1328         XmNtopWidget, instance->seldom_lbl,
1329         NULL);
1330     
1331     XtVaSetValues(instance->adv_def_cb_rowcolumn,
1332         XmNtopWidget, instance->separator11,
1333         NULL);
1334     
1335     XtVaSetValues(instance->group12,
1336         XmNtopWidget, instance->adv_def_cb_rowcolumn,
1337         NULL);
1338     
1339     XtVaSetValues(instance->group16,
1340         XmNleftWidget, instance->local_name_list_scrolledwin,
1341         XmNtopWidget, instance->local_name_list_scrolledwin,
1342         NULL);
1343     
1344     XtVaSetValues(instance->local_name_list_scrolledwin,
1345         XmNrightWidget, instance->local_name_tf,
1346         XmNtopWidget, instance->local_name_tf,
1347         NULL);
1348     
1349     XtVaSetValues(instance->local_name_del_but,
1350         XmNtopWidget, instance->local_name_add_but,
1351         NULL);
1352     
1353     XtVaSetValues(instance->local_name_chg_but,
1354         XmNtopWidget, instance->local_name_del_but,
1355         NULL);
1356     
1357     /*
1358      * Call utility functions to do group layout
1359      */
1360     
1361     dtb_children_align(instance->group21,
1362                 DTB_GROUP_COLUMNS,
1363                 DTB_ALIGN_NONE,
1364                 DTB_ALIGN_LABELS,
1365                 0, 1, 0, 0, 4);
1366     
1367     dtb_children_align(instance->group8,
1368                 DTB_GROUP_COLUMNS,
1369                 DTB_ALIGN_NONE,
1370                 DTB_ALIGN_LABELS,
1371                 0, 1, 0, 0, 2);
1372     
1373     dtb_children_align(instance->group23,
1374                 DTB_GROUP_COLUMNS,
1375                 DTB_ALIGN_NONE,
1376                 DTB_ALIGN_RIGHT,
1377                 0, 1, 0, 0, 0);
1378     dtb_children_align(instance->group25,
1379                 DTB_GROUP_ROWS,
1380                 DTB_ALIGN_HCENTER,
1381                 DTB_ALIGN_NONE,
1382                 0, 1, 0, 4, 0);
1383
1384     XtVaSetValues(instance->visit_mailb_lbl, XmNtopOffset, 6, NULL);
1385     
1386     dtb_children_align(instance->group26,
1387                 DTB_GROUP_COLUMNS,
1388                 DTB_ALIGN_NONE,
1389                 DTB_ALIGN_LEFT,
1390                 0, 1, 0, 0, 6);
1391     
1392     XtManageChild(instance->category_opmenu_label);
1393     XtManageChild(instance->category_opmenu);
1394     XtManageChild(instance->category_opmenu_rowcolumn);
1395     XtManageChild(instance->separator10);
1396     XtManageChild(instance->ctrl_panel);
1397     XtManageChild(instance->separator2);
1398     XtManageChild(instance->checkbox);
1399     XtManageChild(instance->separator4);
1400     XtManageChild(instance->destroy_del_msg_lbl);
1401     XtManageChild(instance->deleted_msg_cb);
1402     XtManageChild(instance->group28);
1403     XtManageChild(instance->mail_check_sb_label);
1404     XtManageChild(instance->mail_check_sb);
1405     XtManageChild(instance->mail_check_sb_rowcolumn);
1406     XtManageChild(instance->seconds_lbl);
1407     XtManageChild(instance->group);
1408     XtManageChild(instance->signal_sb_label);
1409     XtManageChild(instance->signal_sb);
1410     XtManageChild(instance->signal_sb_rowcolumn);
1411     XtManageChild(instance->beeps_lbl);
1412     XtManageChild(instance->group18);
1413     XtManageChild(instance->spinbox2_label);
1414     XtManageChild(instance->spinbox2);
1415     XtManageChild(instance->spinbox2_rowcolumn);
1416     XtManageChild(instance->flashes_lbl);
1417     XtManageChild(instance->group19);
1418     XtManageChild(instance->display_sb_label);
1419     XtManageChild(instance->display_sb);
1420     XtManageChild(instance->display_sb_rowcolumn);
1421     XtManageChild(instance->headers_lbl);
1422     XtManageChild(instance->group20);
1423     XtManageChild(instance->group21);
1424     XtManageChild(instance->msg_header_pane);
1425     XtManageChild(instance->separator6);
1426     XtManageChild(instance->abr_header_lbl);
1427     XtManageChild(instance->display_row_sb_label);
1428     XtManageChild(instance->display_row_sb);
1429     XtManageChild(instance->display_row_sb_rowcolumn);
1430     XtManageChild(instance->rows_lbl);
1431     XtManageChild(instance->group2);
1432     XtManageChild(instance->characters_wide_sb_label);
1433     XtManageChild(instance->characters_wide_sb);
1434     XtManageChild(instance->characters_wide_sb_rowcolumn);
1435     XtManageChild(instance->char_wide_lbl);
1436     XtManageChild(instance->group22);
1437     XtManageChild(instance->fixed_font_cb);
1438     XtManageChild(instance->group8);
1439     XtManageChild(instance->h_field_add);
1440     XtManageChild(instance->h_field_delete);
1441     XtManageChild(instance->h_field_change);
1442     XtManageChild(instance->group3);
1443     XtManageChild(instance->fields_hide);
1444     XtManageChild(instance->hidden_fields_list);
1445     XtManageChild(instance->hidden_fields_list_scrolledwin);
1446     XtManageChild(instance->hidden_fields_lbl);
1447     XtManageChild(instance->header_fields_lbl);
1448     XtManageChild(instance->group17);
1449     XtManageChild(instance->wrap_checkbox);
1450     XtManageChild(instance->confirm_attachment);
1451     XtManageChild(instance->separator3);
1452     XtManageChild(instance->separator7);
1453     XtManageChild(instance->deadletter_field_label);
1454     XtManageChild(instance->deadletter_field);
1455     XtManageChild(instance->deadletter_field_rowcolumn);
1456     XtManageChild(instance->separator9);
1457     XtManageChild(instance->format_menu_lbl);
1458     XtManageChild(instance->indent_str_tf);
1459     XtManageChild(instance->indent_str_lbl);
1460     XtManageChild(instance->reply_include_lbl);
1461     XtManageChild(instance->group23);
1462     XtManageChild(instance->group6);
1463     XtManageChild(instance->add_button);
1464     XtManageChild(instance->del_button);
1465     XtManageChild(instance->change_button);
1466     XtManageChild(instance->group7);
1467     XtManageChild(instance->list);
1468     XtManageChild(instance->list_scrolledwin);
1469     XtManageChild(instance->menu_labels_lbl);
1470     XtManageChild(instance->hdr_field);
1471     XtManageChild(instance->def_value_field);
1472     XtManageChild(instance->hdr_field_lbl);
1473     XtManageChild(instance->def_value_lbl);
1474     XtManageChild(instance->group4);
1475     XtManageChild(instance->separator8);
1476     XtManageChild(instance->separator5);
1477     XtManageChild(instance->dpy_up_mbox_cb);
1478     XtManageChild(instance->recent_sb);
1479     XtManageChild(instance->visit_mailb_lbl);
1480     XtManageChild(instance->group25);
1481     XtManageChild(instance->mailb_for_sent_lbl);
1482     XtManageChild(instance->sent_mail_tf);
1483     XtManageChild(instance->log_cb);
1484     XtManageChild(instance->group26);
1485     XtManageChild(instance->mm_add_butt);
1486     XtManageChild(instance->mm_delete_butt);
1487     XtManageChild(instance->mm_change_butt);
1488     XtManageChild(instance->group24);
1489     XtManageChild(instance->path_file_name_tf);
1490     XtManageChild(instance->mv_menu_lst);
1491     XtManageChild(instance->mv_menu_lst_scrolledwin);
1492     XtManageChild(instance->srt_looking_tf);
1493     XtManageChild(instance->move_menu_lbl);
1494     XtManageChild(instance->move_menu_lbl2);
1495     XtManageChild(instance->path_file_lbl);
1496     XtManageChild(instance->start_look_lbl);
1497     XtManageChild(instance->group9);
1498     XtManageChild(instance->vacation_lbl);
1499     XtManageChild(instance->vacation_rb);
1500     XtManageChild(instance->vacation_msg_tp);
1501     XtManageChild(instance->vacation_msg_tp_scrolledwin);
1502     XtManageChild(instance->subject_tf);
1503     XtManageChild(instance->msg_list_lbl);
1504     XtManageChild(instance->subject_lbl);
1505     XtManageChild(instance->vacation_rb_lbl);
1506     XtManageChild(instance->group10);
1507     XtManageChild(instance->tem_add_but);
1508     XtManageChild(instance->tem_del_but);
1509     XtManageChild(instance->tem_change_but);
1510     XtManageChild(instance->group11);
1511     XtManageChild(instance->menu_label);
1512     XtManageChild(instance->path_filename_label);
1513     XtManageChild(instance->templates_list);
1514     XtManageChild(instance->templates_list_scrolledwin);
1515     XtManageChild(instance->templates_list_lbl);
1516     XtManageChild(instance->menu_label_lbl);
1517     XtManageChild(instance->path_filename_label_lbl);
1518     XtManageChild(instance->group13);
1519     XtManageChild(instance->alias_add_but);
1520     XtManageChild(instance->alias_delete_but);
1521     XtManageChild(instance->al_change_but);
1522     XtManageChild(instance->group15);
1523     XtManageChild(instance->alias_tf);
1524     XtManageChild(instance->addresses_tf);
1525     XtManageChild(instance->alias_list);
1526     XtManageChild(instance->alias_list_scrolledwin);
1527     XtManageChild(instance->alias_list_lbl);
1528     XtManageChild(instance->alias_tf_lbl);
1529     XtManageChild(instance->address_tf_lbl);
1530     XtManageChild(instance->group14);
1531     XtManageChild(instance->update_mbox_scale);
1532     XtManageChild(instance->update_mailb_lbl);
1533     XtManageChild(instance->frequently_lbl);
1534     XtManageChild(instance->seldom_lbl);
1535     XtManageChild(instance->separator11);
1536     XtManageChild(instance->adv_def_cb_label);
1537     XtManageChild(instance->adv_def_cb);
1538     XtManageChild(instance->adv_def_cb_rowcolumn);
1539     XtManageChild(instance->local_name_add_but);
1540     XtManageChild(instance->local_name_del_but);
1541     XtManageChild(instance->local_name_chg_but);
1542     XtManageChild(instance->group16);
1543     XtManageChild(instance->local_name_tf);
1544     XtManageChild(instance->local_name_list);
1545     XtManageChild(instance->local_name_list_scrolledwin);
1546     XtManageChild(instance->group12);
1547     XtManageChild(instance->layer);
1548     XtManageChild(instance->dialog_form);
1549     XtManageChild(instance->ok_button);
1550     XtManageChild(instance->reset_button);
1551     XtManageChild(instance->cancel_button);
1552     XtManageChild(instance->separator);
1553     XtManageChild(instance->apply_button);
1554     XtManageChild(instance->help_button);
1555     XtManageChild(instance->dialog_button_panel);
1556     XtManageChild(instance->dialog_panedwin);
1557
1558     /*
1559      * Add User and Connection callbacks
1560      */
1561         XtAddCallback(instance->category_opmenu_items.Message_Header_List_item,
1562                 XmNactivateCallback, message_header_listCB,
1563                 (XtPointer)&(*instance));
1564         XtAddCallback(instance->category_opmenu_items.Message_View_item,
1565                 XmNactivateCallback, message_viewCB,
1566                 (XtPointer)&(*instance));
1567         XtAddCallback(instance->category_opmenu_items.Compose_Window_item,
1568                 XmNactivateCallback, compose_windowCB,
1569                 (XtPointer)&(*instance));
1570         XtAddCallback(instance->category_opmenu_items.Message_Filing_item,
1571                 XmNactivateCallback, message_filingCB,
1572                 (XtPointer)&(*instance));
1573         XtAddCallback(instance->category_opmenu_items.Vacation_item,
1574                 XmNactivateCallback, vacationCB,
1575                 (XtPointer)&(*instance));
1576         XtAddCallback(instance->category_opmenu_items.Templates_item,
1577                 XmNactivateCallback, templatesCB,
1578                 (XtPointer)&(*instance));
1579         XtAddCallback(instance->category_opmenu_items.Aliases_item,
1580                 XmNactivateCallback, aliasesCB,
1581                 (XtPointer)&(*instance));
1582         XtAddCallback(instance->category_opmenu_items.Advanced_item,
1583                 XmNactivateCallback, advancedCB,
1584                 (XtPointer)&(*instance));
1585         XtAddCallback(instance->category_opmenu_items.Printing_item,
1586                 XmNactivateCallback, printingCB,
1587                 (XtPointer)&(*instance));
1588         XtAddCallback(instance->category_opmenu_items.MailRetrieval_item,
1589                 XmNactivateCallback, mailretrievalCB,
1590                 (XtPointer)&(*instance));
1591         XtAddCallback(instance->vacation_rb_items.On_item,
1592                 XmNvalueChangedCallback, vacationOnCB,
1593                 (XtPointer)&(*instance));
1594         XtAddCallback(instance->vacation_rb_items.Off_item,
1595                 XmNvalueChangedCallback, vacationOffCB,
1596                 (XtPointer)&(*instance));
1597         XtAddCallback(instance->alias_add_but,
1598                 XmNactivateCallback, alias_addCB,
1599                 (XtPointer)&(*instance));
1600         XtAddCallback(instance->alias_delete_but,
1601                 XmNactivateCallback, alias_delCB,
1602                 (XtPointer)&(*instance));
1603         XtAddCallback(instance->al_change_but,
1604                 XmNactivateCallback, alias_changeCB,
1605                 (XtPointer)&(*instance));
1606         XtAddCallback(instance->ok_button,
1607                 XmNactivateCallback, opt_pane_okCB,
1608                 (XtPointer)&(*instance));
1609         XtAddCallback(instance->reset_button,
1610                 XmNactivateCallback, opt_dlog_resetCB,
1611                 (XtPointer)&(*instance));
1612         XtAddCallback(instance->cancel_button,
1613                 XmNactivateCallback, opt_dlog_cancelCB,
1614                 (XtPointer)&(*instance));
1615         XtAddCallback(instance->apply_button,
1616                 XmNactivateCallback, options_applyCB,
1617                 (XtPointer)&(*instance));
1618         XtAddCallback(instance->help_button,
1619                 XmNactivateCallback, opt_dlog_HelpCB,
1620                 (XtPointer)&(*instance));
1621 return 0;
1622 }
1623
1624
1625
1626 static int 
1627 dtb_options_dialog_create(
1628     DtbOptionsDialogInfo instance,
1629     Widget parent
1630 )
1631 {
1632     XmString    label_xmstring = NULL;
1633     Display     *display= (parent == NULL? NULL:XtDisplay(parent));
1634     Arg args[8];        /* need 3 args (add 5 to be safe) */
1635     int n = 0;
1636     
1637     if (instance->dialog == NULL) {
1638         n = 0;
1639         XtSetArg(args[n], XmNallowShellResize, True);  ++n;
1640         XtSetArg(args[n], XmNtitle, GETMSG(Dtb_project_catd, 2, 1, "Mailer - Mail Options"));  ++n;
1641         XtSetArg(args[n], XmNbackground, dtb_cvt_string_to_pixel(parent, "white"));  ++n;
1642         instance->dialog =
1643             XmCreateDialogShell(parent,
1644                 "dtb_options_dialog", args, n);
1645     }
1646     if (instance->dialog == NULL)
1647         return -1;
1648
1649     if (instance->dialog_shellform == NULL) {
1650         instance->dialog_shellform =
1651             XtVaCreateWidget("dtb_options_dialog_shellform",
1652                 xmFormWidgetClass,
1653                 instance->dialog,
1654                 XmNnoResize, True,
1655                 XmNdefaultPosition, False,
1656                 XmNmarginHeight, 0,
1657                 XmNmarginWidth, 0,
1658                 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog, "white"),
1659                 NULL);
1660     }
1661     if (instance->dialog_shellform == NULL)
1662         return -1;
1663
1664     if (instance->dialog_panedwin == NULL) {
1665         instance->dialog_panedwin =
1666             XtVaCreateWidget("dtb_options_dialog_panedwin",
1667                 xmPanedWindowWidgetClass,
1668                 instance->dialog_shellform,
1669                 XmNbottomOffset, 0,
1670                 XmNbottomPosition, 100,
1671                 XmNbottomAttachment, XmATTACH_POSITION,
1672                 XmNrightOffset, 0,
1673                 XmNrightPosition, 100,
1674                 XmNrightAttachment, XmATTACH_POSITION,
1675                 XmNleftOffset, 0,
1676                 XmNleftPosition, 0,
1677                 XmNleftAttachment, XmATTACH_POSITION,
1678                 XmNtopOffset, 0,
1679                 XmNtopPosition, 0,
1680                 XmNtopAttachment, XmATTACH_POSITION,
1681                 XmNsashWidth, 1,
1682                 XmNsashHeight, 1,
1683                 XmNspacing, 0,
1684                 XmNmarginHeight, 0,
1685                 XmNmarginWidth, 0,
1686                 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog_shellform, "white"),
1687                 NULL);
1688     }
1689     if (instance->dialog_panedwin == NULL)
1690         return -1;
1691
1692     if (instance->dialog_form == NULL) {
1693         instance->dialog_form =
1694             XtVaCreateWidget("dtb_options_dialog_form",
1695                 xmFormWidgetClass,
1696                 instance->dialog_panedwin,
1697                 XmNallowResize, True,
1698                 XmNmarginHeight, 0,
1699                 XmNmarginWidth, 0,
1700                 XmNresizePolicy, XmRESIZE_ANY,
1701                 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog_panedwin, "white"),
1702                 NULL);
1703     }
1704     if (instance->dialog_form == NULL)
1705         return -1;
1706
1707     return 0;
1708 }
1709
1710
1711
1712 static int 
1713 dtb_options_dialog_button_panel_create(
1714     DtbOptionsDialogInfo instance,
1715     Widget parent
1716 )
1717 {
1718     
1719     if (instance->dialog_button_panel == NULL) {
1720         instance->dialog_button_panel =
1721             XtVaCreateWidget("dtb_options_dialog_button_panel",
1722                 xmFormWidgetClass,
1723                 parent,
1724                 XmNresizePolicy, XmRESIZE_GROW,
1725                 XmNmarginHeight, 7,
1726                 XmNmarginWidth, 7,
1727                 XmNpositionIndex, 1,
1728                 NULL);
1729     }
1730     if (instance->dialog_button_panel == NULL)
1731         return -1;
1732
1733     return 0;
1734 }
1735
1736
1737
1738 static int 
1739 dtb_options_ctrl_panel_create(
1740     DtbOptionsDialogInfo instance,
1741     Widget parent
1742 )
1743 {
1744     
1745     if (instance->ctrl_panel == NULL) {
1746         instance->ctrl_panel =
1747             XtVaCreateWidget("dtb_options_ctrl_panel",
1748                 xmFormWidgetClass,
1749                 parent,
1750                 XmNbottomAttachment, XmATTACH_NONE,
1751                 XmNrightOffset, 0,
1752                 XmNrightAttachment, XmATTACH_FORM,
1753                 XmNleftOffset, 0,
1754                 XmNleftAttachment, XmATTACH_FORM,
1755                 XmNtopOffset, 0,
1756                 XmNtopAttachment, XmATTACH_FORM,
1757                 XmNresizePolicy, XmRESIZE_ANY,
1758                 XmNmarginHeight, 0,
1759                 XmNmarginWidth, 0,
1760                 NULL);
1761     }
1762     if (instance->ctrl_panel == NULL)
1763         return -1;
1764
1765     return 0;
1766 }
1767
1768
1769
1770 static int 
1771 dtb_options_layer_create(
1772     DtbOptionsDialogInfo instance,
1773     Widget parent
1774 )
1775 {
1776     
1777     if (instance->layer == NULL) {
1778         instance->layer =
1779             XtVaCreateWidget("dtb_options_layer",
1780                 xmFormWidgetClass,
1781                 parent,
1782                 XmNbottomOffset, 0,
1783                 XmNbottomAttachment, XmATTACH_FORM,
1784                 XmNrightOffset, 0,
1785                 XmNrightAttachment, XmATTACH_FORM,
1786                 XmNleftOffset, 0,
1787                 XmNleftAttachment, XmATTACH_FORM,
1788                 XmNtopOffset, 0,
1789                 XmNtopAttachment, XmATTACH_WIDGET,
1790                 XmNresizePolicy, XmRESIZE_ANY,
1791                 NULL);
1792     }
1793     if (instance->layer == NULL)
1794         return -1;
1795
1796     return 0;
1797 }
1798
1799
1800
1801 static int 
1802 dtb_options_category_opmenu_create(
1803     DtbOptionsDialogInfo instance,
1804     Widget parent
1805 )
1806 {
1807     XmString    label_xmstring = NULL;
1808     Arg args[22];       /* need 17 args (add 5 to be safe) */
1809     int n = 0;
1810     Widget      category_opmenu_menu_items[8];
1811     
1812     if (instance->category_opmenu_rowcolumn == NULL) {
1813         instance->category_opmenu_rowcolumn =
1814             XtVaCreateWidget("dtb_options_category_opmenu",
1815                 xmRowColumnWidgetClass,
1816                 parent,
1817                 XmNbottomAttachment, XmATTACH_NONE,
1818                 XmNrightAttachment, XmATTACH_NONE,
1819                 XmNleftOffset, 0,
1820                 XmNleftPosition, 50,
1821                 XmNleftAttachment, XmATTACH_POSITION,
1822                 XmNtopOffset, 4,
1823                 XmNtopAttachment, XmATTACH_FORM,
1824                 XmNspacing, 0,
1825                 XmNpacking, XmPACK_TIGHT,
1826                 XmNisHomogeneous, False,
1827                 XmNadjustLast, True,
1828                 XmNmarginWidth, 0,
1829                 XmNmarginHeight, 0,
1830                 XmNentryAlignment, XmALIGNMENT_END,
1831                 XmNorientation, XmHORIZONTAL,
1832                 NULL);
1833     }
1834     if (instance->category_opmenu_rowcolumn == NULL)
1835         return -1;
1836
1837     if (instance->category_opmenu_menu == NULL) {
1838         n = 0;
1839         XtSetArg(args[n], XmNrowColumnType, XmMENU_PULLDOWN);  ++n;
1840         instance->category_opmenu_menu =
1841             XmCreatePulldownMenu(instance->category_opmenu_rowcolumn,
1842                 "dtb_options_category_opmenu_menu", args, n);
1843     }
1844     if (instance->category_opmenu_menu == NULL)
1845         return -1;
1846
1847     if (instance->category_opmenu_label == NULL) {
1848         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 2, "Category:"));
1849         instance->category_opmenu_label =
1850             XtVaCreateWidget("dtb_options_category_opmenu_label",
1851                 xmLabelWidgetClass,
1852                 instance->category_opmenu_rowcolumn,
1853                 XmNlabelType, XmSTRING,
1854                 XmNlabelString, label_xmstring,
1855                 NULL);
1856         XmStringFree(label_xmstring);
1857         label_xmstring = NULL;
1858     }
1859     if (instance->category_opmenu_label == NULL)
1860         return -1;
1861
1862     if (instance->category_opmenu == NULL) {
1863         n = 0;
1864         XtSetArg(args[n], XmNrowColumnType, XmMENU_OPTION);  ++n;
1865         XtSetArg(args[n], XmNspacing, 0);  ++n;
1866         XtSetArg(args[n], XmNsubMenuId, instance->category_opmenu_menu);  ++n;
1867         instance->category_opmenu =
1868             XmCreateOptionMenu(instance->category_opmenu_rowcolumn,
1869                 "dtb_options_category_opmenu_choice", args, n);
1870     }
1871     if (instance->category_opmenu == NULL)
1872         return -1;
1873
1874     if (instance->category_opmenu_items.Message_Header_List_item == NULL) {
1875         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 3, "Message Header List"));
1876         instance->category_opmenu_items.Message_Header_List_item =
1877             XtVaCreateManagedWidget("dtb_options_category_opmenu_message_header_list_item",
1878                 xmPushButtonWidgetClass,
1879                 instance->category_opmenu_menu,
1880                 XmNlabelString, label_xmstring,
1881                 NULL);
1882         XmStringFree(label_xmstring);
1883         label_xmstring = NULL;
1884     }
1885     if (instance->category_opmenu_items.Message_Header_List_item == NULL)
1886         return -1;
1887
1888     if (instance->category_opmenu_items.Message_View_item == NULL) {
1889         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 4, "Message View"));
1890         instance->category_opmenu_items.Message_View_item =
1891             XtVaCreateManagedWidget("dtb_options_category_opmenu_message_view_item",
1892                 xmPushButtonWidgetClass,
1893                 instance->category_opmenu_menu,
1894                 XmNlabelString, label_xmstring,
1895                 NULL);
1896         XmStringFree(label_xmstring);
1897         label_xmstring = NULL;
1898     }
1899     if (instance->category_opmenu_items.Message_View_item == NULL)
1900         return -1;
1901
1902     if (instance->category_opmenu_items.Compose_Window_item == NULL) {
1903         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 5, "Compose Window"));
1904         instance->category_opmenu_items.Compose_Window_item =
1905             XtVaCreateManagedWidget("dtb_options_category_opmenu_compose_window_item",
1906                 xmPushButtonWidgetClass,
1907                 instance->category_opmenu_menu,
1908                 XmNlabelString, label_xmstring,
1909                 NULL);
1910         XmStringFree(label_xmstring);
1911         label_xmstring = NULL;
1912     }
1913     if (instance->category_opmenu_items.Compose_Window_item == NULL)
1914         return -1;
1915
1916     if (instance->category_opmenu_items.Message_Filing_item == NULL) {
1917         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 6, "Message Filing"));
1918         instance->category_opmenu_items.Message_Filing_item =
1919             XtVaCreateManagedWidget("dtb_options_category_opmenu_message_filing_item",
1920                 xmPushButtonWidgetClass,
1921                 instance->category_opmenu_menu,
1922                 XmNlabelString, label_xmstring,
1923                 NULL);
1924         XmStringFree(label_xmstring);
1925         label_xmstring = NULL;
1926     }
1927     if (instance->category_opmenu_items.Message_Filing_item == NULL)
1928         return -1;
1929
1930     if (instance->category_opmenu_items.Vacation_item == NULL) {
1931         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 7, "Vacation"));
1932         instance->category_opmenu_items.Vacation_item =
1933             XtVaCreateManagedWidget("dtb_options_category_opmenu_vacation_item",
1934                 xmPushButtonWidgetClass,
1935                 instance->category_opmenu_menu,
1936                 XmNlabelString, label_xmstring,
1937                 NULL);
1938         XmStringFree(label_xmstring);
1939         label_xmstring = NULL;
1940     }
1941     if (instance->category_opmenu_items.Vacation_item == NULL)
1942         return -1;
1943
1944     if (instance->category_opmenu_items.Templates_item == NULL) {
1945         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 8, "Templates"));
1946         instance->category_opmenu_items.Templates_item =
1947             XtVaCreateManagedWidget("dtb_options_category_opmenu_templates_item",
1948                 xmPushButtonWidgetClass,
1949                 instance->category_opmenu_menu,
1950                 XmNlabelString, label_xmstring,
1951                 NULL);
1952         XmStringFree(label_xmstring);
1953         label_xmstring = NULL;
1954     }
1955     if (instance->category_opmenu_items.Templates_item == NULL)
1956         return -1;
1957
1958     if (instance->category_opmenu_items.Aliases_item == NULL) {
1959         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 9, "Aliases"));
1960         instance->category_opmenu_items.Aliases_item =
1961             XtVaCreateManagedWidget("dtb_options_category_opmenu_aliases_item",
1962                 xmPushButtonWidgetClass,
1963                 instance->category_opmenu_menu,
1964                 XmNlabelString, label_xmstring,
1965                 NULL);
1966         XmStringFree(label_xmstring);
1967         label_xmstring = NULL;
1968     }
1969     if (instance->category_opmenu_items.Aliases_item == NULL)
1970         return -1;
1971
1972     if (instance->category_opmenu_items.Advanced_item == NULL) {
1973         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 10, "Advanced"));
1974         instance->category_opmenu_items.Advanced_item =
1975             XtVaCreateManagedWidget("dtb_options_category_opmenu_advanced_item",
1976                 xmPushButtonWidgetClass,
1977                 instance->category_opmenu_menu,
1978                 XmNlabelString, label_xmstring,
1979                 NULL);
1980         XmStringFree(label_xmstring);
1981         label_xmstring = NULL;
1982     }
1983     if (instance->category_opmenu_items.Advanced_item == NULL)
1984         return -1;
1985
1986     if (instance->category_opmenu_items.Printing_item == NULL) {
1987         label_xmstring =
1988           XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 92, "Printing"));
1989         instance->category_opmenu_items.Printing_item =
1990             XtVaCreateManagedWidget("dtb_options_category_opmenu_printing_item",
1991                 xmPushButtonWidgetClass,
1992                 instance->category_opmenu_menu,
1993                 XmNlabelString, label_xmstring,
1994                 NULL);
1995         XmStringFree(label_xmstring);
1996         label_xmstring = NULL;
1997     }
1998     if (instance->category_opmenu_items.Printing_item == NULL)
1999         return -1;
2000
2001     if (instance->category_opmenu_items.MailRetrieval_item == NULL) {
2002         label_xmstring =
2003           XmStringCreateLocalized(
2004             GETMSG(Dtb_project_catd, 2, 93, "Mail Retrieval"));
2005         instance->category_opmenu_items.MailRetrieval_item =
2006             XtVaCreateManagedWidget(
2007                 "dtb_options_category_opmenu_mailretrieval_item",
2008                 xmPushButtonWidgetClass,
2009                 instance->category_opmenu_menu,
2010                 XmNlabelString, label_xmstring,
2011                 NULL);
2012         XmStringFree(label_xmstring);
2013         label_xmstring = NULL;
2014     }
2015     if (instance->category_opmenu_items.MailRetrieval_item == NULL)
2016         return -1;
2017
2018     dtb_center(instance->category_opmenu_rowcolumn, DTB_CENTER_POSITION_VERT);
2019     return 0;
2020 }
2021
2022
2023
2024 static int 
2025 dtb_options_separator10_create(
2026     DtbOptionsDialogInfo instance,
2027     Widget parent
2028 )
2029 {
2030     
2031     if (instance->separator10 == NULL) {
2032         instance->separator10 =
2033             XtVaCreateWidget("dtb_options_separator10",
2034                 xmSeparatorWidgetClass,
2035                 parent,
2036                 XmNbottomAttachment, XmATTACH_NONE,
2037                 XmNrightOffset, 0,
2038                 XmNrightAttachment, XmATTACH_FORM,
2039                 XmNleftOffset, 0,
2040                 XmNleftAttachment, XmATTACH_FORM,
2041                 XmNtopOffset, 2,
2042                 XmNtopAttachment, XmATTACH_WIDGET,
2043                 XmNseparatorType, XmSHADOW_ETCHED_IN,
2044                 XmNorientation, XmHORIZONTAL,
2045                 NULL);
2046     }
2047     if (instance->separator10 == NULL)
2048         return -1;
2049
2050     return 0;
2051 }
2052
2053
2054
2055 static int 
2056 dtb_options_msg_header_pane_create(
2057     DtbOptionsDialogInfo instance,
2058     Widget parent
2059 )
2060 {
2061     
2062     if (instance->msg_header_pane == NULL) {
2063         instance->msg_header_pane =
2064             XtVaCreateWidget("dtb_options_msg_header_pane",
2065                 xmFormWidgetClass,
2066                 parent,
2067                 XmNbottomOffset, 0,
2068                 XmNbottomPosition, 100,
2069                 XmNbottomAttachment, XmATTACH_POSITION,
2070                 XmNrightOffset, 0,
2071                 XmNrightPosition, 100,
2072                 XmNrightAttachment, XmATTACH_POSITION,
2073                 XmNleftOffset, 0,
2074                 XmNleftPosition, 0,
2075                 XmNleftAttachment, XmATTACH_POSITION,
2076                 XmNtopOffset, 0,
2077                 XmNtopPosition, 0,
2078                 XmNtopAttachment, XmATTACH_POSITION,
2079                 XmNresizePolicy, XmRESIZE_ANY,
2080                 XmNmarginHeight, 0,
2081                 XmNmarginWidth, 0,
2082                 NULL);
2083     }
2084     if (instance->msg_header_pane == NULL)
2085         return -1;
2086
2087     return 0;
2088 }
2089
2090
2091
2092 static int 
2093 dtb_options_msg_view_pane_create(
2094     DtbOptionsDialogInfo instance,
2095     Widget parent
2096 )
2097 {
2098     
2099     if (instance->msg_view_pane == NULL) {
2100         instance->msg_view_pane =
2101             XtVaCreateWidget("dtb_options_msg_view_pane",
2102                 xmFormWidgetClass,
2103                 parent,
2104                 XmNbottomOffset, 0,
2105                 XmNbottomPosition, 100,
2106                 XmNbottomAttachment, XmATTACH_POSITION,
2107                 XmNrightOffset, 0,
2108                 XmNrightPosition, 100,
2109                 XmNrightAttachment, XmATTACH_POSITION,
2110                 XmNleftOffset, 0,
2111                 XmNleftPosition, 0,
2112                 XmNleftAttachment, XmATTACH_POSITION,
2113                 XmNtopOffset, 0,
2114                 XmNtopPosition, 0,
2115                 XmNtopAttachment, XmATTACH_POSITION,
2116                 XmNresizePolicy, XmRESIZE_ANY,
2117                 XmNmarginHeight, 0,
2118                 XmNmarginWidth, 0,
2119                 NULL);
2120     }
2121     if (instance->msg_view_pane == NULL)
2122         return -1;
2123
2124     return 0;
2125 }
2126
2127
2128
2129 static int 
2130 dtb_options_compose_win_pane_create(
2131     DtbOptionsDialogInfo instance,
2132     Widget parent
2133 )
2134 {
2135     
2136     if (instance->compose_win_pane == NULL) {
2137         instance->compose_win_pane =
2138             XtVaCreateWidget("dtb_options_compose_win_pane",
2139                 xmFormWidgetClass,
2140                 parent,
2141                 XmNbottomOffset, 0,
2142                 XmNbottomPosition, 100,
2143                 XmNbottomAttachment, XmATTACH_POSITION,
2144                 XmNrightOffset, 0,
2145                 XmNrightPosition, 100,
2146                 XmNrightAttachment, XmATTACH_POSITION,
2147                 XmNleftOffset, 0,
2148                 XmNleftPosition, 0,
2149                 XmNleftAttachment, XmATTACH_POSITION,
2150                 XmNtopOffset, 0,
2151                 XmNtopPosition, 0,
2152                 XmNtopAttachment, XmATTACH_POSITION,
2153                 XmNresizePolicy, XmRESIZE_ANY,
2154                 XmNmarginHeight, 0,
2155                 XmNmarginWidth, 0,
2156                 NULL);
2157     }
2158     if (instance->compose_win_pane == NULL)
2159         return -1;
2160
2161     return 0;
2162 }
2163
2164
2165
2166 static int 
2167 dtb_options_msg_filing_pane_create(
2168     DtbOptionsDialogInfo instance,
2169     Widget parent
2170 )
2171 {
2172     
2173     if (instance->msg_filing_pane == NULL) {
2174         instance->msg_filing_pane =
2175             XtVaCreateWidget("dtb_options_msg_filing_pane",
2176                 xmFormWidgetClass,
2177                 parent,
2178                 XmNbottomOffset, 0,
2179                 XmNbottomPosition, 100,
2180                 XmNbottomAttachment, XmATTACH_POSITION,
2181                 XmNrightOffset, 0,
2182                 XmNrightPosition, 100,
2183                 XmNrightAttachment, XmATTACH_POSITION,
2184                 XmNleftOffset, 0,
2185                 XmNleftPosition, 0,
2186                 XmNleftAttachment, XmATTACH_POSITION,
2187                 XmNtopOffset, 0,
2188                 XmNtopPosition, 0,
2189                 XmNtopAttachment, XmATTACH_POSITION,
2190                 XmNresizePolicy, XmRESIZE_ANY,
2191                 XmNmarginHeight, 0,
2192                 XmNmarginWidth, 0,
2193                 NULL);
2194     }
2195     if (instance->msg_filing_pane == NULL)
2196         return -1;
2197
2198     return 0;
2199 }
2200
2201
2202
2203 static int 
2204 dtb_options_vacation_pane_create(
2205     DtbOptionsDialogInfo instance,
2206     Widget parent
2207 )
2208 {
2209     
2210     if (instance->vacation_pane == NULL) {
2211         instance->vacation_pane =
2212             XtVaCreateWidget("dtb_options_vacation_pane",
2213                 xmFormWidgetClass,
2214                 parent,
2215                 XmNbottomOffset, 0,
2216                 XmNbottomPosition, 100,
2217                 XmNbottomAttachment, XmATTACH_POSITION,
2218                 XmNrightOffset, 0,
2219                 XmNrightPosition, 100,
2220                 XmNrightAttachment, XmATTACH_POSITION,
2221                 XmNleftOffset, 0,
2222                 XmNleftPosition, 0,
2223                 XmNleftAttachment, XmATTACH_POSITION,
2224                 XmNtopOffset, 0,
2225                 XmNtopPosition, 0,
2226                 XmNtopAttachment, XmATTACH_POSITION,
2227                 XmNresizePolicy, XmRESIZE_ANY,
2228                 XmNmarginHeight, 0,
2229                 XmNmarginWidth, 0,
2230                 NULL);
2231     }
2232     if (instance->vacation_pane == NULL)
2233         return -1;
2234
2235     return 0;
2236 }
2237
2238
2239
2240 static int 
2241 dtb_options_templates_pane_create(
2242     DtbOptionsDialogInfo instance,
2243     Widget parent
2244 )
2245 {
2246     
2247     if (instance->templates_pane == NULL) {
2248         instance->templates_pane =
2249             XtVaCreateWidget("dtb_options_templates_pane",
2250                 xmFormWidgetClass,
2251                 parent,
2252                 XmNbottomOffset, 0,
2253                 XmNbottomPosition, 100,
2254                 XmNbottomAttachment, XmATTACH_POSITION,
2255                 XmNrightOffset, 0,
2256                 XmNrightPosition, 100,
2257                 XmNrightAttachment, XmATTACH_POSITION,
2258                 XmNleftOffset, 0,
2259                 XmNleftPosition, 0,
2260                 XmNleftAttachment, XmATTACH_POSITION,
2261                 XmNtopOffset, 0,
2262                 XmNtopPosition, 0,
2263                 XmNtopAttachment, XmATTACH_POSITION,
2264                 XmNresizePolicy, XmRESIZE_ANY,
2265                 XmNmarginHeight, 0,
2266                 XmNmarginWidth, 0,
2267                 NULL);
2268     }
2269     if (instance->templates_pane == NULL)
2270         return -1;
2271
2272     return 0;
2273 }
2274
2275
2276
2277 static int 
2278 dtb_options_aliases_pane_create(
2279     DtbOptionsDialogInfo instance,
2280     Widget parent
2281 )
2282 {
2283     
2284     if (instance->aliases_pane == NULL) {
2285         instance->aliases_pane =
2286             XtVaCreateWidget("dtb_options_aliases_pane",
2287                 xmFormWidgetClass,
2288                 parent,
2289                 XmNbottomOffset, 0,
2290                 XmNbottomPosition, 100,
2291                 XmNbottomAttachment, XmATTACH_POSITION,
2292                 XmNrightOffset, 0,
2293                 XmNrightPosition, 100,
2294                 XmNrightAttachment, XmATTACH_POSITION,
2295                 XmNleftOffset, 0,
2296                 XmNleftPosition, 0,
2297                 XmNleftAttachment, XmATTACH_POSITION,
2298                 XmNtopOffset, 0,
2299                 XmNtopPosition, 0,
2300                 XmNtopAttachment, XmATTACH_POSITION,
2301                 XmNresizePolicy, XmRESIZE_ANY,
2302                 XmNmarginHeight, 0,
2303                 XmNmarginWidth, 0,
2304                 NULL);
2305     }
2306     if (instance->aliases_pane == NULL)
2307         return -1;
2308
2309     return 0;
2310 }
2311
2312
2313
2314 static int 
2315 dtb_options_advanced_pane_create(
2316     DtbOptionsDialogInfo instance,
2317     Widget parent
2318 )
2319 {
2320     
2321     if (instance->advanced_pane == NULL) {
2322         instance->advanced_pane =
2323             XtVaCreateWidget("dtb_options_advanced_pane",
2324                 xmFormWidgetClass,
2325                 parent,
2326                 XmNbottomOffset, 0,
2327                 XmNbottomPosition, 100,
2328                 XmNbottomAttachment, XmATTACH_POSITION,
2329                 XmNrightOffset, 0,
2330                 XmNrightPosition, 100,
2331                 XmNrightAttachment, XmATTACH_POSITION,
2332                 XmNleftOffset, 0,
2333                 XmNleftPosition, 0,
2334                 XmNleftAttachment, XmATTACH_POSITION,
2335                 XmNtopOffset, 0,
2336                 XmNtopPosition, 0,
2337                 XmNtopAttachment, XmATTACH_POSITION,
2338                 XmNresizePolicy, XmRESIZE_ANY,
2339                 XmNmarginHeight, 0,
2340                 XmNmarginWidth, 0,
2341                 NULL);
2342     }
2343     if (instance->advanced_pane == NULL)
2344         return -1;
2345
2346     return 0;
2347 }
2348
2349
2350
2351 static int 
2352 dtb_options_separator2_create(
2353     DtbOptionsDialogInfo instance,
2354     Widget parent
2355 )
2356 {
2357     
2358     if (instance->separator2 == NULL) {
2359         instance->separator2 =
2360             XtVaCreateWidget("dtb_options_separator2",
2361                 xmSeparatorWidgetClass,
2362                 parent,
2363                 XmNbottomAttachment, XmATTACH_NONE,
2364                 XmNrightOffset, 0,
2365                 XmNrightAttachment, XmATTACH_FORM,
2366                 XmNleftOffset, 0,
2367                 XmNleftAttachment, XmATTACH_FORM,
2368                 XmNtopOffset, 8,
2369                 XmNtopAttachment, XmATTACH_WIDGET,
2370                 XmNseparatorType, XmSHADOW_ETCHED_IN,
2371                 XmNorientation, XmHORIZONTAL,
2372                 NULL);
2373     }
2374     if (instance->separator2 == NULL)
2375         return -1;
2376
2377     return 0;
2378 }
2379
2380
2381
2382 static int 
2383 dtb_options_checkbox_create(
2384     DtbOptionsDialogInfo instance,
2385     Widget parent
2386 )
2387 {
2388     XmString    label_xmstring = NULL;
2389     Arg args[23];       /* need 18 args (add 5 to be safe) */
2390     int n = 0;
2391     Widget      checkbox_items[2];
2392     
2393     if (instance->checkbox == NULL) {
2394         n = 0;
2395         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
2396         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
2397         XtSetArg(args[n], XmNleftOffset, 76);  ++n;
2398         XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM);  ++n;
2399         XtSetArg(args[n], XmNtopOffset, 4);  ++n;
2400         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
2401         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
2402         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
2403         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
2404         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
2405         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
2406         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
2407         XtSetArg(args[n], XmNspacing, 0);  ++n;
2408         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
2409         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
2410         instance->checkbox =
2411             XmCreateRadioBox(parent,
2412                 "dtb_options_checkbox", args, n);
2413     }
2414     if (instance->checkbox == NULL)
2415         return -1;
2416
2417     if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL) {
2418         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 11, "Show To: recipient when mail is from me"));
2419         instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item =
2420             XtVaCreateManagedWidget("dtb_options_checkbox_show_to_recipient_when_mail_is_from_me_item",
2421                 xmToggleButtonWidgetClass,
2422                 instance->checkbox,
2423                 XmNset, False,
2424                 XmNlabelString, label_xmstring,
2425                 NULL);
2426         XmStringFree(label_xmstring);
2427         label_xmstring = NULL;
2428     }
2429     if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL)
2430         return -1;
2431
2432     if (instance->checkbox_items.Display_message_numbers_item == NULL) {
2433         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 12, "Display message numbers"));
2434         instance->checkbox_items.Display_message_numbers_item =
2435             XtVaCreateManagedWidget("dtb_options_checkbox_display_message_numbers_item",
2436                 xmToggleButtonWidgetClass,
2437                 instance->checkbox,
2438                 XmNset, False,
2439                 XmNlabelString, label_xmstring,
2440                 NULL);
2441         XmStringFree(label_xmstring);
2442         label_xmstring = NULL;
2443     }
2444     if (instance->checkbox_items.Display_message_numbers_item == NULL)
2445         return -1;
2446
2447     return 0;
2448 }
2449
2450
2451
2452 static int 
2453 dtb_options_separator4_create(
2454     DtbOptionsDialogInfo instance,
2455     Widget parent
2456 )
2457 {
2458     
2459     if (instance->separator4 == NULL) {
2460         instance->separator4 =
2461             XtVaCreateWidget("dtb_options_separator4",
2462                 xmSeparatorWidgetClass,
2463                 parent,
2464                 XmNbottomAttachment, XmATTACH_NONE,
2465                 XmNrightOffset, 0,
2466                 XmNrightAttachment, XmATTACH_FORM,
2467                 XmNleftOffset, 0,
2468                 XmNleftAttachment, XmATTACH_FORM,
2469                 XmNtopOffset, 8,
2470                 XmNtopAttachment, XmATTACH_WIDGET,
2471                 XmNseparatorType, XmSHADOW_ETCHED_IN,
2472                 XmNorientation, XmHORIZONTAL,
2473                 NULL);
2474     }
2475     if (instance->separator4 == NULL)
2476         return -1;
2477
2478     return 0;
2479 }
2480
2481
2482
2483 static int 
2484 dtb_options_group28_create(
2485     DtbOptionsDialogInfo instance,
2486     Widget parent
2487 )
2488 {
2489     
2490     if (instance->group28 == NULL) {
2491         instance->group28 =
2492             XtVaCreateWidget("dtb_options_group28",
2493                 xmFormWidgetClass,
2494                 parent,
2495                 XmNbottomOffset, 10,
2496                 XmNbottomAttachment, XmATTACH_FORM,
2497                 XmNrightAttachment, XmATTACH_NONE,
2498                 XmNleftOffset, 76,
2499                 XmNleftAttachment, XmATTACH_FORM,
2500                 XmNtopOffset, 8,
2501                 XmNtopAttachment, XmATTACH_WIDGET,
2502                 XmNresizePolicy, XmRESIZE_ANY,
2503                 XmNmarginHeight, 0,
2504                 XmNmarginWidth, 0,
2505                 NULL);
2506     }
2507     if (instance->group28 == NULL)
2508         return -1;
2509
2510     return 0;
2511 }
2512
2513
2514
2515 static int 
2516 dtb_options_group21_create(
2517     DtbOptionsDialogInfo instance,
2518     Widget parent
2519 )
2520 {
2521     
2522     if (instance->group21 == NULL) {
2523         instance->group21 =
2524             XtVaCreateWidget("dtb_options_group21",
2525                 xmFormWidgetClass,
2526                 parent,
2527                 XmNbottomAttachment, XmATTACH_NONE,
2528                 XmNrightAttachment, XmATTACH_NONE,
2529                 XmNleftOffset, 78,
2530                 XmNleftAttachment, XmATTACH_FORM,
2531                 XmNtopOffset, 10,
2532                 XmNtopAttachment, XmATTACH_FORM,
2533                 XmNresizePolicy, XmRESIZE_ANY,
2534                 XmNmarginHeight, 0,
2535                 XmNmarginWidth, 0,
2536                 NULL);
2537     }
2538     if (instance->group21 == NULL)
2539         return -1;
2540
2541     return 0;
2542 }
2543
2544
2545
2546 static int 
2547 dtb_options_destroy_del_msg_lbl_create(
2548     DtbOptionsDialogInfo instance,
2549     Widget parent
2550 )
2551 {
2552     XmString    label_xmstring = NULL;
2553     
2554     if (instance->destroy_del_msg_lbl == NULL) {
2555         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 20, "Destroy Deleted Messages:"));
2556         instance->destroy_del_msg_lbl =
2557             XtVaCreateWidget("dtb_options_destroy_del_msg_lbl",
2558                 xmLabelWidgetClass,
2559                 parent,
2560                 XmNbottomAttachment, XmATTACH_NONE,
2561                 XmNrightAttachment, XmATTACH_NONE,
2562                 XmNleftOffset, 0,
2563                 XmNleftAttachment, XmATTACH_FORM,
2564                 XmNtopOffset, 0,
2565                 XmNtopAttachment, XmATTACH_FORM,
2566                 XmNrecomputeSize, True,
2567                 XmNalignment, XmALIGNMENT_CENTER,
2568                 XmNlabelType, XmSTRING,
2569                 XmNlabelString, label_xmstring,
2570                 NULL);
2571         XmStringFree(label_xmstring);
2572         label_xmstring = NULL;
2573     }
2574     if (instance->destroy_del_msg_lbl == NULL)
2575         return -1;
2576
2577     return 0;
2578 }
2579
2580
2581
2582 static int 
2583 dtb_options_deleted_msg_cb_create(
2584     DtbOptionsDialogInfo instance,
2585     Widget parent
2586 )
2587 {
2588     XmString    label_xmstring = NULL;
2589     Arg args[23];       /* need 18 args (add 5 to be safe) */
2590     int n = 0;
2591     Widget      deleted_msg_cb_items[2];
2592     
2593     if (instance->deleted_msg_cb == NULL) {
2594         n = 0;
2595         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
2596         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
2597         XtSetArg(args[n], XmNleftOffset, 0);  ++n;
2598         XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM);  ++n;
2599         XtSetArg(args[n], XmNtopOffset, 2);  ++n;
2600         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
2601         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
2602         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
2603         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
2604         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
2605         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
2606         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
2607         XtSetArg(args[n], XmNspacing, 0);  ++n;
2608         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
2609         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
2610         instance->deleted_msg_cb =
2611             XmCreateRadioBox(parent,
2612                 "dtb_options_deleted_msg_cb", args, n);
2613     }
2614     if (instance->deleted_msg_cb == NULL)
2615         return -1;
2616
2617     if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL) {
2618         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 21, "When I close the mailbox"));
2619         instance->deleted_msg_cb_items.When_I_close_the_mailbox_item =
2620             XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_when_i_close_the_mailbox_item",
2621                 xmToggleButtonWidgetClass,
2622                 instance->deleted_msg_cb,
2623                 XmNset, True,
2624                 XmNlabelString, label_xmstring,
2625                 NULL);
2626         XmStringFree(label_xmstring);
2627         label_xmstring = NULL;
2628     }
2629     if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL)
2630         return -1;
2631
2632     if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL) {
2633         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 22, "Show confirmation notice"));
2634         instance->deleted_msg_cb_items.Show_confirmation_notice_item =
2635             XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_show_confirmation_notice_item",
2636                 xmToggleButtonWidgetClass,
2637                 instance->deleted_msg_cb,
2638                 XmNset, True,
2639                 XmNlabelString, label_xmstring,
2640                 NULL);
2641         XmStringFree(label_xmstring);
2642         label_xmstring = NULL;
2643     }
2644     if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL)
2645         return -1;
2646
2647     return 0;
2648 }
2649
2650
2651
2652 static int 
2653 dtb_options_group_create(
2654     DtbOptionsDialogInfo instance,
2655     Widget parent
2656 )
2657 {
2658     
2659     if (instance->group == NULL) {
2660         instance->group =
2661             XtVaCreateWidget("dtb_options_group",
2662                 xmFormWidgetClass,
2663                 parent,
2664                 XmNresizePolicy, XmRESIZE_ANY,
2665                 XmNmarginHeight, 0,
2666                 XmNmarginWidth, 0,
2667                 NULL);
2668     }
2669     if (instance->group == NULL)
2670         return -1;
2671
2672     return 0;
2673 }
2674
2675
2676
2677 static int 
2678 dtb_options_group18_create(
2679     DtbOptionsDialogInfo instance,
2680     Widget parent
2681 )
2682 {
2683     
2684     if (instance->group18 == NULL) {
2685         instance->group18 =
2686             XtVaCreateWidget("dtb_options_group18",
2687                 xmFormWidgetClass,
2688                 parent,
2689                 XmNresizePolicy, XmRESIZE_ANY,
2690                 XmNmarginHeight, 0,
2691                 XmNmarginWidth, 0,
2692                 NULL);
2693     }
2694     if (instance->group18 == NULL)
2695         return -1;
2696
2697     return 0;
2698 }
2699
2700
2701
2702 static int 
2703 dtb_options_group19_create(
2704     DtbOptionsDialogInfo instance,
2705     Widget parent
2706 )
2707 {
2708     
2709     if (instance->group19 == NULL) {
2710         instance->group19 =
2711             XtVaCreateWidget("dtb_options_group19",
2712                 xmFormWidgetClass,
2713                 parent,
2714                 XmNresizePolicy, XmRESIZE_ANY,
2715                 XmNmarginHeight, 0,
2716                 XmNmarginWidth, 0,
2717                 NULL);
2718     }
2719     if (instance->group19 == NULL)
2720         return -1;
2721
2722     return 0;
2723 }
2724
2725
2726
2727 static int 
2728 dtb_options_group20_create(
2729     DtbOptionsDialogInfo instance,
2730     Widget parent
2731 )
2732 {
2733     
2734     if (instance->group20 == NULL) {
2735         instance->group20 =
2736             XtVaCreateWidget("dtb_options_group20",
2737                 xmFormWidgetClass,
2738                 parent,
2739                 XmNresizePolicy, XmRESIZE_ANY,
2740                 XmNmarginHeight, 0,
2741                 XmNmarginWidth, 0,
2742                 NULL);
2743     }
2744     if (instance->group20 == NULL)
2745         return -1;
2746
2747     return 0;
2748 }
2749
2750
2751
2752 static int 
2753 dtb_options_mail_check_sb_create(
2754     DtbOptionsDialogInfo instance,
2755     Widget parent
2756 )
2757 {
2758     XmString    label_xmstring = NULL;
2759     Arg args[18];       /* need 13 args (add 5 to be safe) */
2760     int n = 0;
2761     
2762     
2763     if (instance->mail_check_sb_rowcolumn == NULL) {
2764         instance->mail_check_sb_rowcolumn =
2765             XtVaCreateWidget("dtb_options_mail_check_sb",
2766                 xmRowColumnWidgetClass,
2767                 parent,
2768                 XmNbottomAttachment, XmATTACH_NONE,
2769                 XmNrightAttachment, XmATTACH_NONE,
2770                 XmNleftOffset, 0,
2771                 XmNleftAttachment, XmATTACH_FORM,
2772                 XmNtopOffset, 0,
2773                 XmNtopAttachment, XmATTACH_FORM,
2774                 XmNadjustLast, True,
2775                 XmNmarginWidth, 0,
2776                 XmNmarginHeight, 0,
2777                 XmNentryAlignment, XmALIGNMENT_END,
2778                 XmNorientation, XmHORIZONTAL,
2779                 NULL);
2780     }
2781     if (instance->mail_check_sb_rowcolumn == NULL)
2782         return -1;
2783
2784     if (instance->mail_check_sb_label == NULL) {
2785         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 13, "Check for new mail every:"));
2786         instance->mail_check_sb_label =
2787             XtVaCreateWidget("dtb_options_mail_check_sb_label",
2788                 xmLabelWidgetClass,
2789                 instance->mail_check_sb_rowcolumn,
2790                 XmNlabelType, XmSTRING,
2791                 XmNlabelString, label_xmstring,
2792                 NULL);
2793         XmStringFree(label_xmstring);
2794         label_xmstring = NULL;
2795     }
2796     if (instance->mail_check_sb_label == NULL)
2797         return -1;
2798
2799     if (instance->mail_check_sb == NULL) {
2800         n = 0;
2801         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
2802         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
2803         XtSetArg(args[n], XmNposition, 500);  ++n;
2804         XtSetArg(args[n], XmNmaximumValue, 999999);  ++n;
2805         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
2806         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
2807         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
2808         XtSetArg(args[n], XmNcolumns, 6);  ++n;
2809         instance->mail_check_sb =
2810             XmCreateSimpleSpinBox(instance->mail_check_sb_rowcolumn,
2811                 "dtb_options_mail_check_sb_field", args, n);
2812     }
2813     if (instance->mail_check_sb == NULL)
2814         return -1;
2815
2816     return 0;
2817 }
2818
2819
2820
2821 static int 
2822 dtb_options_seconds_lbl_create(
2823     DtbOptionsDialogInfo instance,
2824     Widget parent
2825 )
2826 {
2827     XmString    label_xmstring = NULL;
2828     
2829     if (instance->seconds_lbl == NULL) {
2830         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 14, "Seconds"));
2831         instance->seconds_lbl =
2832             XtVaCreateWidget("dtb_options_seconds_lbl",
2833                 xmLabelWidgetClass,
2834                 parent,
2835                 XmNbottomOffset, 0,
2836                 XmNbottomAttachment, XmATTACH_FORM,
2837                 XmNrightAttachment, XmATTACH_NONE,
2838                 XmNleftOffset, 2,
2839                 XmNleftAttachment, XmATTACH_WIDGET,
2840                 XmNtopOffset, 0,
2841                 XmNtopAttachment, XmATTACH_FORM,
2842                 XmNrecomputeSize, True,
2843                 XmNalignment, XmALIGNMENT_CENTER,
2844                 XmNlabelType, XmSTRING,
2845                 XmNlabelString, label_xmstring,
2846                 NULL);
2847         XmStringFree(label_xmstring);
2848         label_xmstring = NULL;
2849     }
2850     if (instance->seconds_lbl == NULL)
2851         return -1;
2852
2853     return 0;
2854 }
2855
2856
2857
2858 static int 
2859 dtb_options_signal_sb_create(
2860     DtbOptionsDialogInfo instance,
2861     Widget parent
2862 )
2863 {
2864     XmString    label_xmstring = NULL;
2865     Arg args[18];       /* need 13 args (add 5 to be safe) */
2866     int n = 0;
2867     
2868     
2869     if (instance->signal_sb_rowcolumn == NULL) {
2870         instance->signal_sb_rowcolumn =
2871             XtVaCreateWidget("dtb_options_signal_sb",
2872                 xmRowColumnWidgetClass,
2873                 parent,
2874                 XmNbottomAttachment, XmATTACH_NONE,
2875                 XmNrightAttachment, XmATTACH_NONE,
2876                 XmNleftOffset, 0,
2877                 XmNleftAttachment, XmATTACH_FORM,
2878                 XmNtopOffset, 0,
2879                 XmNtopAttachment, XmATTACH_FORM,
2880                 XmNadjustLast, True,
2881                 XmNmarginWidth, 0,
2882                 XmNmarginHeight, 0,
2883                 XmNentryAlignment, XmALIGNMENT_END,
2884                 XmNorientation, XmHORIZONTAL,
2885                 NULL);
2886     }
2887     if (instance->signal_sb_rowcolumn == NULL)
2888         return -1;
2889
2890     if (instance->signal_sb_label == NULL) {
2891         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 15, "Signal new mail with:"));
2892         instance->signal_sb_label =
2893             XtVaCreateWidget("dtb_options_signal_sb_label",
2894                 xmLabelWidgetClass,
2895                 instance->signal_sb_rowcolumn,
2896                 XmNlabelType, XmSTRING,
2897                 XmNlabelString, label_xmstring,
2898                 NULL);
2899         XmStringFree(label_xmstring);
2900         label_xmstring = NULL;
2901     }
2902     if (instance->signal_sb_label == NULL)
2903         return -1;
2904
2905     if (instance->signal_sb == NULL) {
2906         n = 0;
2907         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
2908         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
2909         XtSetArg(args[n], XmNposition, 0);  ++n;
2910         XtSetArg(args[n], XmNmaximumValue, 100);  ++n;
2911         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
2912         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
2913         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
2914         XtSetArg(args[n], XmNcolumns, 6);  ++n;
2915         instance->signal_sb =
2916             XmCreateSimpleSpinBox(instance->signal_sb_rowcolumn,
2917                 "dtb_options_signal_sb_field", args, n);
2918     }
2919     if (instance->signal_sb == NULL)
2920         return -1;
2921
2922     return 0;
2923 }
2924
2925
2926
2927 static int 
2928 dtb_options_beeps_lbl_create(
2929     DtbOptionsDialogInfo instance,
2930     Widget parent
2931 )
2932 {
2933     XmString    label_xmstring = NULL;
2934     
2935     if (instance->beeps_lbl == NULL) {
2936         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 16, "Beep(s)"));
2937         instance->beeps_lbl =
2938             XtVaCreateWidget("dtb_options_beeps_lbl",
2939                 xmLabelWidgetClass,
2940                 parent,
2941                 XmNbottomOffset, 0,
2942                 XmNbottomAttachment, XmATTACH_FORM,
2943                 XmNrightAttachment, XmATTACH_NONE,
2944                 XmNleftOffset, 2,
2945                 XmNleftAttachment, XmATTACH_WIDGET,
2946                 XmNtopOffset, 0,
2947                 XmNtopAttachment, XmATTACH_FORM,
2948                 XmNrecomputeSize, True,
2949                 XmNalignment, XmALIGNMENT_CENTER,
2950                 XmNlabelType, XmSTRING,
2951                 XmNlabelString, label_xmstring,
2952                 NULL);
2953         XmStringFree(label_xmstring);
2954         label_xmstring = NULL;
2955     }
2956     if (instance->beeps_lbl == NULL)
2957         return -1;
2958
2959     return 0;
2960 }
2961
2962
2963
2964 static int 
2965 dtb_options_spinbox2_create(
2966     DtbOptionsDialogInfo instance,
2967     Widget parent
2968 )
2969 {
2970     XmString    label_xmstring = NULL;
2971     Arg args[18];       /* need 13 args (add 5 to be safe) */
2972     int n = 0;
2973     
2974     
2975     if (instance->spinbox2_rowcolumn == NULL) {
2976         instance->spinbox2_rowcolumn =
2977             XtVaCreateWidget("dtb_options_spinbox2",
2978                 xmRowColumnWidgetClass,
2979                 parent,
2980                 XmNbottomAttachment, XmATTACH_NONE,
2981                 XmNrightAttachment, XmATTACH_NONE,
2982                 XmNleftOffset, 0,
2983                 XmNleftAttachment, XmATTACH_FORM,
2984                 XmNtopOffset, 0,
2985                 XmNtopAttachment, XmATTACH_FORM,
2986                 XmNadjustLast, True,
2987                 XmNmarginWidth, 0,
2988                 XmNmarginHeight, 0,
2989                 XmNentryAlignment, XmALIGNMENT_END,
2990                 XmNorientation, XmHORIZONTAL,
2991                 NULL);
2992     }
2993     if (instance->spinbox2_rowcolumn == NULL)
2994         return -1;
2995
2996     if (instance->spinbox2_label == NULL) {
2997         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
2998         instance->spinbox2_label =
2999             XtVaCreateWidget("dtb_options_spinbox2_label",
3000                 xmLabelWidgetClass,
3001                 instance->spinbox2_rowcolumn,
3002                 XmNlabelType, XmSTRING,
3003                 XmNlabelString, label_xmstring,
3004                 NULL);
3005         XmStringFree(label_xmstring);
3006         label_xmstring = NULL;
3007     }
3008     if (instance->spinbox2_label == NULL)
3009         return -1;
3010
3011     if (instance->spinbox2 == NULL) {
3012         n = 0;
3013         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
3014         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
3015         XtSetArg(args[n], XmNposition, 0);  ++n;
3016         XtSetArg(args[n], XmNmaximumValue, 100);  ++n;
3017         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
3018         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
3019         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
3020         XtSetArg(args[n], XmNcolumns, 6);  ++n;
3021         instance->spinbox2 =
3022             XmCreateSimpleSpinBox(instance->spinbox2_rowcolumn,
3023                 "dtb_options_spinbox2_field", args, n);
3024     }
3025     if (instance->spinbox2 == NULL)
3026         return -1;
3027
3028     return 0;
3029 }
3030
3031
3032
3033 static int 
3034 dtb_options_flashes_lbl_create(
3035     DtbOptionsDialogInfo instance,
3036     Widget parent
3037 )
3038 {
3039     XmString    label_xmstring = NULL;
3040     
3041     if (instance->flashes_lbl == NULL) {
3042         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 17, "Flash(es)"));
3043         instance->flashes_lbl =
3044             XtVaCreateWidget("dtb_options_flashes_lbl",
3045                 xmLabelWidgetClass,
3046                 parent,
3047                 XmNbottomOffset, 0,
3048                 XmNbottomAttachment, XmATTACH_FORM,
3049                 XmNrightAttachment, XmATTACH_NONE,
3050                 XmNleftOffset, 2,
3051                 XmNleftAttachment, XmATTACH_WIDGET,
3052                 XmNtopOffset, 0,
3053                 XmNtopAttachment, XmATTACH_FORM,
3054                 XmNrecomputeSize, True,
3055                 XmNalignment, XmALIGNMENT_CENTER,
3056                 XmNlabelType, XmSTRING,
3057                 XmNlabelString, label_xmstring,
3058                 NULL);
3059         XmStringFree(label_xmstring);
3060         label_xmstring = NULL;
3061     }
3062     if (instance->flashes_lbl == NULL)
3063         return -1;
3064
3065     return 0;
3066 }
3067
3068
3069
3070 static int 
3071 dtb_options_display_sb_create(
3072     DtbOptionsDialogInfo instance,
3073     Widget parent
3074 )
3075 {
3076     XmString    label_xmstring = NULL;
3077     Arg args[18];       /* need 13 args (add 5 to be safe) */
3078     int n = 0;
3079     
3080     
3081     if (instance->display_sb_rowcolumn == NULL) {
3082         instance->display_sb_rowcolumn =
3083             XtVaCreateWidget("dtb_options_display_sb",
3084                 xmRowColumnWidgetClass,
3085                 parent,
3086                 XmNbottomAttachment, XmATTACH_NONE,
3087                 XmNrightAttachment, XmATTACH_NONE,
3088                 XmNleftOffset, 0,
3089                 XmNleftAttachment, XmATTACH_FORM,
3090                 XmNtopOffset, 0,
3091                 XmNtopAttachment, XmATTACH_FORM,
3092                 XmNadjustLast, True,
3093                 XmNmarginWidth, 0,
3094                 XmNmarginHeight, 0,
3095                 XmNentryAlignment, XmALIGNMENT_END,
3096                 XmNorientation, XmHORIZONTAL,
3097                 NULL);
3098     }
3099     if (instance->display_sb_rowcolumn == NULL)
3100         return -1;
3101
3102     if (instance->display_sb_label == NULL) {
3103         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
3104         instance->display_sb_label =
3105             XtVaCreateWidget("dtb_options_display_sb_label",
3106                 xmLabelWidgetClass,
3107                 instance->display_sb_rowcolumn,
3108                 XmNlabelType, XmSTRING,
3109                 XmNlabelString, label_xmstring,
3110                 NULL);
3111         XmStringFree(label_xmstring);
3112         label_xmstring = NULL;
3113     }
3114     if (instance->display_sb_label == NULL)
3115         return -1;
3116
3117     if (instance->display_sb == NULL) {
3118         n = 0;
3119         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
3120         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
3121         XtSetArg(args[n], XmNposition, 15);  ++n;
3122         XtSetArg(args[n], XmNmaximumValue, 100);  ++n;
3123         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
3124         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
3125         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
3126         XtSetArg(args[n], XmNcolumns, 6);  ++n;
3127         instance->display_sb =
3128             XmCreateSimpleSpinBox(instance->display_sb_rowcolumn,
3129                 "dtb_options_display_sb_field", args, n);
3130     }
3131     if (instance->display_sb == NULL)
3132         return -1;
3133
3134     return 0;
3135 }
3136
3137
3138
3139 static int 
3140 dtb_options_headers_lbl_create(
3141     DtbOptionsDialogInfo instance,
3142     Widget parent
3143 )
3144 {
3145     XmString    label_xmstring = NULL;
3146     
3147     if (instance->headers_lbl == NULL) {
3148         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 19, "Headers"));
3149         instance->headers_lbl =
3150             XtVaCreateWidget("dtb_options_headers_lbl",
3151                 xmLabelWidgetClass,
3152                 parent,
3153                 XmNbottomOffset, 0,
3154                 XmNbottomAttachment, XmATTACH_FORM,
3155                 XmNrightAttachment, XmATTACH_NONE,
3156                 XmNleftOffset, 2,
3157                 XmNleftAttachment, XmATTACH_WIDGET,
3158                 XmNtopOffset, 0,
3159                 XmNtopAttachment, XmATTACH_FORM,
3160                 XmNrecomputeSize, True,
3161                 XmNalignment, XmALIGNMENT_CENTER,
3162                 XmNlabelType, XmSTRING,
3163                 XmNlabelString, label_xmstring,
3164                 NULL);
3165         XmStringFree(label_xmstring);
3166         label_xmstring = NULL;
3167     }
3168     if (instance->headers_lbl == NULL)
3169         return -1;
3170
3171     return 0;
3172 }
3173
3174
3175
3176 static int 
3177 dtb_options_separator6_create(
3178     DtbOptionsDialogInfo instance,
3179     Widget parent
3180 )
3181 {
3182     
3183     if (instance->separator6 == NULL) {
3184         instance->separator6 =
3185             XtVaCreateWidget("dtb_options_separator6",
3186                 xmSeparatorWidgetClass,
3187                 parent,
3188                 XmNbottomAttachment, XmATTACH_NONE,
3189                 XmNrightOffset, 0,
3190                 XmNrightPosition, 100,
3191                 XmNrightAttachment, XmATTACH_POSITION,
3192                 XmNleftOffset, 0,
3193                 XmNleftPosition, 0,
3194                 XmNleftAttachment, XmATTACH_POSITION,
3195                 XmNtopOffset, 8,
3196                 XmNtopAttachment, XmATTACH_WIDGET,
3197                 XmNseparatorType, XmSHADOW_ETCHED_IN,
3198                 XmNorientation, XmHORIZONTAL,
3199                 NULL);
3200     }
3201     if (instance->separator6 == NULL)
3202         return -1;
3203
3204     return 0;
3205 }
3206
3207
3208
3209 static int 
3210 dtb_options_abr_header_lbl_create(
3211     DtbOptionsDialogInfo instance,
3212     Widget parent
3213 )
3214 {
3215     XmString    label_xmstring = NULL;
3216     
3217     if (instance->abr_header_lbl == NULL) {
3218         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 23, "Abbreviated header will not include:"));
3219         instance->abr_header_lbl =
3220             XtVaCreateWidget("dtb_options_abr_header_lbl",
3221                 xmLabelWidgetClass,
3222                 parent,
3223                 XmNbottomAttachment, XmATTACH_NONE,
3224                 XmNrightAttachment, XmATTACH_NONE,
3225                 XmNleftOffset, 24,
3226                 XmNleftAttachment, XmATTACH_FORM,
3227                 XmNtopOffset, 8,
3228                 XmNtopAttachment, XmATTACH_WIDGET,
3229                 XmNrecomputeSize, True,
3230                 XmNalignment, XmALIGNMENT_CENTER,
3231                 XmNlabelType, XmSTRING,
3232                 XmNlabelString, label_xmstring,
3233                 NULL);
3234         XmStringFree(label_xmstring);
3235         label_xmstring = NULL;
3236     }
3237     if (instance->abr_header_lbl == NULL)
3238         return -1;
3239
3240     return 0;
3241 }
3242
3243
3244
3245 static int 
3246 dtb_options_group8_create(
3247     DtbOptionsDialogInfo instance,
3248     Widget parent
3249 )
3250 {
3251     
3252     if (instance->group8 == NULL) {
3253         instance->group8 =
3254             XtVaCreateWidget("dtb_options_group8",
3255                 xmFormWidgetClass,
3256                 parent,
3257                 XmNbottomAttachment, XmATTACH_NONE,
3258                 XmNrightAttachment, XmATTACH_NONE,
3259                 XmNleftOffset, 133,
3260                 XmNleftAttachment, XmATTACH_FORM,
3261                 XmNtopOffset, 10,
3262                 XmNtopAttachment, XmATTACH_FORM,
3263                 XmNresizePolicy, XmRESIZE_ANY,
3264                 XmNmarginHeight, 0,
3265                 XmNmarginWidth, 0,
3266                 NULL);
3267     }
3268     if (instance->group8 == NULL)
3269         return -1;
3270
3271     return 0;
3272 }
3273
3274
3275
3276 static int 
3277 dtb_options_group17_create(
3278     DtbOptionsDialogInfo instance,
3279     Widget parent
3280 )
3281 {
3282     
3283     if (instance->group17 == NULL) {
3284         instance->group17 =
3285             XtVaCreateWidget("dtb_options_group17",
3286                 xmFormWidgetClass,
3287                 parent,
3288                 XmNbottomOffset, 10,
3289                 XmNbottomAttachment, XmATTACH_FORM,
3290                 XmNrightAttachment, XmATTACH_NONE,
3291                 XmNleftOffset, 35,
3292                 XmNleftAttachment, XmATTACH_FORM,
3293                 XmNtopOffset, 10,
3294                 XmNtopAttachment, XmATTACH_WIDGET,
3295                 XmNresizePolicy, XmRESIZE_ANY,
3296                 XmNmarginHeight, 0,
3297                 XmNmarginWidth, 0,
3298                 NULL);
3299     }
3300     if (instance->group17 == NULL)
3301         return -1;
3302
3303     return 0;
3304 }
3305
3306
3307
3308 static int 
3309 dtb_options_group2_create(
3310     DtbOptionsDialogInfo instance,
3311     Widget parent
3312 )
3313 {
3314     
3315     if (instance->group2 == NULL) {
3316         instance->group2 =
3317             XtVaCreateWidget("dtb_options_group2",
3318                 xmFormWidgetClass,
3319                 parent,
3320                 XmNresizePolicy, XmRESIZE_ANY,
3321                 XmNmarginHeight, 0,
3322                 XmNmarginWidth, 0,
3323                 NULL);
3324     }
3325     if (instance->group2 == NULL)
3326         return -1;
3327
3328     return 0;
3329 }
3330
3331
3332
3333 static int 
3334 dtb_options_group22_create(
3335     DtbOptionsDialogInfo instance,
3336     Widget parent
3337 )
3338 {
3339     
3340     if (instance->group22 == NULL) {
3341         instance->group22 =
3342             XtVaCreateWidget("dtb_options_group22",
3343                 xmFormWidgetClass,
3344                 parent,
3345                 XmNresizePolicy, XmRESIZE_ANY,
3346                 XmNmarginHeight, 0,
3347                 XmNmarginWidth, 0,
3348                 NULL);
3349     }
3350     if (instance->group22 == NULL)
3351         return -1;
3352
3353     return 0;
3354 }
3355
3356
3357
3358 static int 
3359 dtb_options_fixed_font_cb_create(
3360     DtbOptionsDialogInfo instance,
3361     Widget parent
3362 )
3363 {
3364     Arg args[14];       /* need 9 args (add 5 to be safe) */
3365     int n = 0;
3366     
3367     if (instance->fixed_font_cb == NULL) {
3368         n = 0;
3369         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
3370         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
3371         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
3372         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
3373         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
3374         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
3375         XtSetArg(args[n], XmNspacing, 0);  ++n;
3376         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
3377         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
3378         instance->fixed_font_cb =
3379             XmCreateRadioBox(parent,
3380                 "dtb_options_fixed_font_cb", args, n);
3381     }
3382     if (instance->fixed_font_cb == NULL)
3383         return -1;
3384
3385     return 0;
3386 }
3387
3388
3389
3390 static int 
3391 dtb_options_display_row_sb_create(
3392     DtbOptionsDialogInfo instance,
3393     Widget parent
3394 )
3395 {
3396     XmString    label_xmstring = NULL;
3397     Arg args[18];       /* need 13 args (add 5 to be safe) */
3398     int n = 0;
3399     
3400     
3401     if (instance->display_row_sb_rowcolumn == NULL) {
3402         instance->display_row_sb_rowcolumn =
3403             XtVaCreateWidget("dtb_options_display_row_sb",
3404                 xmRowColumnWidgetClass,
3405                 parent,
3406                 XmNbottomAttachment, XmATTACH_NONE,
3407                 XmNrightAttachment, XmATTACH_NONE,
3408                 XmNleftOffset, 0,
3409                 XmNleftAttachment, XmATTACH_FORM,
3410                 XmNtopOffset, 0,
3411                 XmNtopAttachment, XmATTACH_FORM,
3412                 XmNadjustLast, True,
3413                 XmNmarginWidth, 0,
3414                 XmNmarginHeight, 0,
3415                 XmNentryAlignment, XmALIGNMENT_END,
3416                 XmNorientation, XmHORIZONTAL,
3417                 NULL);
3418     }
3419     if (instance->display_row_sb_rowcolumn == NULL)
3420         return -1;
3421
3422     if (instance->display_row_sb_label == NULL) {
3423         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
3424         instance->display_row_sb_label =
3425             XtVaCreateWidget("dtb_options_display_row_sb_label",
3426                 xmLabelWidgetClass,
3427                 instance->display_row_sb_rowcolumn,
3428                 XmNlabelType, XmSTRING,
3429                 XmNlabelString, label_xmstring,
3430                 NULL);
3431         XmStringFree(label_xmstring);
3432         label_xmstring = NULL;
3433     }
3434     if (instance->display_row_sb_label == NULL)
3435         return -1;
3436
3437     if (instance->display_row_sb == NULL) {
3438         n = 0;
3439         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
3440         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
3441         XtSetArg(args[n], XmNposition, 24);  ++n;
3442         XtSetArg(args[n], XmNmaximumValue, 360);  ++n;
3443         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
3444         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
3445         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
3446         XtSetArg(args[n], XmNcolumns, 6);  ++n;
3447         instance->display_row_sb =
3448             XmCreateSimpleSpinBox(instance->display_row_sb_rowcolumn,
3449                 "dtb_options_display_row_sb_field", args, n);
3450     }
3451     if (instance->display_row_sb == NULL)
3452         return -1;
3453
3454     return 0;
3455 }
3456
3457
3458
3459 static int 
3460 dtb_options_rows_lbl_create(
3461     DtbOptionsDialogInfo instance,
3462     Widget parent
3463 )
3464 {
3465     XmString    label_xmstring = NULL;
3466     
3467     if (instance->rows_lbl == NULL) {
3468         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 33, "Rows"));
3469         instance->rows_lbl =
3470             XtVaCreateWidget("dtb_options_rows_lbl",
3471                 xmLabelWidgetClass,
3472                 parent,
3473                 XmNbottomOffset, 0,
3474                 XmNbottomAttachment, XmATTACH_FORM,
3475                 XmNrightAttachment, XmATTACH_NONE,
3476                 XmNleftOffset, 0,
3477                 XmNleftAttachment, XmATTACH_WIDGET,
3478                 XmNtopOffset, 0,
3479                 XmNtopAttachment, XmATTACH_FORM,
3480                 XmNrecomputeSize, True,
3481                 XmNalignment, XmALIGNMENT_CENTER,
3482                 XmNlabelType, XmSTRING,
3483                 XmNlabelString, label_xmstring,
3484                 NULL);
3485         XmStringFree(label_xmstring);
3486         label_xmstring = NULL;
3487     }
3488     if (instance->rows_lbl == NULL)
3489         return -1;
3490
3491     return 0;
3492 }
3493
3494
3495
3496 static int 
3497 dtb_options_characters_wide_sb_create(
3498     DtbOptionsDialogInfo instance,
3499     Widget parent
3500 )
3501 {
3502     XmString    label_xmstring = NULL;
3503     Arg args[18];       /* need 13 args (add 5 to be safe) */
3504     int n = 0;
3505     
3506     
3507     if (instance->characters_wide_sb_rowcolumn == NULL) {
3508         instance->characters_wide_sb_rowcolumn =
3509             XtVaCreateWidget("dtb_options_characters_wide_sb",
3510                 xmRowColumnWidgetClass,
3511                 parent,
3512                 XmNbottomAttachment, XmATTACH_NONE,
3513                 XmNrightAttachment, XmATTACH_NONE,
3514                 XmNleftOffset, 0,
3515                 XmNleftAttachment, XmATTACH_FORM,
3516                 XmNtopOffset, 0,
3517                 XmNtopAttachment, XmATTACH_FORM,
3518                 XmNadjustLast, True,
3519                 XmNmarginWidth, 0,
3520                 XmNmarginHeight, 0,
3521                 XmNentryAlignment, XmALIGNMENT_END,
3522                 XmNorientation, XmHORIZONTAL,
3523                 NULL);
3524     }
3525     if (instance->characters_wide_sb_rowcolumn == NULL)
3526         return -1;
3527
3528     if (instance->characters_wide_sb_label == NULL) {
3529         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
3530         instance->characters_wide_sb_label =
3531             XtVaCreateWidget("dtb_options_characters_wide_sb_label",
3532                 xmLabelWidgetClass,
3533                 instance->characters_wide_sb_rowcolumn,
3534                 XmNlabelType, XmSTRING,
3535                 XmNlabelString, label_xmstring,
3536                 NULL);
3537         XmStringFree(label_xmstring);
3538         label_xmstring = NULL;
3539     }
3540     if (instance->characters_wide_sb_label == NULL)
3541         return -1;
3542
3543     if (instance->characters_wide_sb == NULL) {
3544         n = 0;
3545         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
3546         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
3547         XtSetArg(args[n], XmNposition, 80);  ++n;
3548         XtSetArg(args[n], XmNmaximumValue, 132);  ++n;
3549         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
3550         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
3551         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
3552         XtSetArg(args[n], XmNcolumns, 6);  ++n;
3553         instance->characters_wide_sb =
3554             XmCreateSimpleSpinBox(instance->characters_wide_sb_rowcolumn,
3555                 "dtb_options_characters_wide_sb_field", args, n);
3556     }
3557     if (instance->characters_wide_sb == NULL)
3558         return -1;
3559
3560     return 0;
3561 }
3562
3563
3564
3565 static int 
3566 dtb_options_char_wide_lbl_create(
3567     DtbOptionsDialogInfo instance,
3568     Widget parent
3569 )
3570 {
3571     XmString    label_xmstring = NULL;
3572     
3573     if (instance->char_wide_lbl == NULL) {
3574         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 34, "Characters Wide"));
3575         instance->char_wide_lbl =
3576             XtVaCreateWidget("dtb_options_char_wide_lbl",
3577                 xmLabelWidgetClass,
3578                 parent,
3579                 XmNbottomOffset, 0,
3580                 XmNbottomAttachment, XmATTACH_FORM,
3581                 XmNrightAttachment, XmATTACH_NONE,
3582                 XmNleftOffset, 0,
3583                 XmNleftAttachment, XmATTACH_WIDGET,
3584                 XmNtopOffset, 0,
3585                 XmNtopAttachment, XmATTACH_FORM,
3586                 XmNrecomputeSize, True,
3587                 XmNalignment, XmALIGNMENT_CENTER,
3588                 XmNlabelType, XmSTRING,
3589                 XmNlabelString, label_xmstring,
3590                 NULL);
3591         XmStringFree(label_xmstring);
3592         label_xmstring = NULL;
3593     }
3594     if (instance->char_wide_lbl == NULL)
3595         return -1;
3596
3597     return 0;
3598 }
3599
3600
3601
3602 static int 
3603 dtb_options_group3_create(
3604     DtbOptionsDialogInfo instance,
3605     Widget parent
3606 )
3607 {
3608     
3609     if (instance->group3 == NULL) {
3610         instance->group3 =
3611             XtVaCreateWidget("dtb_options_group3",
3612                 xmFormWidgetClass,
3613                 parent,
3614                 XmNbottomAttachment, XmATTACH_NONE,
3615                 XmNrightAttachment, XmATTACH_NONE,
3616                 XmNleftOffset, 10,
3617                 XmNleftAttachment, XmATTACH_WIDGET,
3618                 XmNtopOffset, 0,
3619                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
3620                 XmNresizePolicy, XmRESIZE_ANY,
3621                 XmNmarginHeight, 0,
3622                 XmNmarginWidth, 0,
3623                 NULL);
3624     }
3625     if (instance->group3 == NULL)
3626         return -1;
3627
3628     return 0;
3629 }
3630
3631
3632
3633 static int 
3634 dtb_options_fields_hide_create(
3635     DtbOptionsDialogInfo instance,
3636     Widget parent
3637 )
3638 {
3639     Arg args[18];       /* need 13 args (add 5 to be safe) */
3640     int n = 0;
3641     
3642     if (instance->fields_hide == NULL) {
3643         n = 0;
3644         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
3645         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
3646         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
3647         XtSetArg(args[n], XmNleftPosition, 34);  ++n;
3648         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
3649         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
3650         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
3651         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
3652         XtSetArg(args[n], XmNeditable, True);  ++n;
3653         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
3654         instance->fields_hide =
3655             XmCreateTextField(parent,
3656                 "dtb_options_fields_hide", args, n);
3657     }
3658     if (instance->fields_hide == NULL)
3659         return -1;
3660
3661     return 0;
3662 }
3663
3664
3665
3666 static int 
3667 dtb_options_hidden_fields_list_create(
3668     DtbOptionsDialogInfo instance,
3669     Widget parent
3670 )
3671 {
3672     XmString    label_xmstring = NULL;
3673     Arg args[21];       /* need 16 args (add 5 to be safe) */
3674     int n = 0;
3675     int i = 0;
3676     XmString hidden_fields_list_list_xmstrings[3];
3677     
3678     
3679     /*
3680      * Convert char* strings to XmStrings
3681      */
3682     hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 25, "x-lines"));
3683     hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 26, "email-version"));
3684     hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 27, "expires"));
3685     if (instance->hidden_fields_list == NULL) {
3686         n = 0;
3687         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
3688         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
3689         XtSetArg(args[n], XmNselectionPolicy, XmSINGLE_SELECT);  ++n;
3690         XtSetArg(args[n], XmNvisibleItemCount, 7);  ++n;
3691         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
3692         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
3693         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
3694         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
3695         XtSetArg(args[n], XmNleftPosition, 34);  ++n;
3696         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
3697         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
3698         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
3699         XtSetArg(args[n], XmNitems, (XtArgVal)hidden_fields_list_list_xmstrings); n++;
3700         XtSetArg(args[n], XmNitemCount, (XtArgVal)3); n++;
3701         instance->hidden_fields_list =
3702             XmCreateScrolledList(parent,
3703                 "dtb_options_hidden_fields_list_list", args, n);
3704     }
3705     instance->hidden_fields_list_scrolledwin = XtParent(instance->hidden_fields_list);
3706     if (instance->hidden_fields_list == NULL)
3707         return -1;
3708
3709     return 0;
3710 }
3711
3712
3713
3714 static int 
3715 dtb_options_hidden_fields_lbl_create(
3716     DtbOptionsDialogInfo instance,
3717     Widget parent
3718 )
3719 {
3720     XmString    label_xmstring = NULL;
3721     
3722     if (instance->hidden_fields_lbl == NULL) {
3723         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 28, "Hidden Fields:"));
3724         instance->hidden_fields_lbl =
3725             XtVaCreateWidget("dtb_options_hidden_fields_lbl",
3726                 xmLabelWidgetClass,
3727                 parent,
3728                 XmNbottomAttachment, XmATTACH_NONE,
3729                 XmNrightOffset, 0,
3730                 XmNrightPosition, 34,
3731                 XmNrightAttachment, XmATTACH_POSITION,
3732                 XmNleftAttachment, XmATTACH_NONE,
3733                 XmNtopOffset, 0,
3734                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
3735                 XmNrecomputeSize, True,
3736                 XmNalignment, XmALIGNMENT_END,
3737                 XmNlabelType, XmSTRING,
3738                 XmNlabelString, label_xmstring,
3739                 NULL);
3740         XmStringFree(label_xmstring);
3741         label_xmstring = NULL;
3742     }
3743     if (instance->hidden_fields_lbl == NULL)
3744         return -1;
3745
3746     return 0;
3747 }
3748
3749
3750
3751 static int 
3752 dtb_options_header_fields_lbl_create(
3753     DtbOptionsDialogInfo instance,
3754     Widget parent
3755 )
3756 {
3757     XmString    label_xmstring = NULL;
3758     
3759     if (instance->header_fields_lbl == NULL) {
3760         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 24, "Header Field:"));
3761         instance->header_fields_lbl =
3762             XtVaCreateWidget("dtb_options_header_fields_lbl",
3763                 xmLabelWidgetClass,
3764                 parent,
3765                 XmNbottomAttachment, XmATTACH_NONE,
3766                 XmNrightOffset, 0,
3767                 XmNrightPosition, 34,
3768                 XmNrightAttachment, XmATTACH_POSITION,
3769                 XmNleftAttachment, XmATTACH_NONE,
3770                 XmNtopOffset, 4,
3771                 XmNtopAttachment, XmATTACH_FORM,
3772                 XmNrecomputeSize, True,
3773                 XmNalignment, XmALIGNMENT_CENTER,
3774                 XmNlabelType, XmSTRING,
3775                 XmNlabelString, label_xmstring,
3776                 NULL);
3777         XmStringFree(label_xmstring);
3778         label_xmstring = NULL;
3779     }
3780     if (instance->header_fields_lbl == NULL)
3781         return -1;
3782
3783     return 0;
3784 }
3785
3786
3787
3788 static int 
3789 dtb_options_h_field_add_create(
3790     DtbOptionsDialogInfo instance,
3791     Widget parent
3792 )
3793 {
3794     XmString    label_xmstring = NULL;
3795     
3796     if (instance->h_field_add == NULL) {
3797         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
3798         instance->h_field_add =
3799             XtVaCreateWidget("dtb_options_h_field_add",
3800                 xmPushButtonWidgetClass,
3801                 parent,
3802                 XmNbottomAttachment, XmATTACH_NONE,
3803                 XmNrightOffset, 0,
3804                 XmNrightAttachment, XmATTACH_FORM,
3805                 XmNleftOffset, 0,
3806                 XmNleftAttachment, XmATTACH_FORM,
3807                 XmNtopOffset, 0,
3808                 XmNtopAttachment, XmATTACH_FORM,
3809                 XmNrecomputeSize, True,
3810                 XmNalignment, XmALIGNMENT_CENTER,
3811                 XmNlabelType, XmSTRING,
3812                 XmNlabelString, label_xmstring,
3813                 NULL);
3814         XmStringFree(label_xmstring);
3815         label_xmstring = NULL;
3816     }
3817     if (instance->h_field_add == NULL)
3818         return -1;
3819
3820     return 0;
3821 }
3822
3823
3824
3825 static int 
3826 dtb_options_h_field_delete_create(
3827     DtbOptionsDialogInfo instance,
3828     Widget parent
3829 )
3830 {
3831     XmString    label_xmstring = NULL;
3832     
3833     if (instance->h_field_delete == NULL) {
3834         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
3835         instance->h_field_delete =
3836             XtVaCreateWidget("dtb_options_h_field_delete",
3837                 xmPushButtonWidgetClass,
3838                 parent,
3839                 XmNbottomAttachment, XmATTACH_NONE,
3840                 XmNrightOffset, 0,
3841                 XmNrightAttachment, XmATTACH_FORM,
3842                 XmNleftOffset, 0,
3843                 XmNleftAttachment, XmATTACH_FORM,
3844                 XmNtopOffset, 10,
3845                 XmNtopAttachment, XmATTACH_WIDGET,
3846                 XmNrecomputeSize, True,
3847                 XmNalignment, XmALIGNMENT_CENTER,
3848                 XmNlabelType, XmSTRING,
3849                 XmNlabelString, label_xmstring,
3850                 NULL);
3851         XmStringFree(label_xmstring);
3852         label_xmstring = NULL;
3853     }
3854     if (instance->h_field_delete == NULL)
3855         return -1;
3856
3857     return 0;
3858 }
3859
3860
3861
3862 static int 
3863 dtb_options_h_field_change_create(
3864     DtbOptionsDialogInfo instance,
3865     Widget parent
3866 )
3867 {
3868     XmString    label_xmstring = NULL;
3869     
3870     if (instance->h_field_change == NULL) {
3871         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
3872         instance->h_field_change =
3873             XtVaCreateWidget("dtb_options_h_field_change",
3874                 xmPushButtonWidgetClass,
3875                 parent,
3876                 XmNbottomAttachment, XmATTACH_NONE,
3877                 XmNrightOffset, 0,
3878                 XmNrightAttachment, XmATTACH_FORM,
3879                 XmNleftOffset, 0,
3880                 XmNleftAttachment, XmATTACH_FORM,
3881                 XmNtopOffset, 10,
3882                 XmNtopAttachment, XmATTACH_WIDGET,
3883                 XmNrecomputeSize, True,
3884                 XmNalignment, XmALIGNMENT_CENTER,
3885                 XmNlabelType, XmSTRING,
3886                 XmNlabelString, label_xmstring,
3887                 NULL);
3888         XmStringFree(label_xmstring);
3889         label_xmstring = NULL;
3890     }
3891     if (instance->h_field_change == NULL)
3892         return -1;
3893
3894     return 0;
3895 }
3896
3897
3898
3899 static int 
3900 dtb_options_wrap_checkbox_create(
3901     DtbOptionsDialogInfo instance,
3902     Widget parent
3903 )
3904 {
3905     XmString    label_xmstring = NULL;
3906     Arg args[22];       /* need 17 args (add 5 to be safe) */
3907     int n = 0;
3908     Widget      wrap_checkbox_items[1];
3909     
3910     if (instance->wrap_checkbox == NULL) {
3911         n = 0;
3912         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
3913         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
3914         XtSetArg(args[n], XmNleftPosition, 26);  ++n;
3915         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
3916         XtSetArg(args[n], XmNtopOffset, 9);  ++n;
3917         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
3918         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
3919         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
3920         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
3921         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
3922         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
3923         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
3924         XtSetArg(args[n], XmNspacing, 0);  ++n;
3925         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
3926         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
3927         instance->wrap_checkbox =
3928             XmCreateRadioBox(parent,
3929                 "dtb_options_wrap_checkbox", args, n);
3930     }
3931     if (instance->wrap_checkbox == NULL)
3932         return -1;
3933
3934     if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL) {
3935         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 36, "Show Attachment List"));
3936         instance->wrap_checkbox_items.Show_Attachment_List_item =
3937             XtVaCreateManagedWidget("dtb_options_wrap_checkbox_show_attachment_list_item",
3938                 xmToggleButtonWidgetClass,
3939                 instance->wrap_checkbox,
3940                 XmNset, True,
3941                 XmNlabelString, label_xmstring,
3942                 NULL);
3943         XmStringFree(label_xmstring);
3944         label_xmstring = NULL;
3945     }
3946     if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL)
3947         return -1;
3948
3949     return 0;
3950 }
3951
3952
3953
3954 static int 
3955 dtb_options_confirm_attachment_create(
3956     DtbOptionsDialogInfo instance,
3957     Widget parent)
3958 {
3959     XmString    label_xmstring = NULL;
3960     Arg         args[32];       /* need 9 args (add 5 to be safe) */
3961     int         n = 0;
3962
3963     if (instance->confirm_attachment == NULL)
3964     {
3965         instance->confirm_attachment =
3966             XtVaCreateWidget("dtb_options_confirm_attachment",
3967                 xmFormWidgetClass,
3968                 parent,
3969                 XmNbottomAttachment, XmATTACH_NONE,
3970                 XmNrightAttachment, XmATTACH_NONE,
3971                 XmNleftPosition, 26,
3972                 XmNleftAttachment, XmATTACH_POSITION,
3973                 XmNtopOffset, 4,
3974                 XmNtopAttachment, XmATTACH_WIDGET,
3975                 XmNresizePolicy, XmRESIZE_ANY,
3976                 XmNmarginHeight, 0,
3977                 XmNmarginWidth, 0,
3978                 NULL);
3979
3980         if (instance->confirm_attachment == NULL) return -1;
3981     }
3982     parent = instance->confirm_attachment;
3983     
3984     if (instance->cfrm_att_checkbox == NULL)
3985     {
3986         n = 0;
3987         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
3988         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
3989         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
3990         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
3991         XtSetArg(args[n], XmNentryVerticalAlignment,
3992                           XmALIGNMENT_BASELINE_BOTTOM);  ++n;
3993         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
3994         XtSetArg(args[n], XmNspacing, 0);  ++n;
3995         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
3996         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
3997         instance->cfrm_att_checkbox =
3998           XmCreateRadioBox(parent, "dtb_options_cfrm_att_checkbox", args, n);
3999         
4000         if (instance->cfrm_att_checkbox == NULL) return -1;
4001
4002         XtVaSetValues(
4003                 instance->cfrm_att_checkbox,
4004                 XmNbottomAttachment, XmATTACH_FORM,
4005                 XmNtopAttachment,    XmATTACH_FORM,
4006                 XmNleftAttachment,   XmATTACH_FORM,
4007                 XmNleftPosition,     50,
4008                 XmNrightAttachment,  XmATTACH_NONE,
4009                 NULL);
4010
4011         XtManageChild(instance->cfrm_att_checkbox);
4012     }
4013
4014     if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
4015     {
4016         label_xmstring = XmStringCreateLocalized(
4017           GETMSG(Dtb_project_catd, 2, 94, "Confirm attachments over:"));
4018
4019         instance->cfrm_att_checkbox_items.Confirm_Attachment_item =
4020             XtVaCreateManagedWidget(
4021                 "dtb_options_cfrm_att_checkbox_Confirm_Attachment_item",
4022                 xmToggleButtonWidgetClass,
4023                 instance->cfrm_att_checkbox,
4024                 XmNset,         True,
4025                 XmNlabelString, label_xmstring,
4026                 NULL);
4027         XmStringFree(label_xmstring);
4028         label_xmstring = NULL;
4029
4030         if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
4031           return -1;
4032     }
4033
4034     if (instance->cfrm_att_size_sb == NULL)
4035     {
4036         n = 0;
4037         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
4038         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
4039         XtSetArg(args[n], XmNposition, 1024*1024);  ++n;
4040         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
4041         XtSetArg(args[n], XmNmaximumValue, 1024*1024);  ++n;
4042         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
4043         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
4044         XtSetArg(args[n], XmNcolumns, 8);  ++n;
4045         instance->cfrm_att_size_sb =
4046           XmCreateSimpleSpinBox(parent, "dtb_options_cfrm_att_size_sb", args,n);
4047
4048         if (instance->cfrm_att_size_sb == NULL) return -1;
4049         
4050         XtVaSetValues(
4051                 instance->cfrm_att_size_sb,
4052                 XmNbottomAttachment, XmATTACH_FORM,
4053                 XmNtopAttachment,    XmATTACH_FORM,
4054                 XmNleftAttachment,   XmATTACH_WIDGET,
4055                 XmNleftWidget,       instance->cfrm_att_checkbox,
4056                 XmNrightAttachment,  XmATTACH_NONE,
4057                 NULL);
4058         XtManageChild(instance->cfrm_att_size_sb);
4059     }
4060
4061     if (instance->visit_mailb_lbl == NULL)
4062     {
4063         label_xmstring =
4064           XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 95, "kilobytes"));
4065         instance->cfrm_att_size_mb_lbl =
4066             XtVaCreateManagedWidget("dtb_options_cfrm_att_size_mb_lbl",
4067                 xmLabelWidgetClass,
4068                 parent,
4069                 XmNrecomputeSize, True,
4070                 XmNalignment, XmALIGNMENT_CENTER,
4071                 XmNlabelType, XmSTRING,
4072                 XmNlabelString, label_xmstring,
4073                 XmNtopAttachment, XmATTACH_FORM,
4074                 XmNbottomAttachment, XmATTACH_FORM,
4075                 XmNbottomOffset, 4,
4076                 XmNrightAttachment, XmATTACH_NONE,
4077                 XmNleftOffset, 2,
4078                 XmNleftAttachment, XmATTACH_WIDGET,
4079                 XmNleftWidget, instance->cfrm_att_size_sb,
4080                 NULL);
4081         XmStringFree(label_xmstring);
4082         label_xmstring = NULL;
4083         
4084         if (instance->cfrm_att_size_mb_lbl == NULL) return -1;
4085         
4086         XtVaSetValues(
4087                 instance->cfrm_att_size_mb_lbl,
4088                 XmNbottomAttachment, XmATTACH_FORM,
4089                 XmNtopAttachment,    XmATTACH_FORM,
4090                 XmNleftAttachment,   XmATTACH_WIDGET,
4091                 XmNleftWidget,       instance->cfrm_att_size_sb,
4092                 XmNrightAttachment,  XmATTACH_NONE,
4093                 NULL);
4094     }
4095
4096     return 0;
4097 }
4098
4099
4100
4101 static int 
4102 dtb_options_separator3_create(
4103     DtbOptionsDialogInfo instance,
4104     Widget parent
4105 )
4106 {
4107     
4108     if (instance->separator3 == NULL) {
4109         instance->separator3 =
4110             XtVaCreateWidget("dtb_options_separator3",
4111                 xmSeparatorWidgetClass,
4112                 parent,
4113                 XmNbottomAttachment, XmATTACH_NONE,
4114                 XmNrightOffset, 0,
4115                 XmNrightAttachment, XmATTACH_FORM,
4116                 XmNleftOffset, 1,
4117                 XmNleftAttachment, XmATTACH_FORM,
4118                 XmNtopAttachment, XmATTACH_WIDGET,
4119                 XmNtopOffset, 9,
4120                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4121                 XmNorientation, XmHORIZONTAL,
4122                 NULL);
4123     }
4124     if (instance->separator3 == NULL)
4125         return -1;
4126
4127     return 0;
4128 }
4129
4130
4131
4132 static int 
4133 dtb_options_separator7_create(
4134     DtbOptionsDialogInfo instance,
4135     Widget parent
4136 )
4137 {
4138     
4139     if (instance->separator7 == NULL) {
4140         instance->separator7 =
4141             XtVaCreateWidget("dtb_options_separator7",
4142                 xmSeparatorWidgetClass,
4143                 parent,
4144                 XmNbottomAttachment, XmATTACH_NONE,
4145                 XmNrightOffset, 0,
4146                 XmNrightAttachment, XmATTACH_FORM,
4147                 XmNleftOffset, 1,
4148                 XmNleftAttachment, XmATTACH_FORM,
4149                 XmNtopOffset, 8,
4150                 XmNtopAttachment, XmATTACH_WIDGET,
4151                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4152                 XmNorientation, XmHORIZONTAL,
4153                 NULL);
4154     }
4155     if (instance->separator7 == NULL)
4156         return -1;
4157
4158     return 0;
4159 }
4160
4161
4162
4163 static int 
4164 dtb_options_deadletter_field_create(
4165     DtbOptionsDialogInfo instance,
4166     Widget parent
4167 )
4168 {
4169     XmString    label_xmstring = NULL;
4170     Arg args[44];       /* need 39 args (add 5 to be safe) */
4171     int n = 0;
4172     
4173     if (instance->deadletter_field_rowcolumn == NULL) {
4174         instance->deadletter_field_rowcolumn =
4175             XtVaCreateWidget("dtb_options_deadletter_field",
4176                 xmRowColumnWidgetClass,
4177                 parent,
4178                 XmNbottomAttachment, XmATTACH_NONE,
4179                 XmNrightAttachment, XmATTACH_NONE,
4180                 XmNleftOffset, 32,
4181                 XmNleftAttachment, XmATTACH_FORM,
4182                 XmNtopOffset, 8,
4183                 XmNtopAttachment, XmATTACH_WIDGET,
4184                 XmNadjustLast, True,
4185                 XmNmarginWidth, 0,
4186                 XmNmarginHeight, 0,
4187                 XmNentryAlignment, XmALIGNMENT_END,
4188                 XmNorientation, XmHORIZONTAL,
4189                 NULL);
4190     }
4191     if (instance->deadletter_field_rowcolumn == NULL)
4192         return -1;
4193
4194     if (instance->deadletter_field_label == NULL) {
4195         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 38, "Dead Letter Folder:"));
4196         instance->deadletter_field_label =
4197             XtVaCreateWidget("dtb_options_deadletter_field_label",
4198                 xmLabelWidgetClass,
4199                 instance->deadletter_field_rowcolumn,
4200                 XmNlabelType, XmSTRING,
4201                 XmNlabelString, label_xmstring,
4202                 NULL);
4203         XmStringFree(label_xmstring);
4204         label_xmstring = NULL;
4205     }
4206     if (instance->deadletter_field_label == NULL)
4207         return -1;
4208
4209     if (instance->deadletter_field == NULL) {
4210         n = 0;
4211         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
4212         XtSetArg(args[n], XmNeditable, True);  ++n;
4213         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
4214         instance->deadletter_field =
4215             XmCreateTextField(instance->deadletter_field_rowcolumn,
4216                 "dtb_options_deadletter_field_field", args, n);
4217     }
4218     if (instance->deadletter_field == NULL)
4219         return -1;
4220
4221     return 0;
4222 }
4223
4224
4225
4226 static int 
4227 dtb_options_separator9_create(
4228     DtbOptionsDialogInfo instance,
4229     Widget parent
4230 )
4231 {
4232     
4233     if (instance->separator9 == NULL) {
4234         instance->separator9 =
4235             XtVaCreateWidget("dtb_options_separator9",
4236                 xmSeparatorWidgetClass,
4237                 parent,
4238                 XmNbottomAttachment, XmATTACH_NONE,
4239                 XmNrightOffset, 0,
4240                 XmNrightAttachment, XmATTACH_FORM,
4241                 XmNleftOffset, 2,
4242                 XmNleftAttachment, XmATTACH_FORM,
4243                 XmNtopOffset, 8,
4244                 XmNtopAttachment, XmATTACH_WIDGET,
4245                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4246                 XmNorientation, XmHORIZONTAL,
4247                 NULL);
4248     }
4249     if (instance->separator9 == NULL)
4250         return -1;
4251
4252     return 0;
4253 }
4254
4255
4256
4257 static int 
4258 dtb_options_format_menu_lbl_create(
4259     DtbOptionsDialogInfo instance,
4260     Widget parent
4261 )
4262 {
4263     XmString    label_xmstring = NULL;
4264     
4265     if (instance->format_menu_lbl == NULL) {
4266         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 39, "Format Menu Custom Fields"));
4267         instance->format_menu_lbl =
4268             XtVaCreateWidget("dtb_options_format_menu_lbl",
4269                 xmLabelWidgetClass,
4270                 parent,
4271                 XmNbottomAttachment, XmATTACH_NONE,
4272                 XmNrightAttachment, XmATTACH_NONE,
4273                 XmNleftOffset, 8,
4274                 XmNleftAttachment, XmATTACH_FORM,
4275                 XmNtopOffset, 8,
4276                 XmNtopAttachment, XmATTACH_WIDGET,
4277                 XmNrecomputeSize, True,
4278                 XmNalignment, XmALIGNMENT_CENTER,
4279                 XmNlabelType, XmSTRING,
4280                 XmNlabelString, label_xmstring,
4281                 NULL);
4282         XmStringFree(label_xmstring);
4283         label_xmstring = NULL;
4284     }
4285     if (instance->format_menu_lbl == NULL)
4286         return -1;
4287
4288     return 0;
4289 }
4290
4291
4292
4293 static int 
4294 dtb_options_group6_create(
4295     DtbOptionsDialogInfo instance,
4296     Widget parent
4297 )
4298 {
4299     
4300     if (instance->group6 == NULL) {
4301         instance->group6 =
4302             XtVaCreateWidget("dtb_options_group6",
4303                 xmFormWidgetClass,
4304                 parent,
4305                 XmNbottomAttachment, XmATTACH_NONE,
4306                 XmNrightAttachment, XmATTACH_NONE,
4307                 XmNleftOffset, 32,
4308                 XmNleftAttachment, XmATTACH_FORM,
4309                 XmNtopOffset, 8,
4310                 XmNtopAttachment, XmATTACH_WIDGET,
4311                 XmNresizePolicy, XmRESIZE_ANY,
4312                 XmNmarginHeight, 0,
4313                 XmNmarginWidth, 0,
4314                 NULL);
4315     }
4316     if (instance->group6 == NULL)
4317         return -1;
4318
4319     return 0;
4320 }
4321
4322
4323
4324 static int 
4325 dtb_options_group4_create(
4326     DtbOptionsDialogInfo instance,
4327     Widget parent
4328 )
4329 {
4330     
4331     if (instance->group4 == NULL) {
4332         instance->group4 =
4333             XtVaCreateWidget("dtb_options_group4",
4334                 xmFormWidgetClass,
4335                 parent,
4336                 XmNbottomOffset, 10,
4337                 XmNbottomAttachment, XmATTACH_FORM,
4338                 XmNrightAttachment, XmATTACH_NONE,
4339                 XmNleftOffset, 69,
4340                 XmNleftAttachment, XmATTACH_FORM,
4341                 XmNtopOffset, 10,
4342                 XmNtopAttachment, XmATTACH_WIDGET,
4343                 XmNresizePolicy, XmRESIZE_ANY,
4344                 XmNmarginHeight, 0,
4345                 XmNmarginWidth, 0,
4346                 NULL);
4347     }
4348     if (instance->group4 == NULL)
4349         return -1;
4350
4351     return 0;
4352 }
4353
4354
4355
4356 static int 
4357 dtb_options_indent_str_tf_create(
4358     DtbOptionsDialogInfo instance,
4359     Widget parent
4360 )
4361 {
4362     Arg args[19];       /* need 14 args (add 5 to be safe) */
4363     int n = 0;
4364     
4365     if (instance->indent_str_tf == NULL) {
4366         n = 0;
4367         XtSetArg(args[n], XmNbottomOffset, 0);  ++n;
4368         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM);  ++n;
4369         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
4370         XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM);  ++n;
4371         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
4372         XtSetArg(args[n], XmNleftAttachment, XmATTACH_WIDGET);  ++n;
4373         XtSetArg(args[n], XmNtopAttachment, XmATTACH_NONE);  ++n;
4374         XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 37, ">"));  ++n;
4375         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
4376         XtSetArg(args[n], XmNeditable, True);  ++n;
4377         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
4378         instance->indent_str_tf =
4379             XmCreateTextField(parent,
4380                 "dtb_options_indent_str_tf", args, n);
4381     }
4382     if (instance->indent_str_tf == NULL)
4383         return -1;
4384
4385     return 0;
4386 }
4387
4388
4389
4390 static int 
4391 dtb_options_group23_create(
4392     DtbOptionsDialogInfo instance,
4393     Widget parent
4394 )
4395 {
4396     
4397     if (instance->group23 == NULL) {
4398         instance->group23 =
4399             XtVaCreateWidget("dtb_options_group23",
4400                 xmFormWidgetClass,
4401                 parent,
4402                 XmNbottomOffset, 4,
4403                 XmNbottomAttachment, XmATTACH_FORM,
4404                 XmNrightAttachment, XmATTACH_NONE,
4405                 XmNleftOffset, 15,
4406                 XmNleftAttachment, XmATTACH_FORM,
4407                 XmNtopOffset, -2,
4408                 XmNtopAttachment, XmATTACH_FORM,
4409                 XmNresizePolicy, XmRESIZE_ANY,
4410                 XmNmarginHeight, 0,
4411                 XmNmarginWidth, 0,
4412                 NULL);
4413     }
4414     if (instance->group23 == NULL)
4415         return -1;
4416
4417     return 0;
4418 }
4419
4420
4421
4422 static int 
4423 dtb_options_indent_str_lbl_create(
4424     DtbOptionsDialogInfo instance,
4425     Widget parent
4426 )
4427 {
4428     XmString    label_xmstring = NULL;
4429     
4430     if (instance->indent_str_lbl == NULL) {
4431         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 52, "Indent string"));
4432         instance->indent_str_lbl =
4433             XtVaCreateWidget("dtb_options_indent_str_lbl",
4434                 xmLabelWidgetClass,
4435                 parent,
4436                 XmNrecomputeSize, True,
4437                 XmNalignment, XmALIGNMENT_CENTER,
4438                 XmNlabelType, XmSTRING,
4439                 XmNlabelString, label_xmstring,
4440                 NULL);
4441         XmStringFree(label_xmstring);
4442         label_xmstring = NULL;
4443     }
4444     if (instance->indent_str_lbl == NULL)
4445         return -1;
4446
4447     return 0;
4448 }
4449
4450
4451
4452 static int 
4453 dtb_options_reply_include_lbl_create(
4454     DtbOptionsDialogInfo instance,
4455     Widget parent
4456 )
4457 {
4458     XmString    label_xmstring = NULL;
4459     
4460     if (instance->reply_include_lbl == NULL) {
4461         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 53, "for Reply Include:"));
4462         instance->reply_include_lbl =
4463             XtVaCreateWidget("dtb_options_reply_include_lbl",
4464                 xmLabelWidgetClass,
4465                 parent,
4466                 XmNrecomputeSize, True,
4467                 XmNalignment, XmALIGNMENT_CENTER,
4468                 XmNlabelType, XmSTRING,
4469                 XmNlabelString, label_xmstring,
4470                 NULL);
4471         XmStringFree(label_xmstring);
4472         label_xmstring = NULL;
4473     }
4474     if (instance->reply_include_lbl == NULL)
4475         return -1;
4476
4477     return 0;
4478 }
4479
4480
4481
4482 static int 
4483 dtb_options_group7_create(
4484     DtbOptionsDialogInfo instance,
4485     Widget parent
4486 )
4487 {
4488     
4489     if (instance->group7 == NULL) {
4490         instance->group7 =
4491             XtVaCreateWidget("dtb_options_group7",
4492                 xmFormWidgetClass,
4493                 parent,
4494                 XmNbottomAttachment, XmATTACH_NONE,
4495                 XmNrightAttachment, XmATTACH_NONE,
4496                 XmNleftOffset, 10,
4497                 XmNleftAttachment, XmATTACH_WIDGET,
4498                 XmNtopOffset, 0,
4499                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4500                 XmNresizePolicy, XmRESIZE_ANY,
4501                 XmNmarginHeight, 0,
4502                 XmNmarginWidth, 0,
4503                 NULL);
4504     }
4505     if (instance->group7 == NULL)
4506         return -1;
4507
4508     return 0;
4509 }
4510
4511
4512
4513 static int 
4514 dtb_options_list_create(
4515     DtbOptionsDialogInfo instance,
4516     Widget parent
4517 )
4518 {
4519     XmString    label_xmstring = NULL;
4520     Arg args[21];       /* need 16 args (add 5 to be safe) */
4521     int n = 0;
4522     int i = 0;
4523     XmString list_list_xmstrings[2];
4524     
4525     
4526     /*
4527      * Convert char* strings to XmStrings
4528      */
4529     list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 40, "bcc"));
4530     list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 41, "return-receipt"));
4531     if (instance->list == NULL) {
4532         n = 0;
4533         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
4534         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
4535         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
4536         XtSetArg(args[n], XmNvisibleItemCount, 5);  ++n;
4537         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
4538         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
4539         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
4540         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
4541         XtSetArg(args[n], XmNleftPosition, 24);  ++n;
4542         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
4543         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
4544         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
4545         XtSetArg(args[n], XmNitems, (XtArgVal)list_list_xmstrings); n++;
4546         XtSetArg(args[n], XmNitemCount, (XtArgVal)2); n++;
4547         instance->list =
4548             XmCreateScrolledList(parent,
4549                 "dtb_options_list_list", args, n);
4550     }
4551     instance->list_scrolledwin = XtParent(instance->list);
4552     if (instance->list == NULL)
4553         return -1;
4554
4555     return 0;
4556 }
4557
4558
4559
4560 static int 
4561 dtb_options_menu_labels_lbl_create(
4562     DtbOptionsDialogInfo instance,
4563     Widget parent
4564 )
4565 {
4566     XmString    label_xmstring = NULL;
4567     
4568     if (instance->menu_labels_lbl == NULL) {
4569         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 42, "Menu Labels:"));
4570         instance->menu_labels_lbl =
4571             XtVaCreateWidget("dtb_options_menu_labels_lbl",
4572                 xmLabelWidgetClass,
4573                 parent,
4574                 XmNbottomAttachment, XmATTACH_NONE,
4575                 XmNrightOffset, 0,
4576                 XmNrightPosition, 24,
4577                 XmNrightAttachment, XmATTACH_POSITION,
4578                 XmNleftAttachment, XmATTACH_NONE,
4579                 XmNtopOffset, 0,
4580                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4581                 XmNrecomputeSize, True,
4582                 XmNalignment, XmALIGNMENT_CENTER,
4583                 XmNlabelType, XmSTRING,
4584                 XmNlabelString, label_xmstring,
4585                 NULL);
4586         XmStringFree(label_xmstring);
4587         label_xmstring = NULL;
4588     }
4589     if (instance->menu_labels_lbl == NULL)
4590         return -1;
4591
4592     return 0;
4593 }
4594
4595
4596
4597 static int 
4598 dtb_options_hdr_field_create(
4599     DtbOptionsDialogInfo instance,
4600     Widget parent
4601 )
4602 {
4603     Arg args[18];       /* need 13 args (add 5 to be safe) */
4604     int n = 0;
4605     
4606     if (instance->hdr_field == NULL) {
4607         n = 0;
4608         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
4609         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
4610         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
4611         XtSetArg(args[n], XmNleftPosition, 24);  ++n;
4612         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
4613         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
4614         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
4615         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
4616         XtSetArg(args[n], XmNeditable, True);  ++n;
4617         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
4618         instance->hdr_field =
4619             XmCreateTextField(parent,
4620                 "dtb_options_hdr_field", args, n);
4621     }
4622     if (instance->hdr_field == NULL)
4623         return -1;
4624
4625     return 0;
4626 }
4627
4628
4629
4630 static int 
4631 dtb_options_def_value_field_create(
4632     DtbOptionsDialogInfo instance,
4633     Widget parent
4634 )
4635 {
4636     Arg args[18];       /* need 13 args (add 5 to be safe) */
4637     int n = 0;
4638     
4639     if (instance->def_value_field == NULL) {
4640         n = 0;
4641         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
4642         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
4643         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
4644         XtSetArg(args[n], XmNleftPosition, 24);  ++n;
4645         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
4646         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
4647         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
4648         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
4649         XtSetArg(args[n], XmNeditable, True);  ++n;
4650         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
4651         instance->def_value_field =
4652             XmCreateTextField(parent,
4653                 "dtb_options_def_value_field", args, n);
4654     }
4655     if (instance->def_value_field == NULL)
4656         return -1;
4657
4658     return 0;
4659 }
4660
4661
4662
4663 static int 
4664 dtb_options_hdr_field_lbl_create(
4665     DtbOptionsDialogInfo instance,
4666     Widget parent
4667 )
4668 {
4669     XmString    label_xmstring = NULL;
4670     
4671     if (instance->hdr_field_lbl == NULL) {
4672         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 50, "Header Field:"));
4673         instance->hdr_field_lbl =
4674             XtVaCreateWidget("dtb_options_hdr_field_lbl",
4675                 xmLabelWidgetClass,
4676                 parent,
4677                 XmNbottomOffset, 0,
4678                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
4679                 XmNrightOffset, 0,
4680                 XmNrightPosition, 24,
4681                 XmNrightAttachment, XmATTACH_POSITION,
4682                 XmNleftAttachment, XmATTACH_NONE,
4683                 XmNtopOffset, 0,
4684                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4685                 XmNrecomputeSize, True,
4686                 XmNalignment, XmALIGNMENT_CENTER,
4687                 XmNlabelType, XmSTRING,
4688                 XmNlabelString, label_xmstring,
4689                 NULL);
4690         XmStringFree(label_xmstring);
4691         label_xmstring = NULL;
4692     }
4693     if (instance->hdr_field_lbl == NULL)
4694         return -1;
4695
4696     return 0;
4697 }
4698
4699
4700
4701 static int 
4702 dtb_options_def_value_lbl_create(
4703     DtbOptionsDialogInfo instance,
4704     Widget parent
4705 )
4706 {
4707     XmString    label_xmstring = NULL;
4708     
4709     if (instance->def_value_lbl == NULL) {
4710         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 51, "Default Value:"));
4711         instance->def_value_lbl =
4712             XtVaCreateWidget("dtb_options_def_value_lbl",
4713                 xmLabelWidgetClass,
4714                 parent,
4715                 XmNbottomOffset, 0,
4716                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
4717                 XmNrightOffset, 0,
4718                 XmNrightPosition, 24,
4719                 XmNrightAttachment, XmATTACH_POSITION,
4720                 XmNleftAttachment, XmATTACH_NONE,
4721                 XmNtopOffset, 0,
4722                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4723                 XmNrecomputeSize, True,
4724                 XmNalignment, XmALIGNMENT_CENTER,
4725                 XmNlabelType, XmSTRING,
4726                 XmNlabelString, label_xmstring,
4727                 NULL);
4728         XmStringFree(label_xmstring);
4729         label_xmstring = NULL;
4730     }
4731     if (instance->def_value_lbl == NULL)
4732         return -1;
4733
4734     return 0;
4735 }
4736
4737
4738
4739 static int 
4740 dtb_options_add_button_create(
4741     DtbOptionsDialogInfo instance,
4742     Widget parent
4743 )
4744 {
4745     XmString    label_xmstring = NULL;
4746     
4747     if (instance->add_button == NULL) {
4748         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
4749         instance->add_button =
4750             XtVaCreateWidget("dtb_options_add_button",
4751                 xmPushButtonWidgetClass,
4752                 parent,
4753                 XmNbottomAttachment, XmATTACH_NONE,
4754                 XmNrightOffset, 0,
4755                 XmNrightAttachment, XmATTACH_FORM,
4756                 XmNleftOffset, 0,
4757                 XmNleftAttachment, XmATTACH_FORM,
4758                 XmNtopOffset, 0,
4759                 XmNtopAttachment, XmATTACH_FORM,
4760                 XmNrecomputeSize, True,
4761                 XmNalignment, XmALIGNMENT_CENTER,
4762                 XmNlabelType, XmSTRING,
4763                 XmNlabelString, label_xmstring,
4764                 NULL);
4765         XmStringFree(label_xmstring);
4766         label_xmstring = NULL;
4767     }
4768     if (instance->add_button == NULL)
4769         return -1;
4770
4771     return 0;
4772 }
4773
4774
4775
4776 static int 
4777 dtb_options_del_button_create(
4778     DtbOptionsDialogInfo instance,
4779     Widget parent
4780 )
4781 {
4782     XmString    label_xmstring = NULL;
4783     
4784     if (instance->del_button == NULL) {
4785         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
4786         instance->del_button =
4787             XtVaCreateWidget("dtb_options_del_button",
4788                 xmPushButtonWidgetClass,
4789                 parent,
4790                 XmNbottomAttachment, XmATTACH_NONE,
4791                 XmNrightOffset, 0,
4792                 XmNrightAttachment, XmATTACH_FORM,
4793                 XmNleftOffset, 0,
4794                 XmNleftAttachment, XmATTACH_FORM,
4795                 XmNtopOffset, 10,
4796                 XmNtopAttachment, XmATTACH_WIDGET,
4797                 XmNrecomputeSize, True,
4798                 XmNalignment, XmALIGNMENT_CENTER,
4799                 XmNlabelType, XmSTRING,
4800                 XmNlabelString, label_xmstring,
4801                 NULL);
4802         XmStringFree(label_xmstring);
4803         label_xmstring = NULL;
4804     }
4805     if (instance->del_button == NULL)
4806         return -1;
4807
4808     return 0;
4809 }
4810
4811
4812
4813 static int 
4814 dtb_options_change_button_create(
4815     DtbOptionsDialogInfo instance,
4816     Widget parent
4817 )
4818 {
4819     XmString    label_xmstring = NULL;
4820     
4821     if (instance->change_button == NULL) {
4822         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
4823         instance->change_button =
4824             XtVaCreateWidget("dtb_options_change_button",
4825                 xmPushButtonWidgetClass,
4826                 parent,
4827                 XmNbottomAttachment, XmATTACH_NONE,
4828                 XmNrightAttachment, XmATTACH_NONE,
4829                 XmNleftOffset, 0,
4830                 XmNleftAttachment, XmATTACH_FORM,
4831                 XmNtopOffset, 10,
4832                 XmNtopAttachment, XmATTACH_WIDGET,
4833                 XmNrecomputeSize, True,
4834                 XmNalignment, XmALIGNMENT_CENTER,
4835                 XmNlabelType, XmSTRING,
4836                 XmNlabelString, label_xmstring,
4837                 NULL);
4838         XmStringFree(label_xmstring);
4839         label_xmstring = NULL;
4840     }
4841     if (instance->change_button == NULL)
4842         return -1;
4843
4844     return 0;
4845 }
4846
4847
4848
4849 static int 
4850 dtb_options_separator8_create(
4851     DtbOptionsDialogInfo instance,
4852     Widget parent
4853 )
4854 {
4855     
4856     if (instance->separator8 == NULL) {
4857         instance->separator8 =
4858             XtVaCreateWidget("dtb_options_separator8",
4859                 xmSeparatorWidgetClass,
4860                 parent,
4861                 XmNbottomAttachment, XmATTACH_NONE,
4862                 XmNrightOffset, -5,
4863                 XmNrightAttachment, XmATTACH_FORM,
4864                 XmNleftOffset, 0,
4865                 XmNleftAttachment, XmATTACH_FORM,
4866                 XmNtopOffset, 6,
4867                 XmNtopAttachment, XmATTACH_WIDGET,
4868                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4869                 XmNorientation, XmHORIZONTAL,
4870                 NULL);
4871     }
4872     if (instance->separator8 == NULL)
4873         return -1;
4874
4875     return 0;
4876 }
4877
4878
4879
4880 static int 
4881 dtb_options_separator5_create(
4882     DtbOptionsDialogInfo instance,
4883     Widget parent
4884 )
4885 {
4886     
4887     if (instance->separator5 == NULL) {
4888         instance->separator5 =
4889             XtVaCreateWidget("dtb_options_separator5",
4890                 xmSeparatorWidgetClass,
4891                 parent,
4892                 XmNbottomAttachment, XmATTACH_NONE,
4893                 XmNrightOffset, 0,
4894                 XmNrightAttachment, XmATTACH_FORM,
4895                 XmNleftOffset, 0,
4896                 XmNleftAttachment, XmATTACH_FORM,
4897                 XmNtopOffset, 10,
4898                 XmNtopAttachment, XmATTACH_WIDGET,
4899                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4900                 XmNorientation, XmHORIZONTAL,
4901                 NULL);
4902     }
4903     if (instance->separator5 == NULL)
4904         return -1;
4905
4906     return 0;
4907 }
4908
4909
4910
4911 static int 
4912 dtb_options_group25_create(
4913     DtbOptionsDialogInfo instance,
4914     Widget parent
4915 )
4916 {
4917     
4918     if (instance->group25 == NULL) {
4919         instance->group25 =
4920             XtVaCreateWidget("dtb_options_group25",
4921                 xmFormWidgetClass,
4922                 parent,
4923                 XmNbottomAttachment, XmATTACH_NONE,
4924                 XmNrightAttachment, XmATTACH_NONE,
4925                 XmNleftOffset, 28,
4926                 XmNleftAttachment, XmATTACH_FORM,
4927                 XmNtopOffset, 4,
4928                 XmNtopAttachment, XmATTACH_WIDGET,
4929                 XmNresizePolicy, XmRESIZE_ANY,
4930                 XmNmarginHeight, 0,
4931                 XmNmarginWidth, 0,
4932                 NULL);
4933     }
4934     if (instance->group25 == NULL)
4935         return -1;
4936
4937     return 0;
4938 }
4939
4940
4941
4942 static int 
4943 dtb_options_mailb_for_sent_lbl_create(
4944     DtbOptionsDialogInfo instance,
4945     Widget parent
4946 )
4947 {
4948     XmString    label_xmstring = NULL;
4949     
4950     if (instance->mailb_for_sent_lbl == NULL) {
4951         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 61, "Mailbox for sent messages:"));
4952         instance->mailb_for_sent_lbl =
4953             XtVaCreateWidget("dtb_options_mailb_for_sent_lbl",
4954                 xmLabelWidgetClass,
4955                 parent,
4956                 XmNbottomAttachment, XmATTACH_NONE,
4957                 XmNrightAttachment, XmATTACH_NONE,
4958                 XmNleftOffset, 38,
4959                 XmNleftAttachment, XmATTACH_FORM,
4960                 XmNtopOffset, 10,
4961                 XmNtopAttachment, XmATTACH_WIDGET,
4962                 XmNrecomputeSize, True,
4963                 XmNalignment, XmALIGNMENT_CENTER,
4964                 XmNlabelType, XmSTRING,
4965                 XmNlabelString, label_xmstring,
4966                 NULL);
4967         XmStringFree(label_xmstring);
4968         label_xmstring = NULL;
4969     }
4970     if (instance->mailb_for_sent_lbl == NULL)
4971         return -1;
4972
4973     return 0;
4974 }
4975
4976
4977
4978 static int 
4979 dtb_options_group26_create(
4980     DtbOptionsDialogInfo instance,
4981     Widget parent
4982 )
4983 {
4984     
4985     if (instance->group26 == NULL) {
4986         instance->group26 =
4987             XtVaCreateWidget("dtb_options_group26",
4988                 xmFormWidgetClass,
4989                 parent,
4990                 XmNbottomOffset, 10,
4991                 XmNbottomAttachment, XmATTACH_FORM,
4992                 XmNrightAttachment, XmATTACH_NONE,
4993                 XmNleftOffset, 160,
4994                 XmNleftAttachment, XmATTACH_FORM,
4995                 XmNtopOffset, 6,
4996                 XmNtopAttachment, XmATTACH_WIDGET,
4997                 XmNresizePolicy, XmRESIZE_ANY,
4998                 XmNmarginHeight, 0,
4999                 XmNmarginWidth, 0,
5000                 NULL);
5001     }
5002     if (instance->group26 == NULL)
5003         return -1;
5004
5005     return 0;
5006 }
5007
5008
5009
5010 static int 
5011 dtb_options_group9_create(
5012     DtbOptionsDialogInfo instance,
5013     Widget parent
5014 )
5015 {
5016     
5017     if (instance->group9 == NULL) {
5018         instance->group9 =
5019             XtVaCreateWidget("dtb_options_group9",
5020                 xmFormWidgetClass,
5021                 parent,
5022                 XmNbottomAttachment, XmATTACH_NONE,
5023                 XmNrightAttachment, XmATTACH_NONE,
5024                 XmNleftOffset, 12,
5025                 XmNleftAttachment, XmATTACH_FORM,
5026                 XmNtopOffset, 10,
5027                 XmNtopAttachment, XmATTACH_FORM,
5028                 XmNresizePolicy, XmRESIZE_ANY,
5029                 XmNmarginHeight, 0,
5030                 XmNmarginWidth, 0,
5031                 NULL);
5032     }
5033     if (instance->group9 == NULL)
5034         return -1;
5035
5036     return 0;
5037 }
5038
5039
5040
5041 static int 
5042 dtb_options_dpy_up_mbox_cb_create(
5043     DtbOptionsDialogInfo instance,
5044     Widget parent
5045 )
5046 {
5047     XmString    label_xmstring = NULL;
5048     Arg args[14];       /* need 9 args (add 5 to be safe) */
5049     int n = 0;
5050     Widget      dpy_up_mbox_cb_items[1];
5051     
5052     if (instance->dpy_up_mbox_cb == NULL) {
5053         n = 0;
5054         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
5055         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
5056         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
5057         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
5058         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
5059         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
5060         XtSetArg(args[n], XmNspacing, 0);  ++n;
5061         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
5062         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
5063         instance->dpy_up_mbox_cb =
5064             XmCreateRadioBox(parent,
5065                 "dtb_options_dpy_up_mbox_cb", args, n);
5066     }
5067     if (instance->dpy_up_mbox_cb == NULL)
5068         return -1;
5069
5070     if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL) {
5071         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 59, "Display up to:"));
5072         instance->dpy_up_mbox_cb_items.Display_up_to_item =
5073             XtVaCreateManagedWidget("dtb_options_dpy_up_mbox_cb_display_up_to_item",
5074                 xmToggleButtonWidgetClass,
5075                 instance->dpy_up_mbox_cb,
5076                 XmNset, True,
5077                 XmNlabelString, label_xmstring,
5078                 NULL);
5079         XmStringFree(label_xmstring);
5080         label_xmstring = NULL;
5081     }
5082     if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL)
5083         return -1;
5084
5085     return 0;
5086 }
5087
5088
5089
5090 static int 
5091 dtb_options_recent_sb_create(
5092     DtbOptionsDialogInfo instance,
5093     Widget parent
5094 )
5095 {
5096     Arg args[13];       /* need 8 args (add 5 to be safe) */
5097     int n = 0;
5098     
5099     
5100     if (instance->recent_sb == NULL) {
5101         n = 0;
5102         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
5103         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
5104         XtSetArg(args[n], XmNposition, 5);  ++n;
5105         XtSetArg(args[n], XmNmaximumValue, 100);  ++n;
5106         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
5107         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
5108         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
5109         XtSetArg(args[n], XmNcolumns, 6);  ++n;
5110         instance->recent_sb =
5111             XmCreateSimpleSpinBox(parent,
5112                 "dtb_options_recent_sb", args, n);
5113     }
5114     if (instance->recent_sb == NULL)
5115         return -1;
5116
5117     return 0;
5118 }
5119
5120
5121
5122 static int 
5123 dtb_options_visit_mailb_lbl_create(
5124     DtbOptionsDialogInfo instance,
5125     Widget parent
5126 )
5127 {
5128     XmString    label_xmstring = NULL;
5129     
5130     if (instance->visit_mailb_lbl == NULL) {
5131         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 60, "Recently visited mailboxes"));
5132         instance->visit_mailb_lbl =
5133             XtVaCreateWidget("dtb_options_visit_mailb_lbl",
5134                 xmLabelWidgetClass,
5135                 parent,
5136                 XmNrecomputeSize, True,
5137                 XmNalignment, XmALIGNMENT_CENTER,
5138                 XmNlabelType, XmSTRING,
5139                 XmNlabelString, label_xmstring,
5140                 XmNtopAttachment, XmATTACH_FORM,
5141                 XmNtopOffset, 10,
5142                 XmNbottomAttachment, XmATTACH_FORM,
5143                 XmNbottomOffset, 0,
5144                 XmNrightAttachment, XmATTACH_NONE,
5145                 XmNleftOffset, 2,
5146                 XmNleftAttachment, XmATTACH_WIDGET,
5147                 NULL);
5148         XmStringFree(label_xmstring);
5149         label_xmstring = NULL;
5150     }
5151     if (instance->visit_mailb_lbl == NULL)
5152         return -1;
5153
5154     return 0;
5155 }
5156
5157
5158
5159 static int 
5160 dtb_options_sent_mail_tf_create(
5161     DtbOptionsDialogInfo instance,
5162     Widget parent
5163 )
5164 {
5165     Arg args[9];        /* need 4 args (add 5 to be safe) */
5166     int n = 0;
5167     
5168     if (instance->sent_mail_tf == NULL) {
5169         n = 0;
5170         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
5171         XtSetArg(args[n], XmNeditable, True);  ++n;
5172         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5173         instance->sent_mail_tf =
5174             XmCreateTextField(parent,
5175                 "dtb_options_sent_mail_tf", args, n);
5176     }
5177     if (instance->sent_mail_tf == NULL)
5178         return -1;
5179
5180     return 0;
5181 }
5182
5183
5184
5185 static int 
5186 dtb_options_log_cb_create(
5187     DtbOptionsDialogInfo instance,
5188     Widget parent
5189 )
5190 {
5191     XmString    label_xmstring = NULL;
5192     Arg args[14];       /* need 9 args (add 5 to be safe) */
5193     int n = 0;
5194     Widget      log_cb_items[1];
5195     
5196     if (instance->log_cb == NULL) {
5197         n = 0;
5198         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
5199         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
5200         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
5201         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
5202         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
5203         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
5204         XtSetArg(args[n], XmNspacing, 0);  ++n;
5205         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
5206         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
5207         instance->log_cb =
5208             XmCreateRadioBox(parent,
5209                 "dtb_options_log_cb", args, n);
5210     }
5211     if (instance->log_cb == NULL)
5212         return -1;
5213
5214     if (instance->log_cb_items.Log_all_sent_messages_item == NULL) {
5215         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 62, "Log all sent messages"));
5216         instance->log_cb_items.Log_all_sent_messages_item =
5217             XtVaCreateManagedWidget("dtb_options_log_cb_log_all_sent_messages_item",
5218                 xmToggleButtonWidgetClass,
5219                 instance->log_cb,
5220                 XmNset, False,
5221                 XmNlabelString, label_xmstring,
5222                 NULL);
5223         XmStringFree(label_xmstring);
5224         label_xmstring = NULL;
5225     }
5226     if (instance->log_cb_items.Log_all_sent_messages_item == NULL)
5227         return -1;
5228
5229     return 0;
5230 }
5231
5232
5233
5234 static int 
5235 dtb_options_group24_create(
5236     DtbOptionsDialogInfo instance,
5237     Widget parent
5238 )
5239 {
5240     
5241     if (instance->group24 == NULL) {
5242         instance->group24 =
5243             XtVaCreateWidget("dtb_options_group24",
5244                 xmFormWidgetClass,
5245                 parent,
5246                 XmNbottomAttachment, XmATTACH_NONE,
5247                 XmNrightAttachment, XmATTACH_NONE,
5248                 XmNleftOffset, 10,
5249                 XmNleftAttachment, XmATTACH_WIDGET,
5250                 XmNtopOffset, 0,
5251                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5252                 XmNresizePolicy, XmRESIZE_ANY,
5253                 XmNmarginHeight, 0,
5254                 XmNmarginWidth, 0,
5255                 NULL);
5256     }
5257     if (instance->group24 == NULL)
5258         return -1;
5259
5260     return 0;
5261 }
5262
5263
5264
5265 static int 
5266 dtb_options_path_file_name_tf_create(
5267     DtbOptionsDialogInfo instance,
5268     Widget parent
5269 )
5270 {
5271     Arg args[18];       /* need 13 args (add 5 to be safe) */
5272     int n = 0;
5273     
5274     if (instance->path_file_name_tf == NULL) {
5275         n = 0;
5276         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5277         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
5278         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5279         XtSetArg(args[n], XmNleftPosition, 30);  ++n;
5280         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5281         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
5282         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
5283         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
5284         XtSetArg(args[n], XmNeditable, True);  ++n;
5285         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5286         instance->path_file_name_tf =
5287             XmCreateTextField(parent,
5288                 "dtb_options_path_file_name_tf", args, n);
5289     }
5290     if (instance->path_file_name_tf == NULL)
5291         return -1;
5292
5293     return 0;
5294 }
5295
5296
5297
5298 static int 
5299 dtb_options_mv_menu_lst_create(
5300     DtbOptionsDialogInfo instance,
5301     Widget parent
5302 )
5303 {
5304     Arg args[17];       /* need 12 args (add 5 to be safe) */
5305     int n = 0;
5306     
5307     
5308     if (instance->mv_menu_lst == NULL) {
5309         n = 0;
5310         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
5311         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
5312         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
5313         XtSetArg(args[n], XmNvisibleItemCount, 8);  ++n;
5314         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5315         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
5316         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
5317         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5318         XtSetArg(args[n], XmNleftPosition, 30);  ++n;
5319         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5320         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
5321         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
5322         instance->mv_menu_lst =
5323             XmCreateScrolledList(parent,
5324                 "dtb_options_mv_menu_lst_list", args, n);
5325     }
5326     instance->mv_menu_lst_scrolledwin = XtParent(instance->mv_menu_lst);
5327     if (instance->mv_menu_lst == NULL)
5328         return -1;
5329
5330     return 0;
5331 }
5332
5333
5334
5335 static int 
5336 dtb_options_srt_looking_tf_create(
5337     DtbOptionsDialogInfo instance,
5338     Widget parent
5339 )
5340 {
5341     Arg args[18];       /* need 13 args (add 5 to be safe) */
5342     int n = 0;
5343     
5344     if (instance->srt_looking_tf == NULL) {
5345         n = 0;
5346         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5347         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
5348         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5349         XtSetArg(args[n], XmNleftPosition, 30);  ++n;
5350         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5351         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
5352         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
5353         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
5354         XtSetArg(args[n], XmNeditable, True);  ++n;
5355         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5356         instance->srt_looking_tf =
5357             XmCreateTextField(parent,
5358                 "dtb_options_srt_looking_tf", args, n);
5359     }
5360     if (instance->srt_looking_tf == NULL)
5361         return -1;
5362
5363     return 0;
5364 }
5365
5366
5367
5368 static int 
5369 dtb_options_move_menu_lbl_create(
5370     DtbOptionsDialogInfo instance,
5371     Widget parent
5372 )
5373 {
5374     XmString    label_xmstring = NULL;
5375     
5376     if (instance->move_menu_lbl == NULL) {
5377         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 57, "Move Menu"));
5378         instance->move_menu_lbl =
5379             XtVaCreateWidget("dtb_options_move_menu_lbl",
5380                 xmLabelWidgetClass,
5381                 parent,
5382                 XmNbottomAttachment, XmATTACH_NONE,
5383                 XmNrightOffset, 1,
5384                 XmNrightPosition, 30,
5385                 XmNrightAttachment, XmATTACH_POSITION,
5386                 XmNleftAttachment, XmATTACH_NONE,
5387                 XmNtopOffset, 0,
5388                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5389                 XmNrecomputeSize, True,
5390                 XmNalignment, XmALIGNMENT_CENTER,
5391                 XmNlabelType, XmSTRING,
5392                 XmNlabelString, label_xmstring,
5393                 NULL);
5394         XmStringFree(label_xmstring);
5395         label_xmstring = NULL;
5396     }
5397     if (instance->move_menu_lbl == NULL)
5398         return -1;
5399
5400     return 0;
5401 }
5402
5403
5404
5405 static int 
5406 dtb_options_move_menu_lbl2_create(
5407     DtbOptionsDialogInfo instance,
5408     Widget parent
5409 )
5410 {
5411     XmString    label_xmstring = NULL;
5412     
5413     if (instance->move_menu_lbl2 == NULL) {
5414         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 58, "and Copy To Menu:"));
5415         instance->move_menu_lbl2 =
5416             XtVaCreateWidget("dtb_options_move_menu_lbl2",
5417                 xmLabelWidgetClass,
5418                 parent,
5419                 XmNbottomAttachment, XmATTACH_NONE,
5420                 XmNrightOffset, 0,
5421                 XmNrightPosition, 30,
5422                 XmNrightAttachment, XmATTACH_POSITION,
5423                 XmNleftAttachment, XmATTACH_NONE,
5424                 XmNtopOffset, 1,
5425                 XmNtopAttachment, XmATTACH_WIDGET,
5426                 XmNrecomputeSize, True,
5427                 XmNalignment, XmALIGNMENT_CENTER,
5428                 XmNlabelType, XmSTRING,
5429                 XmNlabelString, label_xmstring,
5430                 NULL);
5431         XmStringFree(label_xmstring);
5432         label_xmstring = NULL;
5433     }
5434     if (instance->move_menu_lbl2 == NULL)
5435         return -1;
5436
5437     return 0;
5438 }
5439
5440
5441
5442 static int 
5443 dtb_options_path_file_lbl_create(
5444     DtbOptionsDialogInfo instance,
5445     Widget parent
5446 )
5447 {
5448     XmString    label_xmstring = NULL;
5449     
5450     if (instance->path_file_lbl == NULL) {
5451         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
5452         instance->path_file_lbl =
5453             XtVaCreateWidget("dtb_options_path_file_lbl",
5454                 xmLabelWidgetClass,
5455                 parent,
5456                 XmNbottomOffset, 0,
5457                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5458                 XmNrightOffset, 0,
5459                 XmNrightPosition, 30,
5460                 XmNrightAttachment, XmATTACH_POSITION,
5461                 XmNleftAttachment, XmATTACH_NONE,
5462                 XmNtopOffset, 0,
5463                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5464                 XmNrecomputeSize, True,
5465                 XmNalignment, XmALIGNMENT_CENTER,
5466                 XmNlabelType, XmSTRING,
5467                 XmNlabelString, label_xmstring,
5468                 NULL);
5469         XmStringFree(label_xmstring);
5470         label_xmstring = NULL;
5471     }
5472     if (instance->path_file_lbl == NULL)
5473         return -1;
5474
5475     return 0;
5476 }
5477
5478
5479
5480 static int 
5481 dtb_options_start_look_lbl_create(
5482     DtbOptionsDialogInfo instance,
5483     Widget parent
5484 )
5485 {
5486     XmString    label_xmstring = NULL;
5487     
5488     if (instance->start_look_lbl == NULL) {
5489         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 55, "Start looking in:"));
5490         instance->start_look_lbl =
5491             XtVaCreateWidget("dtb_options_start_look_lbl",
5492                 xmLabelWidgetClass,
5493                 parent,
5494                 XmNbottomOffset, 0,
5495                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5496                 XmNrightOffset, 0,
5497                 XmNrightPosition, 30,
5498                 XmNrightAttachment, XmATTACH_POSITION,
5499                 XmNleftAttachment, XmATTACH_NONE,
5500                 XmNtopOffset, 0,
5501                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5502                 XmNrecomputeSize, True,
5503                 XmNalignment, XmALIGNMENT_CENTER,
5504                 XmNlabelType, XmSTRING,
5505                 XmNlabelString, label_xmstring,
5506                 NULL);
5507         XmStringFree(label_xmstring);
5508         label_xmstring = NULL;
5509     }
5510     if (instance->start_look_lbl == NULL)
5511         return -1;
5512
5513     return 0;
5514 }
5515
5516
5517
5518 static int 
5519 dtb_options_mm_add_butt_create(
5520     DtbOptionsDialogInfo instance,
5521     Widget parent
5522 )
5523 {
5524     XmString    label_xmstring = NULL;
5525     
5526     if (instance->mm_add_butt == NULL) {
5527         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
5528         instance->mm_add_butt =
5529             XtVaCreateWidget("dtb_options_mm_add_butt",
5530                 xmPushButtonWidgetClass,
5531                 parent,
5532                 XmNbottomAttachment, XmATTACH_NONE,
5533                 XmNrightOffset, 0,
5534                 XmNrightAttachment, XmATTACH_FORM,
5535                 XmNleftOffset, 0,
5536                 XmNleftAttachment, XmATTACH_FORM,
5537                 XmNtopOffset, 0,
5538                 XmNtopAttachment, XmATTACH_FORM,
5539                 XmNrecomputeSize, True,
5540                 XmNalignment, XmALIGNMENT_CENTER,
5541                 XmNlabelType, XmSTRING,
5542                 XmNlabelString, label_xmstring,
5543                 NULL);
5544         XmStringFree(label_xmstring);
5545         label_xmstring = NULL;
5546     }
5547     if (instance->mm_add_butt == NULL)
5548         return -1;
5549
5550     return 0;
5551 }
5552
5553
5554
5555 static int 
5556 dtb_options_mm_delete_butt_create(
5557     DtbOptionsDialogInfo instance,
5558     Widget parent
5559 )
5560 {
5561     XmString    label_xmstring = NULL;
5562     
5563     if (instance->mm_delete_butt == NULL) {
5564         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
5565         instance->mm_delete_butt =
5566             XtVaCreateWidget("dtb_options_mm_delete_butt",
5567                 xmPushButtonWidgetClass,
5568                 parent,
5569                 XmNbottomAttachment, XmATTACH_NONE,
5570                 XmNrightOffset, 0,
5571                 XmNrightAttachment, XmATTACH_FORM,
5572                 XmNleftOffset, 0,
5573                 XmNleftAttachment, XmATTACH_FORM,
5574                 XmNtopOffset, 10,
5575                 XmNtopAttachment, XmATTACH_WIDGET,
5576                 XmNrecomputeSize, True,
5577                 XmNalignment, XmALIGNMENT_CENTER,
5578                 XmNlabelType, XmSTRING,
5579                 XmNlabelString, label_xmstring,
5580                 NULL);
5581         XmStringFree(label_xmstring);
5582         label_xmstring = NULL;
5583     }
5584     if (instance->mm_delete_butt == NULL)
5585         return -1;
5586
5587     return 0;
5588 }
5589
5590
5591
5592 static int 
5593 dtb_options_mm_change_butt_create(
5594     DtbOptionsDialogInfo instance,
5595     Widget parent
5596 )
5597 {
5598     XmString    label_xmstring = NULL;
5599     
5600     if (instance->mm_change_butt == NULL) {
5601         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
5602         instance->mm_change_butt =
5603             XtVaCreateWidget("dtb_options_mm_change_butt",
5604                 xmPushButtonWidgetClass,
5605                 parent,
5606                 XmNbottomAttachment, XmATTACH_NONE,
5607                 XmNrightOffset, 0,
5608                 XmNrightAttachment, XmATTACH_FORM,
5609                 XmNleftOffset, 0,
5610                 XmNleftAttachment, XmATTACH_FORM,
5611                 XmNtopOffset, 10,
5612                 XmNtopAttachment, XmATTACH_WIDGET,
5613                 XmNrecomputeSize, True,
5614                 XmNalignment, XmALIGNMENT_CENTER,
5615                 XmNlabelType, XmSTRING,
5616                 XmNlabelString, label_xmstring,
5617                 NULL);
5618         XmStringFree(label_xmstring);
5619         label_xmstring = NULL;
5620     }
5621     if (instance->mm_change_butt == NULL)
5622         return -1;
5623
5624     return 0;
5625 }
5626
5627
5628
5629 static int 
5630 dtb_options_vacation_lbl_create(
5631     DtbOptionsDialogInfo instance,
5632     Widget parent
5633 )
5634 {
5635     XmString    label_xmstring = NULL;
5636     
5637     if (instance->vacation_lbl == NULL) {
5638         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 66, "Vacation Precedence = junk"));
5639         instance->vacation_lbl =
5640             XtVaCreateWidget("dtb_options_vacation_lbl",
5641                 xmLabelWidgetClass,
5642                 parent,
5643                 XmNbottomAttachment, XmATTACH_NONE,
5644                 XmNrightAttachment, XmATTACH_NONE,
5645                 XmNleftOffset, 14,
5646                 XmNleftAttachment, XmATTACH_FORM,
5647                 XmNtopOffset, 10,
5648                 XmNtopAttachment, XmATTACH_FORM,
5649                 XmNrecomputeSize, True,
5650                 XmNalignment, XmALIGNMENT_CENTER,
5651                 XmNlabelType, XmSTRING,
5652                 XmNlabelString, label_xmstring,
5653                 NULL);
5654         XmStringFree(label_xmstring);
5655         label_xmstring = NULL;
5656     }
5657     if (instance->vacation_lbl == NULL)
5658         return -1;
5659
5660     return 0;
5661 }
5662
5663
5664
5665 static int 
5666 dtb_options_group10_create(
5667     DtbOptionsDialogInfo instance,
5668     Widget parent
5669 )
5670 {
5671     
5672     if (instance->group10 == NULL) {
5673         instance->group10 =
5674             XtVaCreateWidget("dtb_options_group10",
5675                 xmFormWidgetClass,
5676                 parent,
5677                 XmNbottomOffset, 10,
5678                 XmNbottomAttachment, XmATTACH_FORM,
5679                 XmNrightAttachment, XmATTACH_NONE,
5680                 XmNleftOffset, 41,
5681                 XmNleftAttachment, XmATTACH_FORM,
5682                 XmNtopOffset, 6,
5683                 XmNtopAttachment, XmATTACH_WIDGET,
5684                 XmNresizePolicy, XmRESIZE_ANY,
5685                 XmNmarginHeight, 0,
5686                 XmNmarginWidth, 0,
5687                 NULL);
5688     }
5689     if (instance->group10 == NULL)
5690         return -1;
5691
5692     return 0;
5693 }
5694
5695
5696
5697 static int 
5698 dtb_options_vacation_rb_create(
5699     DtbOptionsDialogInfo instance,
5700     Widget parent
5701 )
5702 {
5703     XmString    label_xmstring = NULL;
5704     Arg args[22];       /* need 17 args (add 5 to be safe) */
5705     int n = 0;
5706     Widget      vacation_rb_items[2];
5707     
5708     if (instance->vacation_rb == NULL) {
5709         n = 0;
5710         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5711         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
5712         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5713         XtSetArg(args[n], XmNleftPosition, 20);  ++n;
5714         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5715         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
5716         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
5717         XtSetArg(args[n], XmNradioBehavior, True);  ++n;
5718         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
5719         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
5720         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
5721         XtSetArg(args[n], XmNorientation, XmHORIZONTAL);  ++n;
5722         XtSetArg(args[n], XmNspacing, 0);  ++n;
5723         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
5724         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
5725         instance->vacation_rb =
5726             XmCreateRadioBox(parent,
5727                 "dtb_options_vacation_rb", args, n);
5728     }
5729     if (instance->vacation_rb == NULL)
5730         return -1;
5731
5732     if (instance->vacation_rb_items.On_item == NULL) {
5733         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 64, "On"));
5734         instance->vacation_rb_items.On_item =
5735             XtVaCreateManagedWidget("dtb_options_vacation_rb_on_item",
5736                 xmToggleButtonWidgetClass,
5737                 instance->vacation_rb,
5738                 XmNset, False,
5739                 XmNlabelString, label_xmstring,
5740                 NULL);
5741         XmStringFree(label_xmstring);
5742         label_xmstring = NULL;
5743     }
5744     if (instance->vacation_rb_items.On_item == NULL)
5745         return -1;
5746
5747     if (instance->vacation_rb_items.Off_item == NULL) {
5748         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 65, "Off"));
5749         instance->vacation_rb_items.Off_item =
5750             XtVaCreateManagedWidget("dtb_options_vacation_rb_off_item",
5751                 xmToggleButtonWidgetClass,
5752                 instance->vacation_rb,
5753                 XmNset, True,
5754                 XmNlabelString, label_xmstring,
5755                 NULL);
5756         XmStringFree(label_xmstring);
5757         label_xmstring = NULL;
5758     }
5759     if (instance->vacation_rb_items.Off_item == NULL)
5760         return -1;
5761
5762     return 0;
5763 }
5764
5765
5766
5767 static int 
5768 dtb_options_vacation_msg_tp_create(
5769     DtbOptionsDialogInfo instance,
5770     Widget parent
5771 )
5772 {
5773     Arg args[33];       /* need 28 args (add 5 to be safe) */
5774     int n = 0;
5775     
5776     if (instance->vacation_msg_tp == NULL) {
5777         n = 0;
5778         XtSetArg(args[n], XmNbottomOffset, 0);  ++n;
5779         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM);  ++n;
5780         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
5781         XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM);  ++n;
5782         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5783         XtSetArg(args[n], XmNleftPosition, 20);  ++n;
5784         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5785         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
5786         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
5787         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
5788         XtSetArg(args[n], XmNvisualPolicy, XmVARIABLE);  ++n;
5789         XtSetArg(args[n], XmNscrollingPolicy, XmAPPLICATION_DEFINED);  ++n;
5790         XtSetArg(args[n], XmNwordWrap, True);  ++n;
5791         XtSetArg(args[n], XmNeditMode, XmMULTI_LINE_EDIT);  ++n;
5792         XtSetArg(args[n], XmNscrollHorizontal, False);  ++n;
5793         XtSetArg(args[n], XmNscrollVertical, True);  ++n;
5794         XtSetArg(args[n], XmNrows, 20);  ++n;
5795         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5796         XtSetArg(args[n], XmNeditable, True);  ++n;
5797         instance->vacation_msg_tp =
5798             XmCreateScrolledText(parent,
5799                 "dtb_options_vacation_msg_tp_pane", args, n);
5800     }
5801     instance->vacation_msg_tp_scrolledwin = XtParent(instance->vacation_msg_tp);
5802     return 0;
5803 }
5804
5805
5806
5807 static int 
5808 dtb_options_subject_tf_create(
5809     DtbOptionsDialogInfo instance,
5810     Widget parent
5811 )
5812 {
5813     Arg args[19];       /* need 14 args (add 5 to be safe) */
5814     int n = 0;
5815     
5816     if (instance->subject_tf == NULL) {
5817         n = 0;
5818         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5819         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
5820         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5821         XtSetArg(args[n], XmNleftPosition, 20);  ++n;
5822         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5823         XtSetArg(args[n], XmNtopOffset, 4);  ++n;
5824         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
5825         XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 68, "Out of the office"));  ++n;
5826         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
5827         XtSetArg(args[n], XmNeditable, True);  ++n;
5828         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5829         instance->subject_tf =
5830             XmCreateTextField(parent,
5831                 "dtb_options_subject_tf", args, n);
5832     }
5833     if (instance->subject_tf == NULL)
5834         return -1;
5835
5836     return 0;
5837 }
5838
5839
5840
5841 static int 
5842 dtb_options_msg_list_lbl_create(
5843     DtbOptionsDialogInfo instance,
5844     Widget parent
5845 )
5846 {
5847     XmString    label_xmstring = NULL;
5848     
5849     if (instance->msg_list_lbl == NULL) {
5850         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 69, "Message:"));
5851         instance->msg_list_lbl =
5852             XtVaCreateWidget("dtb_options_msg_list_lbl",
5853                 xmLabelWidgetClass,
5854                 parent,
5855                 XmNbottomAttachment, XmATTACH_NONE,
5856                 XmNrightOffset, 0,
5857                 XmNrightPosition, 20,
5858                 XmNrightAttachment, XmATTACH_POSITION,
5859                 XmNleftAttachment, XmATTACH_NONE,
5860                 XmNtopOffset, 0,
5861                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5862                 XmNrecomputeSize, True,
5863                 XmNalignment, XmALIGNMENT_CENTER,
5864                 XmNlabelType, XmSTRING,
5865                 XmNlabelString, label_xmstring,
5866                 NULL);
5867         XmStringFree(label_xmstring);
5868         label_xmstring = NULL;
5869     }
5870     if (instance->msg_list_lbl == NULL)
5871         return -1;
5872
5873     return 0;
5874 }
5875
5876
5877
5878 static int 
5879 dtb_options_subject_lbl_create(
5880     DtbOptionsDialogInfo instance,
5881     Widget parent
5882 )
5883 {
5884     XmString    label_xmstring = NULL;
5885     
5886     if (instance->subject_lbl == NULL) {
5887         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 67, "Subject:"));
5888         instance->subject_lbl =
5889             XtVaCreateWidget("dtb_options_subject_lbl",
5890                 xmLabelWidgetClass,
5891                 parent,
5892                 XmNbottomOffset, 0,
5893                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5894                 XmNrightOffset, 0,
5895                 XmNrightPosition, 20,
5896                 XmNrightAttachment, XmATTACH_POSITION,
5897                 XmNleftAttachment, XmATTACH_NONE,
5898                 XmNtopOffset, 0,
5899                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5900                 XmNrecomputeSize, True,
5901                 XmNalignment, XmALIGNMENT_CENTER,
5902                 XmNlabelType, XmSTRING,
5903                 XmNlabelString, label_xmstring,
5904                 NULL);
5905         XmStringFree(label_xmstring);
5906         label_xmstring = NULL;
5907     }
5908     if (instance->subject_lbl == NULL)
5909         return -1;
5910
5911     return 0;
5912 }
5913
5914
5915
5916 static int 
5917 dtb_options_vacation_rb_lbl_create(
5918     DtbOptionsDialogInfo instance,
5919     Widget parent
5920 )
5921 {
5922     XmString    label_xmstring = NULL;
5923     
5924     if (instance->vacation_rb_lbl == NULL) {
5925         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 63, "Vacation:"));
5926         instance->vacation_rb_lbl =
5927             XtVaCreateWidget("dtb_options_vacation_rb_lbl",
5928                 xmLabelWidgetClass,
5929                 parent,
5930                 XmNbottomOffset, 0,
5931                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5932                 XmNrightOffset, 0,
5933                 XmNrightPosition, 20,
5934                 XmNrightAttachment, XmATTACH_POSITION,
5935                 XmNleftAttachment, XmATTACH_NONE,
5936                 XmNtopOffset, 0,
5937                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5938                 XmNrecomputeSize, True,
5939                 XmNalignment, XmALIGNMENT_CENTER,
5940                 XmNlabelType, XmSTRING,
5941                 XmNlabelString, label_xmstring,
5942                 NULL);
5943         XmStringFree(label_xmstring);
5944         label_xmstring = NULL;
5945     }
5946     if (instance->vacation_rb_lbl == NULL)
5947         return -1;
5948
5949     return 0;
5950 }
5951
5952
5953
5954 static int 
5955 dtb_options_group13_create(
5956     DtbOptionsDialogInfo instance,
5957     Widget parent
5958 )
5959 {
5960     
5961     if (instance->group13 == NULL) {
5962         instance->group13 =
5963             XtVaCreateWidget("dtb_options_group13",
5964                 xmFormWidgetClass,
5965                 parent,
5966                 XmNbottomOffset, 10,
5967                 XmNbottomAttachment, XmATTACH_FORM,
5968                 XmNrightOffset, 10,
5969                 XmNrightAttachment, XmATTACH_FORM,
5970                 XmNleftOffset, 0,
5971                 XmNleftAttachment, XmATTACH_FORM,
5972                 XmNtopOffset, 10,
5973                 XmNtopAttachment, XmATTACH_FORM,
5974                 XmNresizePolicy, XmRESIZE_ANY,
5975                 XmNmarginHeight, 0,
5976                 XmNmarginWidth, 0,
5977                 NULL);
5978     }
5979     if (instance->group13 == NULL)
5980         return -1;
5981
5982     return 0;
5983 }
5984
5985
5986
5987 static int 
5988 dtb_options_group11_create(
5989     DtbOptionsDialogInfo instance,
5990     Widget parent
5991 )
5992 {
5993     
5994     if (instance->group11 == NULL) {
5995         instance->group11 =
5996             XtVaCreateWidget("dtb_options_group11",
5997                 xmFormWidgetClass,
5998                 parent,
5999                 XmNbottomAttachment, XmATTACH_NONE,
6000                 XmNrightAttachment, XmATTACH_NONE,
6001                 XmNleftOffset, 10,
6002                 XmNleftAttachment, XmATTACH_WIDGET,
6003                 XmNtopOffset, 0,
6004                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6005                 XmNresizePolicy, XmRESIZE_ANY,
6006                 XmNmarginHeight, 0,
6007                 XmNmarginWidth, 0,
6008                 NULL);
6009     }
6010     if (instance->group11 == NULL)
6011         return -1;
6012
6013     return 0;
6014 }
6015
6016
6017
6018 static int 
6019 dtb_options_menu_label_create(
6020     DtbOptionsDialogInfo instance,
6021     Widget parent
6022 )
6023 {
6024     Arg args[18];       /* need 13 args (add 5 to be safe) */
6025     int n = 0;
6026     
6027     if (instance->menu_label == NULL) {
6028         n = 0;
6029         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6030         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
6031         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6032         XtSetArg(args[n], XmNleftPosition, 23);  ++n;
6033         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6034         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
6035         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
6036         XtSetArg(args[n], XmNmaxLength, 256);  ++n;
6037         XtSetArg(args[n], XmNeditable, True);  ++n;
6038         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
6039         instance->menu_label =
6040             XmCreateTextField(parent,
6041                 "dtb_options_menu_label", args, n);
6042     }
6043     if (instance->menu_label == NULL)
6044         return -1;
6045
6046     return 0;
6047 }
6048
6049
6050
6051 static int 
6052 dtb_options_path_filename_label_create(
6053     DtbOptionsDialogInfo instance,
6054     Widget parent
6055 )
6056 {
6057     Arg args[18];       /* need 13 args (add 5 to be safe) */
6058     int n = 0;
6059     
6060     if (instance->path_filename_label == NULL) {
6061         n = 0;
6062         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6063         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
6064         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6065         XtSetArg(args[n], XmNleftPosition, 23);  ++n;
6066         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6067         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
6068         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
6069         XtSetArg(args[n], XmNmaxLength, 256);  ++n;
6070         XtSetArg(args[n], XmNeditable, True);  ++n;
6071         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
6072         instance->path_filename_label =
6073             XmCreateTextField(parent,
6074                 "dtb_options_path_filename_label", args, n);
6075     }
6076     if (instance->path_filename_label == NULL)
6077         return -1;
6078
6079     return 0;
6080 }
6081
6082
6083
6084 static int 
6085 dtb_options_templates_list_create(
6086     DtbOptionsDialogInfo instance,
6087     Widget parent
6088 )
6089 {
6090     Arg args[17];       /* need 12 args (add 5 to be safe) */
6091     int n = 0;
6092     
6093     
6094     if (instance->templates_list == NULL) {
6095         n = 0;
6096         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
6097         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
6098         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
6099         XtSetArg(args[n], XmNvisibleItemCount, 18);  ++n;
6100         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6101         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
6102         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
6103         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6104         XtSetArg(args[n], XmNleftPosition, 23);  ++n;
6105         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6106         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
6107         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
6108         instance->templates_list =
6109             XmCreateScrolledList(parent,
6110                 "dtb_options_templates_list_list", args, n);
6111     }
6112     instance->templates_list_scrolledwin = XtParent(instance->templates_list);
6113     if (instance->templates_list == NULL)
6114         return -1;
6115
6116     return 0;
6117 }
6118
6119
6120
6121 static int 
6122 dtb_options_templates_list_lbl_create(
6123     DtbOptionsDialogInfo instance,
6124     Widget parent
6125 )
6126 {
6127     XmString    label_xmstring = NULL;
6128     
6129     if (instance->templates_list_lbl == NULL) {
6130         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 72, "Templates:"));
6131         instance->templates_list_lbl =
6132             XtVaCreateWidget("dtb_options_templates_list_lbl",
6133                 xmLabelWidgetClass,
6134                 parent,
6135                 XmNbottomAttachment, XmATTACH_NONE,
6136                 XmNrightOffset, 0,
6137                 XmNrightPosition, 23,
6138                 XmNrightAttachment, XmATTACH_POSITION,
6139                 XmNleftAttachment, XmATTACH_NONE,
6140                 XmNtopOffset, 0,
6141                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6142                 XmNrecomputeSize, True,
6143                 XmNalignment, XmALIGNMENT_CENTER,
6144                 XmNlabelType, XmSTRING,
6145                 XmNlabelString, label_xmstring,
6146                 NULL);
6147         XmStringFree(label_xmstring);
6148         label_xmstring = NULL;
6149     }
6150     if (instance->templates_list_lbl == NULL)
6151         return -1;
6152
6153     return 0;
6154 }
6155
6156
6157
6158 static int 
6159 dtb_options_menu_label_lbl_create(
6160     DtbOptionsDialogInfo instance,
6161     Widget parent
6162 )
6163 {
6164     XmString    label_xmstring = NULL;
6165     
6166     if (instance->menu_label_lbl == NULL) {
6167         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 71, "Menu Label:"));
6168         instance->menu_label_lbl =
6169             XtVaCreateWidget("dtb_options_menu_label_lbl",
6170                 xmLabelWidgetClass,
6171                 parent,
6172                 XmNbottomOffset, 0,
6173                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6174                 XmNrightOffset, 0,
6175                 XmNrightPosition, 23,
6176                 XmNrightAttachment, XmATTACH_POSITION,
6177                 XmNleftAttachment, XmATTACH_NONE,
6178                 XmNtopOffset, 0,
6179                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6180                 XmNrecomputeSize, True,
6181                 XmNalignment, XmALIGNMENT_CENTER,
6182                 XmNlabelType, XmSTRING,
6183                 XmNlabelString, label_xmstring,
6184                 NULL);
6185         XmStringFree(label_xmstring);
6186         label_xmstring = NULL;
6187     }
6188     if (instance->menu_label_lbl == NULL)
6189         return -1;
6190
6191     return 0;
6192 }
6193
6194
6195
6196 static int 
6197 dtb_options_path_filename_label_lbl_create(
6198     DtbOptionsDialogInfo instance,
6199     Widget parent
6200 )
6201 {
6202     XmString    label_xmstring = NULL;
6203     
6204     if (instance->path_filename_label_lbl == NULL) {
6205         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
6206         instance->path_filename_label_lbl =
6207             XtVaCreateWidget("dtb_options_path_filename_label_lbl",
6208                 xmLabelWidgetClass,
6209                 parent,
6210                 XmNbottomOffset, 0,
6211                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6212                 XmNrightOffset, 0,
6213                 XmNrightPosition, 23,
6214                 XmNrightAttachment, XmATTACH_POSITION,
6215                 XmNleftAttachment, XmATTACH_NONE,
6216                 XmNtopOffset, 0,
6217                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6218                 XmNrecomputeSize, True,
6219                 XmNalignment, XmALIGNMENT_CENTER,
6220                 XmNlabelType, XmSTRING,
6221                 XmNlabelString, label_xmstring,
6222                 NULL);
6223         XmStringFree(label_xmstring);
6224         label_xmstring = NULL;
6225     }
6226     if (instance->path_filename_label_lbl == NULL)
6227         return -1;
6228
6229     return 0;
6230 }
6231
6232
6233
6234 static int 
6235 dtb_options_tem_add_but_create(
6236     DtbOptionsDialogInfo instance,
6237     Widget parent
6238 )
6239 {
6240     XmString    label_xmstring = NULL;
6241     
6242     if (instance->tem_add_but == NULL) {
6243         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
6244         instance->tem_add_but =
6245             XtVaCreateWidget("dtb_options_tem_add_but",
6246                 xmPushButtonWidgetClass,
6247                 parent,
6248                 XmNbottomAttachment, XmATTACH_NONE,
6249                 XmNrightOffset, 0,
6250                 XmNrightAttachment, XmATTACH_FORM,
6251                 XmNleftOffset, 0,
6252                 XmNleftAttachment, XmATTACH_FORM,
6253                 XmNtopOffset, 0,
6254                 XmNtopAttachment, XmATTACH_FORM,
6255                 XmNrecomputeSize, True,
6256                 XmNalignment, XmALIGNMENT_CENTER,
6257                 XmNlabelType, XmSTRING,
6258                 XmNlabelString, label_xmstring,
6259                 NULL);
6260         XmStringFree(label_xmstring);
6261         label_xmstring = NULL;
6262     }
6263     if (instance->tem_add_but == NULL)
6264         return -1;
6265
6266     return 0;
6267 }
6268
6269
6270
6271 static int 
6272 dtb_options_tem_del_but_create(
6273     DtbOptionsDialogInfo instance,
6274     Widget parent
6275 )
6276 {
6277     XmString    label_xmstring = NULL;
6278     
6279     if (instance->tem_del_but == NULL) {
6280         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
6281         instance->tem_del_but =
6282             XtVaCreateWidget("dtb_options_tem_del_but",
6283                 xmPushButtonWidgetClass,
6284                 parent,
6285                 XmNbottomAttachment, XmATTACH_NONE,
6286                 XmNrightOffset, 0,
6287                 XmNrightAttachment, XmATTACH_FORM,
6288                 XmNleftOffset, 0,
6289                 XmNleftAttachment, XmATTACH_FORM,
6290                 XmNtopOffset, 10,
6291                 XmNtopAttachment, XmATTACH_WIDGET,
6292                 XmNrecomputeSize, True,
6293                 XmNalignment, XmALIGNMENT_CENTER,
6294                 XmNlabelType, XmSTRING,
6295                 XmNlabelString, label_xmstring,
6296                 NULL);
6297         XmStringFree(label_xmstring);
6298         label_xmstring = NULL;
6299     }
6300     if (instance->tem_del_but == NULL)
6301         return -1;
6302
6303     return 0;
6304 }
6305
6306
6307
6308 static int 
6309 dtb_options_tem_change_but_create(
6310     DtbOptionsDialogInfo instance,
6311     Widget parent
6312 )
6313 {
6314     XmString    label_xmstring = NULL;
6315     
6316     if (instance->tem_change_but == NULL) {
6317         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
6318         instance->tem_change_but =
6319             XtVaCreateWidget("dtb_options_tem_change_but",
6320                 xmPushButtonWidgetClass,
6321                 parent,
6322                 XmNbottomAttachment, XmATTACH_NONE,
6323                 XmNrightOffset, 0,
6324                 XmNrightAttachment, XmATTACH_FORM,
6325                 XmNleftOffset, 0,
6326                 XmNleftAttachment, XmATTACH_FORM,
6327                 XmNtopOffset, 10,
6328                 XmNtopAttachment, XmATTACH_WIDGET,
6329                 XmNrecomputeSize, True,
6330                 XmNalignment, XmALIGNMENT_CENTER,
6331                 XmNlabelType, XmSTRING,
6332                 XmNlabelString, label_xmstring,
6333                 NULL);
6334         XmStringFree(label_xmstring);
6335         label_xmstring = NULL;
6336     }
6337     if (instance->tem_change_but == NULL)
6338         return -1;
6339
6340     return 0;
6341 }
6342
6343
6344
6345 static int 
6346 dtb_options_group14_create(
6347     DtbOptionsDialogInfo instance,
6348     Widget parent
6349 )
6350 {
6351     
6352     if (instance->group14 == NULL) {
6353         instance->group14 =
6354             XtVaCreateWidget("dtb_options_group14",
6355                 xmFormWidgetClass,
6356                 parent,
6357                 XmNbottomOffset, 10,
6358                 XmNbottomAttachment, XmATTACH_FORM,
6359                 XmNrightOffset, 10,
6360                 XmNrightAttachment, XmATTACH_FORM,
6361                 XmNleftOffset, 44,
6362                 XmNleftAttachment, XmATTACH_FORM,
6363                 XmNtopOffset, 10,
6364                 XmNtopAttachment, XmATTACH_FORM,
6365                 XmNresizePolicy, XmRESIZE_ANY,
6366                 XmNmarginHeight, 0,
6367                 XmNmarginWidth, 0,
6368                 NULL);
6369     }
6370     if (instance->group14 == NULL)
6371         return -1;
6372
6373     return 0;
6374 }
6375
6376
6377
6378 static int 
6379 dtb_options_group15_create(
6380     DtbOptionsDialogInfo instance,
6381     Widget parent
6382 )
6383 {
6384     
6385     if (instance->group15 == NULL) {
6386         instance->group15 =
6387             XtVaCreateWidget("dtb_options_group15",
6388                 xmFormWidgetClass,
6389                 parent,
6390                 XmNbottomAttachment, XmATTACH_NONE,
6391                 XmNrightAttachment, XmATTACH_NONE,
6392                 XmNleftOffset, 10,
6393                 XmNleftAttachment, XmATTACH_WIDGET,
6394                 XmNtopOffset, 0,
6395                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6396                 XmNresizePolicy, XmRESIZE_ANY,
6397                 XmNmarginHeight, 0,
6398                 XmNmarginWidth, 0,
6399                 NULL);
6400     }
6401     if (instance->group15 == NULL)
6402         return -1;
6403
6404     return 0;
6405 }
6406
6407
6408
6409 static int 
6410 dtb_options_alias_tf_create(
6411     DtbOptionsDialogInfo instance,
6412     Widget parent
6413 )
6414 {
6415     Arg args[18];       /* need 13 args (add 5 to be safe) */
6416     int n = 0;
6417     
6418     if (instance->alias_tf == NULL) {
6419         n = 0;
6420         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6421         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
6422         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6423         XtSetArg(args[n], XmNleftPosition, 15);  ++n;
6424         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6425         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
6426         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
6427         XtSetArg(args[n], XmNmaxLength, 256);  ++n;
6428         XtSetArg(args[n], XmNeditable, True);  ++n;
6429         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
6430         instance->alias_tf =
6431             XmCreateTextField(parent,
6432                 "dtb_options_alias_tf", args, n);
6433     }
6434     if (instance->alias_tf == NULL)
6435         return -1;
6436
6437     return 0;
6438 }
6439
6440
6441
6442 static int 
6443 dtb_options_addresses_tf_create(
6444     DtbOptionsDialogInfo instance,
6445     Widget parent
6446 )
6447 {
6448     Arg args[18];       /* need 13 args (add 5 to be safe) */
6449     int n = 0;
6450     
6451     if (instance->addresses_tf == NULL) {
6452         n = 0;
6453         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6454         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
6455         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6456         XtSetArg(args[n], XmNleftPosition, 15);  ++n;
6457         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6458         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
6459         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
6460         XtSetArg(args[n], XmNmaxLength, 256);  ++n;
6461         XtSetArg(args[n], XmNeditable, True);  ++n;
6462         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
6463         instance->addresses_tf =
6464             XmCreateTextField(parent,
6465                 "dtb_options_addresses_tf", args, n);
6466     }
6467     if (instance->addresses_tf == NULL)
6468         return -1;
6469
6470     return 0;
6471 }
6472
6473
6474
6475 static int 
6476 dtb_options_alias_list_create(
6477     DtbOptionsDialogInfo instance,
6478     Widget parent
6479 )
6480 {
6481     Arg args[17];       /* need 12 args (add 5 to be safe) */
6482     int n = 0;
6483     
6484     
6485     if (instance->alias_list == NULL) {
6486         n = 0;
6487         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
6488         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
6489         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
6490         XtSetArg(args[n], XmNvisibleItemCount, 19);  ++n;
6491         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6492         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
6493         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
6494         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6495         XtSetArg(args[n], XmNleftPosition, 15);  ++n;
6496         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6497         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
6498         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
6499         instance->alias_list =
6500             XmCreateScrolledList(parent,
6501                 "dtb_options_alias_list_list", args, n);
6502     }
6503     instance->alias_list_scrolledwin = XtParent(instance->alias_list);
6504     if (instance->alias_list == NULL)
6505         return -1;
6506
6507     return 0;
6508 }
6509
6510
6511
6512 static int 
6513 dtb_options_alias_list_lbl_create(
6514     DtbOptionsDialogInfo instance,
6515     Widget parent
6516 )
6517 {
6518     XmString    label_xmstring = NULL;
6519     
6520     if (instance->alias_list_lbl == NULL) {
6521         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 75, "Aliases:"));
6522         instance->alias_list_lbl =
6523             XtVaCreateWidget("dtb_options_alias_list_lbl",
6524                 xmLabelWidgetClass,
6525                 parent,
6526                 XmNbottomAttachment, XmATTACH_NONE,
6527                 XmNrightOffset, 0,
6528                 XmNrightPosition, 15,
6529                 XmNrightAttachment, XmATTACH_POSITION,
6530                 XmNleftAttachment, XmATTACH_NONE,
6531                 XmNtopOffset, 0,
6532                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6533                 XmNrecomputeSize, True,
6534                 XmNalignment, XmALIGNMENT_CENTER,
6535                 XmNlabelType, XmSTRING,
6536                 XmNlabelString, label_xmstring,
6537                 NULL);
6538         XmStringFree(label_xmstring);
6539         label_xmstring = NULL;
6540     }
6541     if (instance->alias_list_lbl == NULL)
6542         return -1;
6543
6544     return 0;
6545 }
6546
6547
6548
6549 static int 
6550 dtb_options_alias_tf_lbl_create(
6551     DtbOptionsDialogInfo instance,
6552     Widget parent
6553 )
6554 {
6555     XmString    label_xmstring = NULL;
6556     
6557     if (instance->alias_tf_lbl == NULL) {
6558         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 73, "Alias:"));
6559         instance->alias_tf_lbl =
6560             XtVaCreateWidget("dtb_options_alias_tf_lbl",
6561                 xmLabelWidgetClass,
6562                 parent,
6563                 XmNbottomOffset, 0,
6564                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6565                 XmNrightOffset, 0,
6566                 XmNrightPosition, 15,
6567                 XmNrightAttachment, XmATTACH_POSITION,
6568                 XmNleftAttachment, XmATTACH_NONE,
6569                 XmNtopOffset, 0,
6570                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6571                 XmNrecomputeSize, True,
6572                 XmNalignment, XmALIGNMENT_CENTER,
6573                 XmNlabelType, XmSTRING,
6574                 XmNlabelString, label_xmstring,
6575                 NULL);
6576         XmStringFree(label_xmstring);
6577         label_xmstring = NULL;
6578     }
6579     if (instance->alias_tf_lbl == NULL)
6580         return -1;
6581
6582     return 0;
6583 }
6584
6585
6586
6587 static int 
6588 dtb_options_address_tf_lbl_create(
6589     DtbOptionsDialogInfo instance,
6590     Widget parent
6591 )
6592 {
6593     XmString    label_xmstring = NULL;
6594     
6595     if (instance->address_tf_lbl == NULL) {
6596         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 74, "Addresses:"));
6597         instance->address_tf_lbl =
6598             XtVaCreateWidget("dtb_options_address_tf_lbl",
6599                 xmLabelWidgetClass,
6600                 parent,
6601                 XmNbottomOffset, 0,
6602                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6603                 XmNrightOffset, 0,
6604                 XmNrightPosition, 15,
6605                 XmNrightAttachment, XmATTACH_POSITION,
6606                 XmNleftAttachment, XmATTACH_NONE,
6607                 XmNtopOffset, 0,
6608                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6609                 XmNrecomputeSize, True,
6610                 XmNalignment, XmALIGNMENT_CENTER,
6611                 XmNlabelType, XmSTRING,
6612                 XmNlabelString, label_xmstring,
6613                 NULL);
6614         XmStringFree(label_xmstring);
6615         label_xmstring = NULL;
6616     }
6617     if (instance->address_tf_lbl == NULL)
6618         return -1;
6619
6620     return 0;
6621 }
6622
6623
6624
6625 static int 
6626 dtb_options_alias_add_but_create(
6627     DtbOptionsDialogInfo instance,
6628     Widget parent
6629 )
6630 {
6631     XmString    label_xmstring = NULL;
6632     
6633     if (instance->alias_add_but == NULL) {
6634         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
6635         instance->alias_add_but =
6636             XtVaCreateWidget("dtb_options_alias_add_but",
6637                 xmPushButtonWidgetClass,
6638                 parent,
6639                 XmNbottomAttachment, XmATTACH_NONE,
6640                 XmNrightOffset, 0,
6641                 XmNrightAttachment, XmATTACH_FORM,
6642                 XmNleftOffset, 0,
6643                 XmNleftAttachment, XmATTACH_FORM,
6644                 XmNtopOffset, 0,
6645                 XmNtopAttachment, XmATTACH_FORM,
6646                 XmNrecomputeSize, True,
6647                 XmNalignment, XmALIGNMENT_CENTER,
6648                 XmNlabelType, XmSTRING,
6649                 XmNlabelString, label_xmstring,
6650                 NULL);
6651         XmStringFree(label_xmstring);
6652         label_xmstring = NULL;
6653     }
6654     if (instance->alias_add_but == NULL)
6655         return -1;
6656
6657     return 0;
6658 }
6659
6660
6661
6662 static int 
6663 dtb_options_alias_delete_but_create(
6664     DtbOptionsDialogInfo instance,
6665     Widget parent
6666 )
6667 {
6668     XmString    label_xmstring = NULL;
6669     
6670     if (instance->alias_delete_but == NULL) {
6671         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
6672         instance->alias_delete_but =
6673             XtVaCreateWidget("dtb_options_alias_delete_but",
6674                 xmPushButtonWidgetClass,
6675                 parent,
6676                 XmNbottomAttachment, XmATTACH_NONE,
6677                 XmNrightOffset, 0,
6678                 XmNrightAttachment, XmATTACH_FORM,
6679                 XmNleftOffset, 0,
6680                 XmNleftAttachment, XmATTACH_FORM,
6681                 XmNtopOffset, 10,
6682                 XmNtopAttachment, XmATTACH_WIDGET,
6683                 XmNrecomputeSize, True,
6684                 XmNalignment, XmALIGNMENT_CENTER,
6685                 XmNlabelType, XmSTRING,
6686                 XmNlabelString, label_xmstring,
6687                 NULL);
6688         XmStringFree(label_xmstring);
6689         label_xmstring = NULL;
6690     }
6691     if (instance->alias_delete_but == NULL)
6692         return -1;
6693
6694     return 0;
6695 }
6696
6697
6698
6699 static int 
6700 dtb_options_al_change_but_create(
6701     DtbOptionsDialogInfo instance,
6702     Widget parent
6703 )
6704 {
6705     XmString    label_xmstring = NULL;
6706     
6707     if (instance->al_change_but == NULL) {
6708         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
6709         instance->al_change_but =
6710             XtVaCreateWidget("dtb_options_al_change_but",
6711                 xmPushButtonWidgetClass,
6712                 parent,
6713                 XmNbottomAttachment, XmATTACH_NONE,
6714                 XmNrightOffset, 0,
6715                 XmNrightAttachment, XmATTACH_FORM,
6716                 XmNleftOffset, 0,
6717                 XmNleftAttachment, XmATTACH_FORM,
6718                 XmNtopOffset, 10,
6719                 XmNtopAttachment, XmATTACH_WIDGET,
6720                 XmNrecomputeSize, True,
6721                 XmNalignment, XmALIGNMENT_CENTER,
6722                 XmNlabelType, XmSTRING,
6723                 XmNlabelString, label_xmstring,
6724                 NULL);
6725         XmStringFree(label_xmstring);
6726         label_xmstring = NULL;
6727     }
6728     if (instance->al_change_but == NULL)
6729         return -1;
6730
6731     return 0;
6732 }
6733
6734
6735
6736 static int 
6737 dtb_options_update_mbox_scale_create(
6738     DtbOptionsDialogInfo instance,
6739     Widget parent
6740 )
6741 {
6742     
6743     if (instance->update_mbox_scale == NULL) {
6744         instance->update_mbox_scale =
6745             XtVaCreateWidget("dtb_options_update_mbox_scale",
6746                 xmScaleWidgetClass,
6747                 parent,
6748                 XmNbottomAttachment, XmATTACH_NONE,
6749                 XmNrightAttachment, XmATTACH_NONE,
6750                 XmNleftOffset, 117,
6751                 XmNleftAttachment, XmATTACH_FORM,
6752                 XmNtopOffset, 2,
6753                 XmNtopAttachment, XmATTACH_WIDGET,
6754                 XmNshowValue, False,
6755                 XmNvalue, 50,
6756                 XmNdecimalPoints, 0,
6757                 XmNscaleMultiple, 1,
6758                 XmNscaleWidth, 310,
6759                 XmNmaximum, 100,
6760                 XmNminimum, 0,
6761                 XmNprocessingDirection, XmMAX_ON_RIGHT,
6762                 XmNorientation, XmHORIZONTAL,
6763                 "slidingMode", False,
6764                 NULL);
6765     }
6766     if (instance->update_mbox_scale == NULL)
6767         return -1;
6768
6769     return 0;
6770 }
6771
6772
6773
6774 static int 
6775 dtb_options_update_mailb_lbl_create(
6776     DtbOptionsDialogInfo instance,
6777     Widget parent
6778 )
6779 {
6780     XmString    label_xmstring = NULL;
6781     
6782     if (instance->update_mailb_lbl == NULL) {
6783         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 76, "Update mailbox state:"));
6784         instance->update_mailb_lbl =
6785             XtVaCreateWidget("dtb_options_update_mailb_lbl",
6786                 xmLabelWidgetClass,
6787                 parent,
6788                 XmNbottomAttachment, XmATTACH_NONE,
6789                 XmNrightAttachment, XmATTACH_NONE,
6790                 XmNleftOffset, 22,
6791                 XmNleftAttachment, XmATTACH_FORM,
6792                 XmNtopOffset, 10,
6793                 XmNtopAttachment, XmATTACH_FORM,
6794                 XmNrecomputeSize, True,
6795                 XmNalignment, XmALIGNMENT_CENTER,
6796                 XmNlabelType, XmSTRING,
6797                 XmNlabelString, label_xmstring,
6798                 NULL);
6799         XmStringFree(label_xmstring);
6800         label_xmstring = NULL;
6801     }
6802     if (instance->update_mailb_lbl == NULL)
6803         return -1;
6804
6805     return 0;
6806 }
6807
6808
6809
6810 static int 
6811 dtb_options_frequently_lbl_create(
6812     DtbOptionsDialogInfo instance,
6813     Widget parent
6814 )
6815 {
6816     XmString    label_xmstring = NULL;
6817     
6818     if (instance->frequently_lbl == NULL) {
6819         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 77, "Frequently"));
6820         instance->frequently_lbl =
6821             XtVaCreateWidget("dtb_options_frequently_lbl",
6822                 xmLabelWidgetClass,
6823                 parent,
6824                 XmNbottomAttachment, XmATTACH_NONE,
6825                 XmNrightAttachment, XmATTACH_NONE,
6826                 XmNleftOffset, -38,
6827                 XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
6828                 XmNtopOffset, -2,
6829                 XmNtopAttachment, XmATTACH_WIDGET,
6830                 XmNrecomputeSize, True,
6831                 XmNalignment, XmALIGNMENT_CENTER,
6832                 XmNlabelType, XmSTRING,
6833                 XmNlabelString, label_xmstring,
6834                 NULL);
6835         XmStringFree(label_xmstring);
6836         label_xmstring = NULL;
6837     }
6838     if (instance->frequently_lbl == NULL)
6839         return -1;
6840
6841     return 0;
6842 }
6843
6844
6845
6846 static int 
6847 dtb_options_seldom_lbl_create(
6848     DtbOptionsDialogInfo instance,
6849     Widget parent
6850 )
6851 {
6852     XmString    label_xmstring = NULL;
6853     
6854     if (instance->seldom_lbl == NULL) {
6855         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 78, "Seldom"));
6856         instance->seldom_lbl =
6857             XtVaCreateWidget("dtb_options_seldom_lbl",
6858                 xmLabelWidgetClass,
6859                 parent,
6860                 XmNbottomAttachment, XmATTACH_NONE,
6861                 XmNrightOffset, -23,
6862                 XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET,
6863                 XmNleftAttachment, XmATTACH_NONE,
6864                 XmNtopOffset, -2,
6865                 XmNtopAttachment, XmATTACH_WIDGET,
6866                 XmNrecomputeSize, True,
6867                 XmNalignment, XmALIGNMENT_CENTER,
6868                 XmNlabelType, XmSTRING,
6869                 XmNlabelString, label_xmstring,
6870                 NULL);
6871         XmStringFree(label_xmstring);
6872         label_xmstring = NULL;
6873     }
6874     if (instance->seldom_lbl == NULL)
6875         return -1;
6876
6877     return 0;
6878 }
6879
6880
6881
6882 static int 
6883 dtb_options_separator11_create(
6884     DtbOptionsDialogInfo instance,
6885     Widget parent
6886 )
6887 {
6888     
6889     if (instance->separator11 == NULL) {
6890         instance->separator11 =
6891             XtVaCreateWidget("dtb_options_separator11",
6892                 xmSeparatorWidgetClass,
6893                 parent,
6894                 XmNbottomAttachment, XmATTACH_NONE,
6895                 XmNrightOffset, 0,
6896                 XmNrightAttachment, XmATTACH_FORM,
6897                 XmNleftOffset, 0,
6898                 XmNleftAttachment, XmATTACH_FORM,
6899                 XmNtopOffset, 8,
6900                 XmNtopAttachment, XmATTACH_WIDGET,
6901                 XmNseparatorType, XmSHADOW_ETCHED_IN,
6902                 XmNorientation, XmHORIZONTAL,
6903                 NULL);
6904     }
6905     if (instance->separator11 == NULL)
6906         return -1;
6907
6908     return 0;
6909 }
6910
6911
6912
6913 static int 
6914 dtb_options_adv_def_cb_create(
6915     DtbOptionsDialogInfo instance,
6916     Widget parent
6917 )
6918 {
6919     XmString    label_xmstring = NULL;
6920     Arg args[23];       /* need 18 args (add 5 to be safe) */
6921     int n = 0;
6922     Widget      adv_def_cb_choice_items[6];
6923     
6924     if (instance->adv_def_cb_rowcolumn == NULL) {
6925         instance->adv_def_cb_rowcolumn =
6926             XtVaCreateWidget("dtb_options_adv_def_cb",
6927                 xmRowColumnWidgetClass,
6928                 parent,
6929                 XmNbottomAttachment, XmATTACH_NONE,
6930                 XmNrightAttachment, XmATTACH_NONE,
6931                 XmNleftOffset, 24,
6932                 XmNleftAttachment, XmATTACH_FORM,
6933                 XmNtopOffset, 8,
6934                 XmNtopAttachment, XmATTACH_WIDGET,
6935                 XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM,
6936                 XmNspacing, 0,
6937                 XmNpacking, XmPACK_TIGHT,
6938                 XmNisHomogeneous, False,
6939                 XmNadjustLast, True,
6940                 XmNmarginWidth, 0,
6941                 XmNmarginHeight, 0,
6942                 XmNentryAlignment, XmALIGNMENT_END,
6943                 XmNorientation, XmHORIZONTAL,
6944                 NULL);
6945     }
6946     if (instance->adv_def_cb_rowcolumn == NULL)
6947         return -1;
6948
6949     if (instance->adv_def_cb_label == NULL) {
6950         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 79, "Defaults:"));
6951         instance->adv_def_cb_label =
6952             XtVaCreateWidget("dtb_options_adv_def_cb_label",
6953                 xmLabelWidgetClass,
6954                 instance->adv_def_cb_rowcolumn,
6955                 XmNmarginHeight, 8,
6956                 XmNlabelType, XmSTRING,
6957                 XmNlabelString, label_xmstring,
6958                 NULL);
6959         XmStringFree(label_xmstring);
6960         label_xmstring = NULL;
6961     }
6962     if (instance->adv_def_cb_label == NULL)
6963         return -1;
6964
6965     if (instance->adv_def_cb == NULL) {
6966         n = 0;
6967         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
6968         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
6969         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
6970         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
6971         XtSetArg(args[n], XmNspacing, 0);  ++n;
6972         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
6973         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
6974         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
6975         instance->adv_def_cb =
6976             XmCreateRadioBox(instance->adv_def_cb_rowcolumn,
6977                 "dtb_options_adv_def_cb_choice", args, n);
6978     }
6979     if (instance->adv_def_cb == NULL)
6980         return -1;
6981
6982     if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL) {
6983         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 80, "Show confirmation notices"));
6984         instance->adv_def_cb_items.Show_confirmation_notices_item =
6985             XtVaCreateManagedWidget("dtb_options_adv_def_cb_show_confirmation_notices_item",
6986                 xmToggleButtonWidgetClass,
6987                 instance->adv_def_cb,
6988                 XmNset, True,
6989                 XmNlabelString, label_xmstring,
6990                 NULL);
6991         XmStringFree(label_xmstring);
6992         label_xmstring = NULL;
6993     }
6994     if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL)
6995         return -1;
6996
6997     if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL) {
6998         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 81, "Use strict MIME character encoding"));
6999         instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item =
7000             XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_strict_m_i_m_e_character_encoding_item",
7001                 xmToggleButtonWidgetClass,
7002                 instance->adv_def_cb,
7003                 XmNset, False,
7004                 XmNlabelString, label_xmstring,
7005                 NULL);
7006         XmStringFree(label_xmstring);
7007         label_xmstring = NULL;
7008     }
7009     if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL)
7010         return -1;
7011
7012     if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL) {
7013         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 82, "Use network aware mail file locking"));
7014         instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item =
7015             XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_network_aware_mail_file_locking_item",
7016                 xmToggleButtonWidgetClass,
7017                 instance->adv_def_cb,
7018                 XmNset, False,
7019                 XmNlabelString, label_xmstring,
7020                 NULL);
7021         XmStringFree(label_xmstring);
7022         label_xmstring = NULL;
7023     }
7024     if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL)
7025         return -1;
7026
7027     if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL) {
7028         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 83, "Ignore host name in address (allnet)"));
7029         instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item =
7030             XtVaCreateManagedWidget("dtb_options_adv_def_cb_ignore_host_name_in_address_allnet_item",
7031                 xmToggleButtonWidgetClass,
7032                 instance->adv_def_cb,
7033                 XmNset, False,
7034                 XmNlabelString, label_xmstring,
7035                 NULL);
7036         XmStringFree(label_xmstring);
7037         label_xmstring = NULL;
7038     }
7039     if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL)
7040         return -1;
7041
7042     if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL) {
7043         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 84, "Include me when I \"Reply to All\" (metoo)"));
7044         instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item =
7045             XtVaCreateManagedWidget("dtb_options_adv_def_cb_include_me_when_i_reply_to_all_metoo_item",
7046                 xmToggleButtonWidgetClass,
7047                 instance->adv_def_cb,
7048                 XmNset, False,
7049                 XmNlabelString, label_xmstring,
7050                 NULL);
7051         XmStringFree(label_xmstring);
7052         label_xmstring = NULL;
7053     }
7054     if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL)
7055         return -1;
7056
7057     if (instance->adv_def_cb_items.Use_local_name_username_item == NULL) {
7058         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 85, "Use local name: username ="));
7059         instance->adv_def_cb_items.Use_local_name_username_item =
7060             XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_local_name_username_item",
7061                 xmToggleButtonWidgetClass,
7062                 instance->adv_def_cb,
7063                 XmNset, False,
7064                 XmNlabelString, label_xmstring,
7065                 NULL);
7066         XmStringFree(label_xmstring);
7067         label_xmstring = NULL;
7068     }
7069     if (instance->adv_def_cb_items.Use_local_name_username_item == NULL)
7070         return -1;
7071
7072     return 0;
7073 }
7074
7075
7076
7077 static int 
7078 dtb_options_group12_create(
7079     DtbOptionsDialogInfo instance,
7080     Widget parent
7081 )
7082 {
7083     
7084     if (instance->group12 == NULL) {
7085         instance->group12 =
7086             XtVaCreateWidget("dtb_options_group12",
7087                 xmFormWidgetClass,
7088                 parent,
7089                 XmNbottomOffset, 10,
7090                 XmNbottomAttachment, XmATTACH_FORM,
7091                 XmNrightAttachment, XmATTACH_NONE,
7092                 XmNleftOffset, 119,
7093                 XmNleftAttachment, XmATTACH_FORM,
7094                 XmNtopOffset, 6,
7095                 XmNtopAttachment, XmATTACH_WIDGET,
7096                 XmNresizePolicy, XmRESIZE_ANY,
7097                 XmNmarginHeight, 0,
7098                 XmNmarginWidth, 0,
7099                 NULL);
7100     }
7101     if (instance->group12 == NULL)
7102         return -1;
7103
7104     return 0;
7105 }
7106
7107
7108
7109 static int 
7110 dtb_options_group16_create(
7111     DtbOptionsDialogInfo instance,
7112     Widget parent
7113 )
7114 {
7115     
7116     if (instance->group16 == NULL) {
7117         instance->group16 =
7118             XtVaCreateWidget("dtb_options_group16",
7119                 xmFormWidgetClass,
7120                 parent,
7121                 XmNbottomAttachment, XmATTACH_NONE,
7122                 XmNrightAttachment, XmATTACH_NONE,
7123                 XmNleftOffset, 10,
7124                 XmNleftAttachment, XmATTACH_WIDGET,
7125                 XmNtopOffset, 0,
7126                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
7127                 XmNresizePolicy, XmRESIZE_ANY,
7128                 XmNmarginHeight, 0,
7129                 XmNmarginWidth, 0,
7130                 NULL);
7131     }
7132     if (instance->group16 == NULL)
7133         return -1;
7134
7135     return 0;
7136 }
7137
7138
7139
7140 static int 
7141 dtb_options_local_name_tf_create(
7142     DtbOptionsDialogInfo instance,
7143     Widget parent
7144 )
7145 {
7146     Arg args[17];       /* need 12 args (add 5 to be safe) */
7147     int n = 0;
7148     
7149     if (instance->local_name_tf == NULL) {
7150         n = 0;
7151         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
7152         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
7153         XtSetArg(args[n], XmNleftOffset, 0);  ++n;
7154         XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM);  ++n;
7155         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
7156         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
7157         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
7158         XtSetArg(args[n], XmNeditable, True);  ++n;
7159         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
7160         instance->local_name_tf =
7161             XmCreateTextField(parent,
7162                 "dtb_options_local_name_tf", args, n);
7163     }
7164     if (instance->local_name_tf == NULL)
7165         return -1;
7166
7167     return 0;
7168 }
7169
7170
7171
7172 static int 
7173 dtb_options_local_name_list_create(
7174     DtbOptionsDialogInfo instance,
7175     Widget parent
7176 )
7177 {
7178     Arg args[16];       /* need 11 args (add 5 to be safe) */
7179     int n = 0;
7180     
7181     
7182     if (instance->local_name_list == NULL) {
7183         n = 0;
7184         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
7185         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
7186         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
7187         XtSetArg(args[n], XmNvisibleItemCount, 8);  ++n;
7188         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
7189         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
7190         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
7191         XtSetArg(args[n], XmNleftOffset, 0);  ++n;
7192         XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM);  ++n;
7193         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
7194         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
7195         instance->local_name_list =
7196             XmCreateScrolledList(parent,
7197                 "dtb_options_local_name_list_list", args, n);
7198     }
7199     instance->local_name_list_scrolledwin = XtParent(instance->local_name_list);
7200     if (instance->local_name_list == NULL)
7201         return -1;
7202
7203     return 0;
7204 }
7205
7206
7207
7208 static int 
7209 dtb_options_local_name_add_but_create(
7210     DtbOptionsDialogInfo instance,
7211     Widget parent
7212 )
7213 {
7214     XmString    label_xmstring = NULL;
7215     
7216     if (instance->local_name_add_but == NULL) {
7217         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
7218         instance->local_name_add_but =
7219             XtVaCreateWidget("dtb_options_local_name_add_but",
7220                 xmPushButtonWidgetClass,
7221                 parent,
7222                 XmNbottomAttachment, XmATTACH_NONE,
7223                 XmNrightOffset, 0,
7224                 XmNrightAttachment, XmATTACH_FORM,
7225                 XmNleftOffset, 0,
7226                 XmNleftAttachment, XmATTACH_FORM,
7227                 XmNtopOffset, 0,
7228                 XmNtopAttachment, XmATTACH_FORM,
7229                 XmNrecomputeSize, True,
7230                 XmNalignment, XmALIGNMENT_CENTER,
7231                 XmNlabelType, XmSTRING,
7232                 XmNlabelString, label_xmstring,
7233                 NULL);
7234         XmStringFree(label_xmstring);
7235         label_xmstring = NULL;
7236     }
7237     if (instance->local_name_add_but == NULL)
7238         return -1;
7239
7240     return 0;
7241 }
7242
7243
7244
7245 static int 
7246 dtb_options_local_name_del_but_create(
7247     DtbOptionsDialogInfo instance,
7248     Widget parent
7249 )
7250 {
7251     XmString    label_xmstring = NULL;
7252     
7253     if (instance->local_name_del_but == NULL) {
7254         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
7255         instance->local_name_del_but =
7256             XtVaCreateWidget("dtb_options_local_name_del_but",
7257                 xmPushButtonWidgetClass,
7258                 parent,
7259                 XmNbottomAttachment, XmATTACH_NONE,
7260                 XmNrightOffset, 0,
7261                 XmNrightAttachment, XmATTACH_FORM,
7262                 XmNleftOffset, 0,
7263                 XmNleftAttachment, XmATTACH_FORM,
7264                 XmNtopOffset, 10,
7265                 XmNtopAttachment, XmATTACH_WIDGET,
7266                 XmNrecomputeSize, True,
7267                 XmNalignment, XmALIGNMENT_CENTER,
7268                 XmNlabelType, XmSTRING,
7269                 XmNlabelString, label_xmstring,
7270                 NULL);
7271         XmStringFree(label_xmstring);
7272         label_xmstring = NULL;
7273     }
7274     if (instance->local_name_del_but == NULL)
7275         return -1;
7276
7277     return 0;
7278 }
7279
7280
7281
7282 static int 
7283 dtb_options_local_name_chg_but_create(
7284     DtbOptionsDialogInfo instance,
7285     Widget parent
7286 )
7287 {
7288     XmString    label_xmstring = NULL;
7289     
7290     if (instance->local_name_chg_but == NULL) {
7291         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
7292         instance->local_name_chg_but =
7293             XtVaCreateWidget("dtb_options_local_name_chg_but",
7294                 xmPushButtonWidgetClass,
7295                 parent,
7296                 XmNbottomAttachment, XmATTACH_NONE,
7297                 XmNrightOffset, 0,
7298                 XmNrightAttachment, XmATTACH_FORM,
7299                 XmNleftOffset, 0,
7300                 XmNleftAttachment, XmATTACH_FORM,
7301                 XmNtopOffset, 10,
7302                 XmNtopAttachment, XmATTACH_WIDGET,
7303                 XmNrecomputeSize, True,
7304                 XmNalignment, XmALIGNMENT_CENTER,
7305                 XmNlabelType, XmSTRING,
7306                 XmNlabelString, label_xmstring,
7307                 NULL);
7308         XmStringFree(label_xmstring);
7309         label_xmstring = NULL;
7310     }
7311     if (instance->local_name_chg_but == NULL)
7312         return -1;
7313
7314     return 0;
7315 }
7316
7317
7318
7319 static int 
7320 dtb_options_ok_button_create(
7321     DtbOptionsDialogInfo instance,
7322     Widget parent
7323 )
7324 {
7325     XmString    label_xmstring = NULL;
7326     
7327     if (instance->ok_button == NULL) {
7328         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 86, "OK"));
7329         instance->ok_button =
7330             XtVaCreateWidget("dtb_options_ok_button",
7331                 xmPushButtonWidgetClass,
7332                 parent,
7333                 XmNbottomAttachment, XmATTACH_NONE,
7334                 XmNrightOffset, 0,
7335                 XmNrightPosition, 19,
7336                 XmNrightAttachment, XmATTACH_POSITION,
7337                 XmNleftOffset, 0,
7338                 XmNleftPosition, 2,
7339                 XmNleftAttachment, XmATTACH_POSITION,
7340                 XmNtopOffset, 13,
7341                 XmNtopAttachment, XmATTACH_FORM,
7342                 XmNrecomputeSize, True,
7343                 XmNalignment, XmALIGNMENT_CENTER,
7344                 XmNlabelType, XmSTRING,
7345                 XmNdefaultButtonShadowThickness, 1,
7346                 XmNlabelString, label_xmstring,
7347                 NULL);
7348         XmStringFree(label_xmstring);
7349         label_xmstring = NULL;
7350     }
7351     if (instance->ok_button == NULL)
7352         return -1;
7353
7354     return 0;
7355 }
7356
7357
7358
7359 static int 
7360 dtb_options_reset_button_create(
7361     DtbOptionsDialogInfo instance,
7362     Widget parent
7363 )
7364 {
7365     XmString    label_xmstring = NULL;
7366     
7367     if (instance->reset_button == NULL) {
7368         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 87, "Reset"));
7369         instance->reset_button =
7370             XtVaCreateWidget("dtb_options_reset_button",
7371                 xmPushButtonWidgetClass,
7372                 parent,
7373                 XmNbottomAttachment, XmATTACH_NONE,
7374                 XmNrightOffset, 0,
7375                 XmNrightPosition, 59,
7376                 XmNrightAttachment, XmATTACH_POSITION,
7377                 XmNleftOffset, 0,
7378                 XmNleftPosition, 41,
7379                 XmNleftAttachment, XmATTACH_POSITION,
7380                 XmNtopOffset, 13,
7381                 XmNtopAttachment, XmATTACH_FORM,
7382                 XmNrecomputeSize, True,
7383                 XmNalignment, XmALIGNMENT_CENTER,
7384                 XmNlabelType, XmSTRING,
7385                 XmNdefaultButtonShadowThickness, 1,
7386                 XmNlabelString, label_xmstring,
7387                 NULL);
7388         XmStringFree(label_xmstring);
7389         label_xmstring = NULL;
7390     }
7391     if (instance->reset_button == NULL)
7392         return -1;
7393
7394     return 0;
7395 }
7396
7397
7398
7399 static int 
7400 dtb_options_cancel_button_create(
7401     DtbOptionsDialogInfo instance,
7402     Widget parent
7403 )
7404 {
7405     XmString    label_xmstring = NULL;
7406     
7407     if (instance->cancel_button == NULL) {
7408         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 88, "Cancel"));
7409         instance->cancel_button =
7410             XtVaCreateWidget("dtb_options_cancel_button",
7411                 xmPushButtonWidgetClass,
7412                 parent,
7413                 XmNbottomAttachment, XmATTACH_NONE,
7414                 XmNrightOffset, 0,
7415                 XmNrightPosition, 79,
7416                 XmNrightAttachment, XmATTACH_POSITION,
7417                 XmNleftOffset, 0,
7418                 XmNleftPosition, 61,
7419                 XmNleftAttachment, XmATTACH_POSITION,
7420                 XmNtopOffset, 13,
7421                 XmNtopAttachment, XmATTACH_FORM,
7422                 XmNrecomputeSize, True,
7423                 XmNalignment, XmALIGNMENT_CENTER,
7424                 XmNlabelType, XmSTRING,
7425                 XmNdefaultButtonShadowThickness, 1,
7426                 XmNlabelString, label_xmstring,
7427                 NULL);
7428         XmStringFree(label_xmstring);
7429         label_xmstring = NULL;
7430     }
7431     if (instance->cancel_button == NULL)
7432         return -1;
7433
7434     return 0;
7435 }
7436
7437
7438
7439 static int 
7440 dtb_options_separator_create(
7441     DtbOptionsDialogInfo instance,
7442     Widget parent
7443 )
7444 {
7445     
7446     if (instance->separator == NULL) {
7447         instance->separator =
7448             XtVaCreateWidget("dtb_options_separator",
7449                 xmSeparatorWidgetClass,
7450                 parent,
7451                 XmNbottomAttachment, XmATTACH_NONE,
7452                 XmNrightOffset, 0,
7453                 XmNrightAttachment, XmATTACH_FORM,
7454                 XmNleftOffset, 0,
7455                 XmNleftAttachment, XmATTACH_FORM,
7456                 XmNtopOffset, 0,
7457                 XmNtopAttachment, XmATTACH_FORM,
7458                 XmNseparatorType, XmSHADOW_ETCHED_IN,
7459                 XmNorientation, XmHORIZONTAL,
7460                 NULL);
7461     }
7462     if (instance->separator == NULL)
7463         return -1;
7464
7465     return 0;
7466 }
7467
7468
7469
7470 static int 
7471 dtb_options_apply_button_create(
7472     DtbOptionsDialogInfo instance,
7473     Widget parent
7474 )
7475 {
7476     XmString    label_xmstring = NULL;
7477     
7478     if (instance->apply_button == NULL) {
7479         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 89, "Apply"));
7480         instance->apply_button =
7481             XtVaCreateWidget("dtb_options_apply_button",
7482                 xmPushButtonWidgetClass,
7483                 parent,
7484                 XmNbottomAttachment, XmATTACH_NONE,
7485                 XmNrightOffset, 0,
7486                 XmNrightPosition, 39,
7487                 XmNrightAttachment, XmATTACH_POSITION,
7488                 XmNleftOffset, 0,
7489                 XmNleftPosition, 21,
7490                 XmNleftAttachment, XmATTACH_POSITION,
7491                 XmNtopOffset, 13,
7492                 XmNtopAttachment, XmATTACH_FORM,
7493                 XmNrecomputeSize, True,
7494                 XmNalignment, XmALIGNMENT_CENTER,
7495                 XmNlabelType, XmSTRING,
7496                 XmNdefaultButtonShadowThickness, 1,
7497                 XmNlabelString, label_xmstring,
7498                 NULL);
7499         XmStringFree(label_xmstring);
7500         label_xmstring = NULL;
7501     }
7502     if (instance->apply_button == NULL)
7503         return -1;
7504
7505     return 0;
7506 }
7507
7508
7509
7510 static int 
7511 dtb_options_help_button_create(
7512     DtbOptionsDialogInfo instance,
7513     Widget parent
7514 )
7515 {
7516     XmString    label_xmstring = NULL;
7517     
7518     if (instance->help_button == NULL) {
7519         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 90, "Help"));
7520         instance->help_button =
7521             XtVaCreateWidget("dtb_options_help_button",
7522                 xmPushButtonWidgetClass,
7523                 parent,
7524                 XmNbottomAttachment, XmATTACH_NONE,
7525                 XmNrightOffset, 0,
7526                 XmNrightPosition, 98,
7527                 XmNrightAttachment, XmATTACH_POSITION,
7528                 XmNleftOffset, 0,
7529                 XmNleftPosition, 81,
7530                 XmNleftAttachment, XmATTACH_POSITION,
7531                 XmNtopOffset, 13,
7532                 XmNtopAttachment, XmATTACH_FORM,
7533                 XmNrecomputeSize, True,
7534                 XmNalignment, XmALIGNMENT_CENTER,
7535                 XmNlabelType, XmSTRING,
7536                 XmNdefaultButtonShadowThickness, 1,
7537                 XmNlabelString, label_xmstring,
7538                 NULL);
7539         XmStringFree(label_xmstring);
7540         label_xmstring = NULL;
7541     }
7542     if (instance->help_button == NULL)
7543         return -1;
7544
7545     return 0;
7546 }
7547