1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 11:42:21 +00:00

dtappbuilder: fix issues of property settings for term pane.

This commit is contained in:
Liang Chang 2021-02-17 20:33:08 +08:00 committed by Jon Trulson
parent 8d6262ca3e
commit f203067211

View file

@ -194,7 +194,8 @@ termp_prop_init(
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
PropTermpSettingsRec *pts = &(prop_termp_settings_rec[type]);
Widget item[10];
int item_val[10];
XtArgVal item_val[10];
XtPointer item_ptr[10];
int n;
if (type == AB_PROP_REVOLVING)
@ -264,28 +265,28 @@ termp_prop_init(
/* Scrolling */
n = 0;
item[n] = cgen->scroll_rbox_items.Never_item;
item_val[n] = AB_SCROLLBAR_NEVER; n++;
item_ptr[n] = AB_SCROLLBAR_NEVER; n++;
item[n] = cgen->scroll_rbox_items.Always_item;
item_val[n] = AB_SCROLLBAR_ALWAYS; n++;
item_ptr[n] = AB_SCROLLBAR_ALWAYS; n++;
prop_radiobox_init(&(pts->scrolling), cgen->scroll_rbox_label,
cgen->scroll_rbox, n, item, (XtPointer*)item_val,
cgen->scroll_rbox, n, item, item_ptr,
cgen->scroll_cb);
/* Border Frame */
n = 0;
item[n] = cgen->bframe_opmenu_items.None_item;
item_val[n] = AB_LINE_NONE; n++;
item_ptr[n] = AB_LINE_NONE; n++;
item[n] = cgen->bframe_opmenu_items.Shadow_Out_item;
item_val[n] = AB_LINE_SHADOW_OUT; n++;
item_ptr[n] = AB_LINE_SHADOW_OUT; n++;
item[n] = cgen->bframe_opmenu_items.Shadow_In_item;
item_val[n] = AB_LINE_SHADOW_IN; n++;
item_ptr[n] = AB_LINE_SHADOW_IN; n++;
item[n] = cgen->bframe_opmenu_items.Etched_Out_item;
item_val[n] = AB_LINE_ETCHED_OUT; n++;
item_ptr[n] = AB_LINE_ETCHED_OUT; n++;
item[n] = cgen->bframe_opmenu_items.Etched_In_item;
item_val[n] = AB_LINE_ETCHED_IN; n++;
item_ptr[n] = AB_LINE_ETCHED_IN; n++;
prop_options_init(&(pts->frame), cgen->bframe_opmenu_label,
cgen->bframe_opmenu, cgen->bframe_opmenu_menu,
n, item, (XtPointer*)item_val,
n, item, item_ptr,
cgen->bframe_cb);
/* Menu Title */
prop_field_init(&(pts->menu_title), cgen->menutitle_field_label,
@ -319,13 +320,13 @@ termp_prop_init(
n = 0;
item[n] = cgen->size_opmenu_items.Characters_item;
item_val[n] = SIZE_IN_CHARS_KEY; n++;
item_ptr[n] = SIZE_IN_CHARS_KEY; n++;
item[n] = cgen->size_opmenu_items.Pixels_item;
item_val[n] = SIZE_IN_PIXELS_KEY; n++;
item_ptr[n] = SIZE_IN_PIXELS_KEY; n++;
prop_options_init(&(pts->size_metric), cgen->size_opmenu_label,
cgen->size_opmenu,
cgen->size_opmenu_menu,
n, item, (XtPointer*)item_val,
n, item, item_ptr,
cgen->size_cb);
/* Initial State */