Mercurial > hg > xemacs-beta
comparison lwlib/xlwgauge.c @ 458:c33ae14dd6d0 r21-2-44
Import from CVS: tag r21-2-44
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:42:25 +0200 |
parents | abe6d1db359e |
children | b39c14581166 |
comparison
equal
deleted
inserted
replaced
457:4b9290a33024 | 458:c33ae14dd6d0 |
---|---|
133 | 133 |
134 static void GaugeGetValue (XtPointer, XtIntervalId *); | 134 static void GaugeGetValue (XtPointer, XtIntervalId *); |
135 static void GaugeMercury (Display *, Window, GC, GaugeWidget, Cardinal, Cardinal); | 135 static void GaugeMercury (Display *, Window, GC, GaugeWidget, Cardinal, Cardinal); |
136 | 136 |
137 static Boolean GaugeConvert (Widget, Atom *, Atom *, Atom *, | 137 static Boolean GaugeConvert (Widget, Atom *, Atom *, Atom *, |
138 XtPointer *, u_long *, int *); | 138 XtPointer *, unsigned long *, int *); |
139 static void GaugeLoseSel (Widget, Atom *); | 139 static void GaugeLoseSel (Widget, Atom *); |
140 static void GaugeDoneSel (Widget, Atom *, Atom *); | 140 static void GaugeDoneSel (Widget, Atom *, Atom *); |
141 static void GaugeGetSelCB (Widget, XtPointer, Atom *, Atom *, | 141 static void GaugeGetSelCB (Widget, XtPointer, Atom *, Atom *, |
142 XtPointer, u_long *, int *); | 142 XtPointer, unsigned long *, int *); |
143 | 143 |
144 static GC Get_GC (GaugeWidget, Pixel); | 144 static GC Get_GC (GaugeWidget, Pixel); |
145 | 145 |
146 | 146 |
147 static XtActionsRec actionsList[] = | 147 static XtActionsRec actionsList[] = |
634 GaugeConvert (Widget w, | 634 GaugeConvert (Widget w, |
635 Atom *selection, /* usually XA_PRIMARY */ | 635 Atom *selection, /* usually XA_PRIMARY */ |
636 Atom *target, /* requested target */ | 636 Atom *target, /* requested target */ |
637 Atom *type, /* returned type */ | 637 Atom *type, /* returned type */ |
638 XtPointer *value, /* returned value */ | 638 XtPointer *value, /* returned value */ |
639 u_long *length, /* returned length */ | 639 unsigned long *length, /* returned length */ |
640 int *format) /* returned format */ | 640 int *format) /* returned format */ |
641 { | 641 { |
642 GaugeWidget gw = (GaugeWidget)w ; | 642 GaugeWidget gw = (GaugeWidget)w ; |
643 XSelectionRequestEvent *req ; | 643 XSelectionRequestEvent *req ; |
644 | 644 |
648 | 648 |
649 #ifdef HAVE_XMU | 649 #ifdef HAVE_XMU |
650 if( *target == XA_TARGETS(XtDisplay(w)) ) | 650 if( *target == XA_TARGETS(XtDisplay(w)) ) |
651 { | 651 { |
652 Atom *rval, *stdTargets ; | 652 Atom *rval, *stdTargets ; |
653 u_long stdLength ; | 653 unsigned long stdLength ; |
654 | 654 |
655 /* XmuConvertStandardSelection can handle this. This function | 655 /* XmuConvertStandardSelection can handle this. This function |
656 * will return a list of standard targets. We prepend TEXT, | 656 * will return a list of standard targets. We prepend TEXT, |
657 * STRING and INTEGER to the list and return it. | 657 * STRING and INTEGER to the list and return it. |
658 */ | 658 */ |
772 GaugeGetSelCB (Widget w, | 772 GaugeGetSelCB (Widget w, |
773 XtPointer client, | 773 XtPointer client, |
774 Atom *selection, | 774 Atom *selection, |
775 Atom *type, | 775 Atom *type, |
776 XtPointer value, | 776 XtPointer value, |
777 u_long *length, | 777 unsigned long *length, |
778 int *format) | 778 int *format) |
779 { | 779 { |
780 Display *dpy = XtDisplay(w) ; | 780 Display *dpy = XtDisplay(w) ; |
781 Atom target = (Atom)client ; | 781 Atom target = (Atom)client ; |
782 int *iptr ; | 782 int *iptr ; |