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

« back to all changes in this revision

Viewing changes to examples/dialog_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: dialog_ex.c,v 1.11 2004/08/28 01:02:30 tom Exp $ */
 
1
/* $Id: dialog_ex.c,v 1.12 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="dialog_ex";
 
6
char *XCursesProgramName = "dialog_ex";
7
7
#endif
8
8
 
9
9
/*
58
58
 
59
59
      /* Spit out a message. */
60
60
      printf ("Oops. Can't seem to create the dialog box. Is the window too small?\n");
61
 
      exit (EXIT_FAILURE);
 
61
      ExitProgram (EXIT_FAILURE);
62
62
   }
63
63
 
64
64
   /* Activate the dialog box. */
85
85
   destroyCDKDialog (question);
86
86
   destroyCDKScreen (cdkscreen);
87
87
   endCDK();
88
 
   exit (EXIT_SUCCESS);
 
88
   ExitProgram (EXIT_SUCCESS);
89
89
}