* durchgefuehrt werden.
*/
static XtTranslations NewEditTranslations, NewEditTranslationsNE,
- NewListTranslations, NewListTranslationsE;
+#ifdef NODRAGNDROP
+ NewListTranslations,
+#endif
+ NewListTranslationsE;
static XtConvertArgRec ConverterScreenConvertArg[] = {
{ XtBaseOffset, (XtPointer) XtOffset(Widget, core.screen),
if ( ScreenOfDisplay(display, i) == screen )
return i;
XtError("WidgetToScreen: data structures are destroyed.");
+ return 0; /* to avoid a compiler warning */
} /* WidgetToScreen */
/* --------------------------------------------------------------------
Position abs_x, abs_y;
Dimension ArrowWidth, ListWidth, ListHeight;
Dimension ScreenHeight, LabelWidth;
- Window Decoration;
XWindowChanges WindowChanges;
/*
{ XmNbackground, BACKGROUND }
};
-static UpdateColors(XmComboBoxWidget w, int flags)
+static int UpdateColors(XmComboBoxWidget w, int flags)
{
Pixel Color;
int i, size = XtNumber(ColorResources);
* dauerhaft dargestellt wird.
*/
if ( newW->combobox.ScrollBarDisplayPolicy !=
- current->combobox.ScrollBarDisplayPolicy )
+ current->combobox.ScrollBarDisplayPolicy ) {
if ( newW->combobox.StaticList )
XtVaSetValues(newW->combobox.ListCtrl,
XmNscrollBarDisplayPolicy, newW->combobox.ScrollBarDisplayPolicy,
else
XtWarning(
"XmComboBox: ScrollBarDisplayPolicy can not be changed when StaticList == False."
- );
+);
+ }
/* Anzahl der in der Liste gleichzeitig darstellbaren Eintraege */
if ( current->combobox.VisibleItemCount !=
newW->combobox.VisibleItemCount ) {
Update = True;
}
if ( current->combobox.AutomaticSelection !=
- newW->combobox.AutomaticSelection )
+ newW->combobox.AutomaticSelection ) {
XtVaSetValues(newW->combobox.ListCtrl,
XmNautomaticSelection, newW->combobox.AutomaticSelection,
NULL);
-
+ }
/*
* benutzter Font: hier erhalten Liste und Eingabefeld jeweils die
* gleiche Fontliste, wohingegen das Label getrennt behandelt wird.
break;
}
break;
+ case RWIGNORE:
+ ;
} /* case read mode */
} /* if entry found */
} /* for every mirrored entry */
XmStringTable Items;
int *SelectionList;
int SelectionCount;
- int i, ItemCount, Start, End;
+ int i, ItemCount, Start;
char *pItem;
Boolean Ignore;
char *RscName, char *RscClass,
unsigned char *pUChar)
{
- XrmValue RscValue, RscDest;
+ XrmValue RscValue;
String RepresentationType;
- int AInt;
if ( FetchResource(w, FullName, FullClass,
RscName, RscClass,
XmStringTable AStringTable;
Pixmap APixmap;
XmFontList AFontList;
- XrmValue RscValue;
String AString;
KeySym AKeySym;
int i, size = XtNumber(ResourceMirror);
Widget w;
Arg args[10];
int n = 0;
- XmString xmstr;
- Pixel BackgroundColor;
/*
* Da zu allem Ueberfluss die einzelnen Instanzen einer XmComboBox
* Deleted Zeigt an, ob der Eintrag geloescht wurde (True)
* oder sich nur veraenderte (False)
*/
-static UpdateComboBox(XmComboBoxWidget w, int Index, Boolean Deleted)
+static int UpdateComboBox(XmComboBoxWidget w, int Index, Boolean Deleted)
{
int OldIndex, ItemCount;