1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

dtappbuilder: fix issues of property settings for separator.

This commit is contained in:
Liang Chang 2021-02-17 20:09:19 +08:00 committed by Jon Trulson
parent 8c4375d435
commit 808ce58e3d

View file

@ -184,7 +184,8 @@ separator_prop_init(
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog); DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
PropSepSettingsRec *pss = &(prop_sep_settings_rec[type]); PropSepSettingsRec *pss = &(prop_sep_settings_rec[type]);
Widget item[14]; Widget item[14];
int item_val[14]; XtArgVal item_val[14];
XtPointer item_ptr[14];
int n; int n;
if (type == AB_PROP_REVOLVING) if (type == AB_PROP_REVOLVING)
@ -254,36 +255,36 @@ separator_prop_init(
/* Orientation */ /* Orientation */
n = 0; n = 0;
item[n] = cgen->orient_rbox_items.Horizontal_item; item[n] = cgen->orient_rbox_items.Horizontal_item;
item_val[n] = AB_ORIENT_HORIZONTAL; n++; item_ptr[n] = AB_ORIENT_HORIZONTAL; n++;
item[n] = cgen->orient_rbox_items.Vertical_item; item[n] = cgen->orient_rbox_items.Vertical_item;
item_val[n] = AB_ORIENT_VERTICAL; n++; item_ptr[n] = AB_ORIENT_VERTICAL; n++;
prop_radiobox_init(&(pss->orient), cgen->orient_rbox_label, prop_radiobox_init(&(pss->orient), cgen->orient_rbox_label,
cgen->orient_rbox, n, item, (XtPointer*)item_val, cgen->orient_rbox, n, item, item_ptr,
cgen->orient_cb); cgen->orient_cb);
/* Line Style */ /* Line Style */
n = 0; n = 0;
item[n] = cgen->linestyle_opmenu_items.None_item; item[n] = cgen->linestyle_opmenu_items.None_item;
item_val[n] = AB_LINE_NONE; n++; item_ptr[n] = AB_LINE_NONE; n++;
item[n] = cgen->linestyle_opmenu_items.Etched_In_item; item[n] = cgen->linestyle_opmenu_items.Etched_In_item;
item_val[n] = AB_LINE_ETCHED_IN; n++; item_ptr[n] = AB_LINE_ETCHED_IN; n++;
item[n] = cgen->linestyle_opmenu_items.Etched_Out_item; item[n] = cgen->linestyle_opmenu_items.Etched_Out_item;
item_val[n] = AB_LINE_ETCHED_OUT; n++; item_ptr[n] = AB_LINE_ETCHED_OUT; n++;
item[n] = cgen->linestyle_opmenu_items.Etched_In_Dash_item; item[n] = cgen->linestyle_opmenu_items.Etched_In_Dash_item;
item_val[n] = AB_LINE_ETCHED_IN_DASH; n++; item_ptr[n] = AB_LINE_ETCHED_IN_DASH; n++;
item[n] = cgen->linestyle_opmenu_items.Etched_Out_Dash_item; item[n] = cgen->linestyle_opmenu_items.Etched_Out_Dash_item;
item_val[n] = AB_LINE_ETCHED_OUT_DASH; n++; item_ptr[n] = AB_LINE_ETCHED_OUT_DASH; n++;
item[n] = cgen->linestyle_opmenu_items.Single_Line_item; item[n] = cgen->linestyle_opmenu_items.Single_Line_item;
item_val[n] = AB_LINE_SINGLE_LINE; n++; item_ptr[n] = AB_LINE_SINGLE_LINE; n++;
item[n] = cgen->linestyle_opmenu_items.Double_Line_item; item[n] = cgen->linestyle_opmenu_items.Double_Line_item;
item_val[n] = AB_LINE_DOUBLE_LINE; n++; item_ptr[n] = AB_LINE_DOUBLE_LINE; n++;
item[n] = cgen->linestyle_opmenu_items.Single_Dashed_Line_item; item[n] = cgen->linestyle_opmenu_items.Single_Dashed_Line_item;
item_val[n] = AB_LINE_SINGLE_DASHED_LINE; n++; item_ptr[n] = AB_LINE_SINGLE_DASHED_LINE; n++;
item[n] = cgen->linestyle_opmenu_items.Double_Dashed_Line_item; item[n] = cgen->linestyle_opmenu_items.Double_Dashed_Line_item;
item_val[n] = AB_LINE_DOUBLE_DASHED_LINE; n++; item_ptr[n] = AB_LINE_DOUBLE_DASHED_LINE; n++;
prop_options_init(&(pss->line_style), cgen->linestyle_opmenu_label, prop_options_init(&(pss->line_style), cgen->linestyle_opmenu_label,
cgen->linestyle_opmenu, cgen->linestyle_opmenu_menu, cgen->linestyle_opmenu, cgen->linestyle_opmenu_menu,
n, item, (XtPointer*)item_val, n, item, item_ptr,
cgen->linestyle_cb); cgen->linestyle_cb);
/* Geometry */ /* Geometry */