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

« back to all changes in this revision

Viewing changes to swindow.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
1
#include <cdk_int.h>
2
2
 
3
3
/*
4
 
 * $Author: Thorsten.Glaser $
5
 
 * $Date: 2005/04/24 20:27:19 $
6
 
 * $Revision: 1.109 $
 
4
 * $Author: tom $
 
5
 * $Date: 2006/05/05 00:33:16 $
 
6
 * $Revision: 1.114 $
7
7
 */
8
8
 
9
9
/*
428
428
   /* Draw the scrolling list */
429
429
   drawCDKSwindow (swindow, ObjOf(swindow)->box);
430
430
 
431
 
   /* Check if actions is null. */
432
431
   if (actions == 0)
433
432
   {
434
433
      chtype input;
 
434
      boolean functionKey;
435
435
      int ret;
436
436
 
437
437
      for (;;)
438
438
      {
439
 
         /* Get the input. */
440
 
         input = getcCDKObject (ObjOf(swindow));
 
439
         input = getchCDKObject (ObjOf(swindow), &functionKey);
441
440
 
442
441
         /* Inject the character into the widget. */
443
442
         ret = injectCDKSwindow (swindow, input);
711
710
 
712
711
   drawCdkTitle (swindow->win, object);
713
712
 
714
 
   refreshCDKWindow (swindow->win);
 
713
   wrefresh (swindow->win);
715
714
 
716
715
   /* Draw in the list. */
717
716
   drawCDKSwindowList (swindow, Box);
760
759
      }
761
760
   }
762
761
 
763
 
   /* Reddraw the window. */
764
 
   refreshCDKWindow (swindow->fieldWin);
 
762
   wrefresh (swindow->fieldWin);
765
763
}
766
764
 
767
765
/*
810
808
      deleteCursesWindow (swindow->fieldWin);
811
809
      deleteCursesWindow (swindow->win);
812
810
 
 
811
      /* Clean the key bindings. */
 
812
      cleanCDKObjectBindings (vSWINDOW, swindow);
 
813
 
813
814
      /* Unregister this object. */
814
815
      unregisterCDKObject (vSWINDOW, swindow);
815
816
   }
1081
1082
   drawCDKSwindow (widget, ObjOf(widget)->box);
1082
1083
}
1083
1084
 
1084
 
dummyRefreshData(Swindow)
1085
 
 
1086
 
dummySaveData(Swindow)
1087
 
 
1088
1085
static int createList(CDKSWINDOW *swindow, int listSize)
1089
1086
{
1090
1087
   int status = 0;
 
1088
 
1091
1089
   if (listSize <= 0)
1092
1090
   {
1093
1091
      destroyInfo(swindow);
 
1092
      status = 1;
1094
1093
   }
1095
1094
   else
1096
1095
   {
1118
1117
   }
1119
1118
   return status;
1120
1119
}
 
1120
 
 
1121
dummyRefreshData(Swindow)
 
1122
 
 
1123
dummySaveData(Swindow)