mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtappbuilder: fix issues of property settings for menubar.
This commit is contained in:
parent
523c440536
commit
fbb7e865a7
1 changed files with 6 additions and 5 deletions
|
@ -211,9 +211,10 @@ menubar_prop_init(
|
||||||
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
|
DtbRevolvPropDialogInfo rpd = &(dtb_revolv_prop_dialog);
|
||||||
PropMenubarSettingsRec *pms = &(prop_menubar_settings_rec[type]);
|
PropMenubarSettingsRec *pms = &(prop_menubar_settings_rec[type]);
|
||||||
Widget item[6];
|
Widget item[6];
|
||||||
int item_val[6];
|
XtArgVal item_val[6];
|
||||||
|
XtPointer item_ptr[6];
|
||||||
Widget item2[6];
|
Widget item2[6];
|
||||||
int item2_val[6];
|
XtArgVal item2_val[6];
|
||||||
int i, n, j;
|
int i, n, j;
|
||||||
|
|
||||||
if (type == AB_PROP_REVOLVING)
|
if (type == AB_PROP_REVOLVING)
|
||||||
|
@ -312,12 +313,12 @@ menubar_prop_init(
|
||||||
cgen->itemlabel_field, cgen->itemlist_cb);
|
cgen->itemlabel_field, cgen->itemlist_cb);
|
||||||
n = 0;
|
n = 0;
|
||||||
item[n] = cgen->itemlabel_opmenu_items.String_item;
|
item[n] = cgen->itemlabel_opmenu_items.String_item;
|
||||||
item_val[n] = AB_LABEL_STRING; n++;
|
item_ptr[n] = AB_LABEL_STRING; n++;
|
||||||
item[n] = cgen->itemlabel_opmenu_items.Graphic_item;
|
item[n] = cgen->itemlabel_opmenu_items.Graphic_item;
|
||||||
item_val[n] = AB_LABEL_GLYPH; n++;
|
item_ptr[n] = AB_LABEL_GLYPH; n++;
|
||||||
prop_options_init(&(pms->item_label_type), cgen->item_labeltype_label,
|
prop_options_init(&(pms->item_label_type), cgen->item_labeltype_label,
|
||||||
cgen->itemlabel_opmenu, cgen->itemlabel_opmenu_menu,
|
cgen->itemlabel_opmenu, cgen->itemlabel_opmenu_menu,
|
||||||
n, item, (XtPointer*)item_val, cgen->itemlist_cb);
|
n, item, item_ptr, cgen->itemlist_cb);
|
||||||
|
|
||||||
for(i=0; i < n; i++)
|
for(i=0; i < n; i++)
|
||||||
XtAddCallback(item[i], XmNactivateCallback,
|
XtAddCallback(item[i], XmNactivateCallback,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue