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

« back to all changes in this revision

Viewing changes to examples/preprocess_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: preprocess_ex.c,v 1.16 2004/08/28 01:02:30 tom Exp $ */
 
1
/* $Id: preprocess_ex.c,v 1.17 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="preprocess_ex";
 
6
char *XCursesProgramName = "preprocess_ex";
7
7
#endif
8
8
 
9
9
static BINDFN_PROTO(entryPreProcessCB);
41
41
 
42
42
      /* Print out a little message. */
43
43
      printf ("Oops. Can't seem to create the entry box. Is the window too small?\n");
44
 
      exit (EXIT_FAILURE);
 
44
      ExitProgram (EXIT_FAILURE);
45
45
   }
46
46
 
47
47
   setCDKEntryPreProcess (widget, entryPreProcessCB, 0);
72
72
   destroyCDKEntry (widget);
73
73
   destroyCDKScreen (cdkscreen);
74
74
   endCDK();
75
 
   exit (EXIT_SUCCESS);
 
75
   ExitProgram (EXIT_SUCCESS);
76
76
}
77
77
 
78
78
static int entryPreProcessCB (EObjectType cdkType GCC_UNUSED, void *object, void *clientData GCC_UNUSED, chtype input)