Bugfix: The faceplate editor didn't work on 64 bit debian systems.
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-DM2K/dm2kApp/dm2k/faceplateGUI.c new-DM2K/dm2kApp/dm2k/faceplateGUI.c
--- old-DM2K/dm2kApp/dm2k/faceplateGUI.c 2022-06-25 22:17:24.592942798 +0200
+++ new-DM2K/dm2kApp/dm2k/faceplateGUI.c 2022-06-25 22:17:24.596942866 +0200
@@ -329,7 +329,7 @@
XtConvertAndStore (menuBar3, XmRString, &from_value, XmRKeySym, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNmnemonic, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNmnemonic, *(KeySym *)to_value.addr); ac++;
}
cascade13 = XmCreateCascadeButton ( menuBar3, "cascade13", al, ac );
ac = 0;
@@ -343,7 +343,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRFontList, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNfontList, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNfontList, *(XmFontList *)to_value.addr); ac++;
}
from_value.addr = "N";
from_value.size = strlen( from_value.addr ) + 1;
@@ -351,7 +351,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRKeySym, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNmnemonic, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNmnemonic, *(KeySym *)to_value.addr); ac++;
}
fGUI->wFileNew = XmCreateCascadeButton ( menu3, "wFileNew", al, ac );
ac = 0;
@@ -364,7 +364,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRFontList, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNfontList, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNfontList, *(XmFontList *)to_value.addr); ac++;
}
from_value.addr = "O";
from_value.size = strlen( from_value.addr ) + 1;
@@ -372,7 +372,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRKeySym, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNmnemonic, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNmnemonic, *(KeySym *)to_value.addr); ac++;
}
fGUI->wFileOpen = XmCreateCascadeButton ( menu3, "wFileOpen", al, ac );
ac = 0;
@@ -386,7 +386,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRFontList, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNfontList, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNfontList, *(XmFontList *)to_value.addr); ac++;
}
from_value.addr = "S";
from_value.size = strlen( from_value.addr ) + 1;
@@ -394,7 +394,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRKeySym, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNmnemonic, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNmnemonic, *(KeySym *)to_value.addr); ac++;
}
fGUI->wFileSave = XmCreateCascadeButton ( menu3, "wFileSave", al, ac );
ac = 0;
@@ -407,7 +407,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRFontList, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNfontList, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNfontList, *(XmFontList *)to_value.addr); ac++;
}
from_value.addr = "A";
from_value.size = strlen( from_value.addr ) + 1;
@@ -415,7 +415,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRKeySym, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNmnemonic, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNmnemonic, *(KeySym *)to_value.addr); ac++;
}
fGUI->wFileSaveAs = XmCreateCascadeButton ( menu3, "wFileSaveAs", al, ac );
ac = 0;
@@ -429,7 +429,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRFontList, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNfontList, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNfontList, *(XmFontList *)to_value.addr); ac++;
}
from_value.addr = "C";
from_value.size = strlen( from_value.addr ) + 1;
@@ -437,7 +437,7 @@
XtConvertAndStore (menu3, XmRString, &from_value, XmRKeySym, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNmnemonic, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNmnemonic, *(KeySym *)to_value.addr); ac++;
}
fGUI->wFileClose = XmCreateCascadeButton ( menu3, "wFileClose", al, ac );
ac = 0;
@@ -528,7 +528,7 @@
XtConvertAndStore (radioBox3, XmRString, &from_value, XmRFontList, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNfontList, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNfontList, *(XmFontList *)to_value.addr); ac++;
}
XtSetArg(al[ac], XmNset, TRUE); ac++;
fGUI->wInPixelTGL = XmCreateToggleButtonGadget ( radioBox3, "wInPixelTGL", al, ac );
@@ -545,7 +545,7 @@
XtConvertAndStore (radioBox3, XmRString, &from_value, XmRFontList, &to_value);
if ( to_value.addr )
{
- XtSetArg(al[ac], XmNfontList, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNfontList, *(XmFontList *)to_value.addr); ac++;
}
fGUI->wFractionBaseTGL = XmCreateToggleButtonGadget ( radioBox3, "wFractionBaseTGL", al, ac );
ac = 0;
diff -rN -u old-DM2K/dm2kApp/dm2k/faceplateGUICallback.c new-DM2K/dm2kApp/dm2k/faceplateGUICallback.c
--- old-DM2K/dm2kApp/dm2k/faceplateGUICallback.c 2022-06-25 22:17:24.592942798 +0200
+++ new-DM2K/dm2kApp/dm2k/faceplateGUICallback.c 2022-06-25 22:17:24.596942866 +0200
@@ -281,7 +281,7 @@
to_value.addr = NULL;
XtConvertAndStore ( fGUI->wGroupRowColumn, XmRString, &from_value, XmRFontList, &to_value);
if ( to_value.addr ) {
- XtSetArg(al[ac], XmNfontList, *(unsigned int *)to_value.addr); ac++;
+ XtSetArg(al[ac], XmNfontList, *(XmFontList *)to_value.addr); ac++;
}
toggle = XmCreateToggleButtonGadget ( fGUI->wGroupRowColumn, buffer,
patch d532c4af45cfee3d898ef7abe0df53a3627f7dfc
Author: Goetz.Pfeiffer@helmholtz-berlin.de
Date: Fri Oct 19 12:46:00 CEST 2018
* Bugfix: The faceplate editor didn't work on 64 bit debian systems