- Timestamp:
- Apr 7, 2010, 5:00:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/Ohana.20100407/src/opihi/cmd.data/section.c
r27491 r27636 1 1 # include "data.h" 2 2 3 enum {NONE, LIST, UP, DOWN, TOP, BOTTOM, TOOL };3 enum {NONE, LIST, UP, DOWN, TOP, BOTTOM, TOOL, BG}; 4 4 5 5 int section (int argc, char **argv) { … … 37 37 location = argv[N]; 38 38 remove_argument (N, &argc, argv); 39 } 40 41 background = -1; // invisible 42 if ((N = get_argument (argc, argv, "-bg"))) { 43 remove_argument (N, &argc, argv); 44 background = KapaColorByName(argv[N]); 45 remove_argument (N, &argc, argv); 46 action = BG; 39 47 } 40 48 … … 82 90 break; 83 91 92 case BG: 93 KapaSectionBG (kapa, argv[1], bg); 94 break; 95 84 96 case TOOL: 85 97 if (!strcmp(location, "-x")) { … … 121 133 section.dx = atof (argv[4]); 122 134 section.dy = atof (argv[5]); 135 section.bg = background; 123 136 KapaSetSection (kapa, §ion); 124 137 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
