/*
 * This file is part of the OLH On-Line Help system
 *
 *	Chris VanHaren
 *      MIT Project Athena
 *
 * Copyright (C) 1990 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file "mit-copyright.h".
 *
 *      $Source: /afs/sipb.mit.edu/project/sipb-athena/repository/src/olh/motif/Cursor.c,v $
 *      $Id: Cursor.c,v 1.1 1992/05/01 17:08:47 lwvanels Exp $
 *      $Author: lwvanels $
 */

#include "global.h"
#include "widget_num.h"

static int widgets[] = { TOPLEVEL,
			   TEXT_DLG,
			   SENDBUG_DLG,
			   SUGGEST_DLG,
			   PRINT_DLG,
			   COPY_DLG,
			   INFO_DLG,
			   KWD_DLG,
			   /* BKMK_DLG, */
			   1000,
			 };

void
SetCursor(wait)
     int wait;
{
  int i;

  if (wait)
    for (i = 0; widgets[i] != 1000; i++) {
      if(w[widgets[i]] != NULL)
	MuSetWaitCursor(w[widgets[i]]);
    }
  else
    for (i = 0; widgets[i] != 1000; i++) {
      if(w[widgets[i]] != NULL)
	MuSetStandardCursor(w[widgets[i]]);
    }
}

