~ubuntu-branches/ubuntu/intrepid/htop/intrepid

« back to all changes in this revision

Viewing changes to FunctionBar.c

  • Committer: Bazaar Package Importer
  • Author(s): Bartosz Fenski
  • Date: 2006-08-14 13:03:15 UTC
  • mfrom: (1.1.6 upstream) (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20060814130315-mm00h2owyqz2zr2j
Tags: 0.6.3-1
* New upstream version.
  - allows to rekill tagged group of processes (Closes: #375219)
* Bumped Standards-Version to 3.7.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
   bool staticData;
29
29
} FunctionBar;
30
30
 
31
 
extern char* FUNCTIONBAR_CLASS;
32
 
 
33
31
}*/
34
32
 
35
 
/* private property */
 
33
#ifdef DEBUG
36
34
char* FUNCTIONBAR_CLASS = "FunctionBar";
 
35
#else
 
36
#define FUNCTIONBAR_CLASS NULL
 
37
#endif
37
38
 
38
 
/* private property */
39
39
static char* FunctionBar_FKeys[10] = {"F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10"};
40
40
 
41
 
/* private property */
42
41
static char* FunctionBar_FLabels[10] = {"      ", "      ", "      ", "      ", "      ", "      ", "      ", "      ", "      ", "      "};
43
42
 
44
 
/* private property */
45
43
static int FunctionBar_FEvents[10] = {KEY_F(1), KEY_F(2), KEY_F(3), KEY_F(4), KEY_F(5), KEY_F(6), KEY_F(7), KEY_F(8), KEY_F(9), KEY_F(10)};
46
44
 
47
45
FunctionBar* FunctionBar_new(int size, char** functions, char** keys, int* events) {
48
46
   FunctionBar* this = malloc(sizeof(FunctionBar));
49
 
   ((Object*) this)->class = FUNCTIONBAR_CLASS;
 
47
   Object_setClass(this, FUNCTIONBAR_CLASS);
50
48
   ((Object*) this)->delete = FunctionBar_delete;
51
49
   this->functions = functions;
52
50
   this->size = size;