*
* Author: Edward A. Falk
* falk@falconer.vip.best.com
- *
+ *
* Date: June 30, 1997
*
*
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
-#include ATHENA_INCLUDE(XawInit.h)
+#include ATHENA_XawInit_h_
#include "../src/xmu.h"
#include "xlwradioP.h"
RadioClassRec radioClassRec = {
{
- (WidgetClass) SuperClass, /* superclass */
+ (WidgetClass) SuperClass, /* superclass */
"Radio", /* class_name */
sizeof(RadioRec), /* size */
RadioClassInit, /* class_initialize */
NULL /* extension */
}, /* CoreClass fields initialization */
{
- XtInheritChangeSensitive /* change_sensitive */
+ XtInheritChangeSensitive /* change_sensitive */
}, /* SimpleClass fields initialization */
#ifdef _ThreeDP_h
{
/* Function Name: RadioDestroy
* Description: Destroy Callback for radio widget.
* Arguments: w - the radio widget that is being destroyed.
- * junk, grabage - not used.
+ * junk, garbage - not used.
* Returns: none.
*/
* but it bears thinking on.
*/
- /* Command widget may sometimes override the label GC in order
- * to draw inverse video. We don't use inverse video, so we need
- * to restore the label's normal GC.
- */
- rw->label.normal_GC = rw->command.normal_GC ;
-
-
/* Let label widget draw the label. If there was an lbm_x
* field, we could let Label draw the bitmap too. But there
* isn't, so we need to temporarily remove the bitmap and
{
/* TODO: handle pixmaps */
XCopyPlane(dpy, left_bitmap, win, gc,
- 0,0, rw->label.lbm_width, rw->label.lbm_height,
- (int) rw->label.internal_width*2 + bs(rw),
- (int) rw->label.internal_height + rw->label.lbm_y,
- (u_long) 1L) ;
+ 0,0, rw->label.lbm_width, rw->label.lbm_height,
+ (int) rw->label.internal_width*2 + bs(rw),
+ (int) rw->label.internal_height + rw->label.lbm_y,
+ 1UL) ;
}
/* Finally, the button itself */
{
RadioSize(newrw, &newrw->core.width, &newrw->core.height) ;
}
-
- /* The label set values routine can resize the widget. We need to
+
+ /* The label set values routine can resize the widget. We need to
* recalculate if this is true.
*/
if (newrw->label.label_x != oldrw->label.label_x)
* border.
*/
-static void
+static void
DrawHighlight (Widget w,
GC gc)
{
/* ARGSUSED */
-void
+void
RadioSet (Widget w,
XEvent *event,
String *params, /* unused */
/* ARGSUSED */
-void
+void
RadioUnset (Widget w,
XEvent *event,
String *params, /* unused */