mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtappbuilder: fix issues of property settings for control pane.
This commit is contained in:
parent
feb4d1b495
commit
0d92904b06
1 changed files with 11 additions and 10 deletions
|
@ -210,7 +210,8 @@ cpanel_prop_init(
|
|||
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
|
||||
PropCPanelSettingsRec *pcs = &(prop_cpanel_settings_rec[type]);
|
||||
Widget item[10];
|
||||
int item_val[10];
|
||||
XtArgVal item_val[10];
|
||||
XtPointer item_ptr[10];
|
||||
int i, n;
|
||||
|
||||
if (type == AB_PROP_REVOLVING)
|
||||
|
@ -279,18 +280,18 @@ cpanel_prop_init(
|
|||
/* Border Frame Setting */
|
||||
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(&(pcs->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 */
|
||||
|
@ -307,11 +308,11 @@ cpanel_prop_init(
|
|||
/* Size Policy */
|
||||
n = 0;
|
||||
item[n] = cgen->size_policy_rbox_items.Fit_Contents_item;
|
||||
item_val[n] = SIZE_OF_CONTENTS_KEY; n++;
|
||||
item_ptr[n] = SIZE_OF_CONTENTS_KEY; n++;
|
||||
item[n] = cgen->size_policy_rbox_items.Fixed_item;
|
||||
item_val[n] = SIZE_FIXED_KEY; n++;
|
||||
item_ptr[n] = SIZE_FIXED_KEY; n++;
|
||||
prop_radiobox_init(&(pcs->size_policy), cgen->size_policy_rbox_label,
|
||||
cgen->size_policy_rbox, n, item, (XtPointer*)item_val,
|
||||
cgen->size_policy_rbox, n, item, item_ptr,
|
||||
cgen->size_policy_cb);
|
||||
|
||||
for(i=0; i < n; i++)
|
||||
|
|
Loading…
Reference in a new issue