~ubuntu-branches/ubuntu/trusty/libcdk5/trusty

« back to all changes in this revision

Viewing changes to examples/calendar_ex.c

  • Committer: Bazaar Package Importer
  • Author(s): John Goerzen
  • Date: 2007-06-06 03:54:31 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070606035431-ba4gdvw0h6ybffsu
Tags: 5.0.20060507-1
* New upstream release.
* Fixed header patching.  Patch from Robert Schiele.
  Closes: #402978, #416336.
* Update widget count in description.  Closes: #294709.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: calendar_ex.c,v 1.12 2004/08/28 01:02:30 tom Exp $ */
 
1
/* $Id: calendar_ex.c,v 1.13 2005/12/26 22:04:35 tom Exp $ */
2
2
 
3
 
#include <cdk.h>
 
3
#include <cdk_test.h>
4
4
 
5
5
#ifdef HAVE_XCURSES
6
 
char *XCursesProgramName="calendar_ex";
 
6
char *XCursesProgramName = "calendar_ex";
7
7
#endif
8
8
 
9
9
static BINDFN_PROTO(createCalendarMarkCB);
71
71
 
72
72
      /* Spit out a message. */
73
73
      printf ("Oops. Can't seem to create the calendar. Is the window too small?\n");
74
 
      exit (EXIT_FAILURE);
 
74
      ExitProgram (EXIT_FAILURE);
75
75
   }
76
76
 
77
77
   /* Create a key binding to mark days on the calendar. */
110
110
   endCDK();
111
111
   fflush (stdout);
112
112
   printf ("Selected Time: %s\n", ctime(&retVal));
113
 
   exit (EXIT_SUCCESS);
 
113
   ExitProgram (EXIT_SUCCESS);
114
114
}
115
115
 
116
116
/*