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

« back to all changes in this revision

Viewing changes to dialog.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:
2
2
 
3
3
/*
4
4
 * $Author: tom $
5
 
 * $Date: 2004/08/30 00:13:40 $
6
 
 * $Revision: 1.92 $
 
5
 * $Date: 2006/05/05 00:27:44 $
 
6
 * $Revision: 1.95 $
7
7
 */
8
8
 
9
9
DeclareCDKObjects(DIALOG, Dialog, setCdk, Int);
109
109
      dialog->shadowWin = newwin (boxHeight, boxWidth, ypos + 1, xpos + 1);
110
110
   }
111
111
 
112
 
   /* Empty the key bindings. */
113
 
   cleanCDKObjectBindings (vDIALOG, dialog);
114
 
 
115
112
   /* Register this baby. */
116
113
   registerCDKObject (cdkscreen, vDIALOG, dialog);
117
114
 
125
122
int activateCDKDialog (CDKDIALOG *dialog, chtype *actions)
126
123
{
127
124
   chtype input = 0;
 
125
   boolean functionKey;
128
126
   int ret;
129
127
 
130
128
   /* Draw the dialog box. */
140
138
                        0, dialog->buttonLen[dialog->currentButton]);
141
139
   wrefresh (dialog->win);
142
140
 
143
 
   /* Check if actions is null. */
144
141
   if (actions == 0)
145
142
   {
146
143
      for (;;)
147
144
      {
148
 
         /* Get the input. */
149
 
         input = getcCDKObject (ObjOf(dialog));
 
145
         input = getchCDKObject (ObjOf(dialog), &functionKey);
150
146
 
151
147
         /* Inject the character into the widget. */
152
148
         ret = injectCDKDialog (dialog, input);
352
348
   /* Draw in the buttons. */
353
349
   drawCDKDialogButtons (dialog);
354
350
 
355
 
   /* Refresh the window. */
356
 
   refreshCDKWindow (dialog->win);
 
351
   wrefresh (dialog->win);
357
352
}
358
353
 
359
354
/*
377
372
      deleteCursesWindow (dialog->win);
378
373
      deleteCursesWindow (dialog->shadowWin);
379
374
 
 
375
      /* Clean the key bindings. */
 
376
      cleanCDKObjectBindings (vDIALOG, dialog);
 
377
 
380
378
      /* Unregister this object. */
381
379
      unregisterCDKObject (vDIALOG, dialog);
382
380
   }