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

« back to all changes in this revision

Viewing changes to label.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:21:35 $
6
 
 * $Revision: 1.81 $
 
5
 * $Date: 2006/05/05 00:27:44 $
 
6
 * $Revision: 1.84 $
7
7
 */
8
8
 
9
9
DeclareCDKObjects(LABEL, Label, setCdk, Unknown);
197
197
   }
198
198
 
199
199
   /* Refresh the window. */
200
 
   refreshCDKWindow (label->win);
 
200
   wrefresh (label->win);
201
201
}
202
202
 
203
203
/*
275
275
      deleteCursesWindow (label->shadowWin);
276
276
      deleteCursesWindow (label->win);
277
277
 
 
278
      /* Clean the key bindings. */
 
279
      cleanCDKObjectBindings (vLABEL, label);
 
280
 
278
281
      /* Unregister the object. */
279
282
      unregisterCDKObject (vLABEL, label);
280
283
   }
285
288
 */
286
289
char waitCDKLabel (CDKLABEL *label, char key)
287
290
{
 
291
   boolean functionKey;
 
292
 
288
293
   /* If the key is null, we'll accept anything. */
289
294
   if ( key == 0 )
290
295
   {
291
 
      return (getcCDKObject (ObjOf(label)));
 
296
      return (getchCDKObject (ObjOf(label), &functionKey));
292
297
   }
293
298
   else
294
299
   {
296
301
      int code;
297
302
      for (;;)
298
303
      {
299
 
         code = getcCDKObject(ObjOf(label));
 
304
         code = getchCDKObject(ObjOf(label), &functionKey);
300
305
         if (code == key)
301
306
         {
302
307
            return ( code );