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

« back to all changes in this revision

Viewing changes to examples/slider_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: slider_ex.c,v 1.8 2004/08/29 19:44:03 tom Exp $ */
 
1
/* $Id: slider_ex.c,v 1.9 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
6
char *XCursesProgramName = "slider_ex";
58
58
 
59
59
      /* Print out a message. */
60
60
      printf ("Oops. Can't make the widget. Is the window too small?\n");
61
 
      exit (EXIT_FAILURE);
 
61
      ExitProgram (EXIT_FAILURE);
62
62
   }
63
63
 
64
64
   /* Activate the widget. */
86
86
   destroyCDKSlider (widget);
87
87
   destroyCDKScreen (cdkscreen);
88
88
   endCDK();
89
 
   exit (EXIT_SUCCESS);
 
89
   ExitProgram (EXIT_SUCCESS);
90
90
}