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 label.
This commit is contained in:
parent
c99824a47a
commit
f266789703
1 changed files with 12 additions and 11 deletions
|
@ -184,7 +184,8 @@ label_prop_init(
|
||||||
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
|
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
|
||||||
PropLabelSettingsRec *pls = &(prop_label_settings_rec[type]);
|
PropLabelSettingsRec *pls = &(prop_label_settings_rec[type]);
|
||||||
Widget item[6];
|
Widget item[6];
|
||||||
int item_val[6];
|
XtArgVal item_val[6];
|
||||||
|
XtPointer item_ptr[6];
|
||||||
int n;
|
int n;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -256,12 +257,12 @@ label_prop_init(
|
||||||
/* Label Type */
|
/* Label Type */
|
||||||
n = 0;
|
n = 0;
|
||||||
item[n] = cgen->labeltype_rbox_items.String_item;
|
item[n] = cgen->labeltype_rbox_items.String_item;
|
||||||
item_val[n] = AB_LABEL_STRING; n++;
|
item_ptr[n] = AB_LABEL_STRING; n++;
|
||||||
item[n] = cgen->labeltype_rbox_items.Graphic_item;
|
item[n] = cgen->labeltype_rbox_items.Graphic_item;
|
||||||
item_val[n] = AB_LABEL_GLYPH; n++;
|
item_ptr[n] = AB_LABEL_GLYPH; n++;
|
||||||
prop_options_init(&(pls->label_type), cgen->labeltype_rbox_label,
|
prop_options_init(&(pls->label_type), cgen->labeltype_rbox_label,
|
||||||
cgen->labeltype_rbox, cgen->labeltype_rbox_menu,
|
cgen->labeltype_rbox, cgen->labeltype_rbox_menu,
|
||||||
n, item, (XtPointer*)item_val,
|
n, item, item_ptr,
|
||||||
cgen->labeltype_cb);
|
cgen->labeltype_cb);
|
||||||
|
|
||||||
/* Label */
|
/* Label */
|
||||||
|
@ -273,24 +274,24 @@ label_prop_init(
|
||||||
/* Label Align */
|
/* Label Align */
|
||||||
n = 0;
|
n = 0;
|
||||||
item[n] = cgen->labelalign_opmenu_items.Left_item;
|
item[n] = cgen->labelalign_opmenu_items.Left_item;
|
||||||
item_val[n] = AB_ALIGN_LEFT; n++;
|
item_ptr[n] = AB_ALIGN_LEFT; n++;
|
||||||
item[n] = cgen->labelalign_opmenu_items.Centered_item;
|
item[n] = cgen->labelalign_opmenu_items.Centered_item;
|
||||||
item_val[n] = AB_ALIGN_CENTER; n++;
|
item_ptr[n] = AB_ALIGN_CENTER; n++;
|
||||||
item[n] = cgen->labelalign_opmenu_items.Right_item;
|
item[n] = cgen->labelalign_opmenu_items.Right_item;
|
||||||
item_val[n] = AB_ALIGN_RIGHT; n++;
|
item_ptr[n] = AB_ALIGN_RIGHT; n++;
|
||||||
prop_options_init(&(pls->label_align), cgen->labelalign_opmenu_label,
|
prop_options_init(&(pls->label_align), cgen->labelalign_opmenu_label,
|
||||||
cgen->labelalign_opmenu, cgen->labelalign_opmenu_menu,
|
cgen->labelalign_opmenu, cgen->labelalign_opmenu_menu,
|
||||||
n, item, (XtPointer*)item_val,
|
n, item, item_ptr,
|
||||||
cgen->labelalign_cb);
|
cgen->labelalign_cb);
|
||||||
|
|
||||||
/* Size Policy */
|
/* Size Policy */
|
||||||
n = 0;
|
n = 0;
|
||||||
item[n] = cgen->szpolicy_rbox_items.Size_of_Label_item;
|
item[n] = cgen->szpolicy_rbox_items.Size_of_Label_item;
|
||||||
item_val[n] = SIZE_OF_CONTENTS_KEY; n++;
|
item_ptr[n] = SIZE_OF_CONTENTS_KEY; n++;
|
||||||
item[n] = cgen->szpolicy_rbox_items.Fixed_item;
|
item[n] = cgen->szpolicy_rbox_items.Fixed_item;
|
||||||
item_val[n] = SIZE_FIXED_KEY; n++;
|
item_ptr[n] = SIZE_FIXED_KEY; n++;
|
||||||
prop_radiobox_init(&(pls->size_policy), cgen->szpolicy_rbox_label,
|
prop_radiobox_init(&(pls->size_policy), cgen->szpolicy_rbox_label,
|
||||||
cgen->szpolicy_rbox, n, item, (XtPointer*)item_val,
|
cgen->szpolicy_rbox, n, item, item_ptr,
|
||||||
cgen->szpolicy_cb);
|
cgen->szpolicy_cb);
|
||||||
|
|
||||||
for(i=0; i < n; i++)
|
for(i=0; i < n; i++)
|
||||||
|
|
Loading…
Reference in a new issue