/*
** Generated by X-Designer
*/

/*
** X-Designer-generated prelude.
** Do not edit lines before "End of X-Designer generated prelude"
** Lines beginning ** X-Designer Stub indicate a stub
** which will not be output on re-generation
*/

/*
**LIBS: -lXm -lXt -lX11
*/

#include <stdlib.h>
#include <X11/Xatom.h>
#include <X11/Intrinsic.h>
#include <X11/Shell.h>

#include <Xm/Xm.h>
#include <Xm/ComboBox.h>

#include "MonthComboBox.h"

/* End of X-Designer generated prelude */

#include <stdio.h>

/*
** X-Designer Stub selectionCallback
*/

#ifndef   _NO_PROTO
void selectionCallback(Widget w, XtPointer client_data, XtPointer xt_call_data)
#else  /* _NO_PROTO */
void selectionCallback(w, client_data, call_data)
	Widget    w ;
	XtPointer client_data ;
	XmComboBoxCallbackStruct * call_data ;
#endif /* _NO_PROTO */
{
#ifndef   _NO_PROTO
	XmComboBoxCallbackStruct *call_data = (XmComboBoxCallbackStruct *) xt_call_data ;
#endif /* _NO_PROTO */

	if (call_data->item_or_text != (XmString) 0) {
		char *value = (char *) XmStringUnparse(call_data->item_or_text,
						       NULL,
						       XmCHARSET_TEXT,
						       XmCHARSET_TEXT,
						       NULL,
						       0,
						       XmOUTPUT_ALL) ;

		if (value != (char *) 0) {
			(void) fprintf(stderr, 
				       "ComboBox selection reported at position %d: %s\n", 
				       call_data->item_position,
				       value) ;

			XtFree(value) ;
		}
	}
}

