Changeset 27790 for trunk/Ohana/src/opihi/cmd.data/section.c
- Timestamp:
- Apr 28, 2010, 10:27:33 AM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/opihi/cmd.data/section.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/Ohana.20100407 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/opihi/cmd.data/section.c
r27491 r27790 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) { 6 6 7 int N, action, kapa ;7 int N, action, kapa, background; 8 8 Graphdata graphmode; 9 9 KapaSection section; … … 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 if (!strcasecmp (argv[N], "NONE")) { 45 background = -1; 46 } else { 47 background = KapaColorByName(argv[N]); 48 } 49 remove_argument (N, &argc, argv); 50 action = BG; 39 51 } 40 52 … … 82 94 break; 83 95 96 case BG: 97 KapaSectionBG (kapa, argv[1], background); 98 break; 99 84 100 case TOOL: 85 101 if (!strcmp(location, "-x")) { … … 121 137 section.dx = atof (argv[4]); 122 138 section.dy = atof (argv[5]); 139 section.bg = background; 123 140 KapaSetSection (kapa, §ion); 124 141 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
