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 separator.
This commit is contained in:
parent
8c4375d435
commit
808ce58e3d
1 changed files with 15 additions and 14 deletions
|
@ -184,7 +184,8 @@ separator_prop_init(
|
|||
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
|
||||
PropSepSettingsRec *pss = &(prop_sep_settings_rec[type]);
|
||||
Widget item[14];
|
||||
int item_val[14];
|
||||
XtArgVal item_val[14];
|
||||
XtPointer item_ptr[14];
|
||||
int n;
|
||||
|
||||
if (type == AB_PROP_REVOLVING)
|
||||
|
@ -254,36 +255,36 @@ separator_prop_init(
|
|||
/* Orientation */
|
||||
n = 0;
|
||||
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_val[n] = AB_ORIENT_VERTICAL; n++;
|
||||
item_ptr[n] = AB_ORIENT_VERTICAL; n++;
|
||||
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);
|
||||
|
||||
/* Line Style */
|
||||
n = 0;
|
||||
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_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_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_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_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_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_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_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_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,
|
||||
cgen->linestyle_opmenu, cgen->linestyle_opmenu_menu,
|
||||
n, item, (XtPointer*)item_val,
|
||||
n, item, item_ptr,
|
||||
cgen->linestyle_cb);
|
||||
|
||||
/* Geometry */
|
||||
|
|
Loading…
Reference in a new issue