Browse Source

dselect: Rename info screenpart to info_body

Guillem Jover 8 years ago
parent
commit
0a4a592244
5 changed files with 8 additions and 8 deletions
  1. 3 3
      dselect/baselist.cc
  2. 1 1
      dselect/dselect.h
  3. 2 2
      dselect/main.cc
  4. 1 1
      dselect/methlist.cc
  5. 1 1
      dselect/pkginfo.cc

+ 3 - 3
dselect/baselist.cc

@@ -200,7 +200,7 @@ void baselist::startdisplay() {
     part_attr[selstatesel] = A_STANDOUT;
     part_attr[colheads]= A_BOLD;
     part_attr[query] = part_attr[title];
-    part_attr[info] = part_attr[list];
+    part_attr[info_body] = part_attr[list];
     part_attr[info_head] = A_BOLD;
     part_attr[whatinfo] = part_attr[thisstate];
     part_attr[helpscreen] = A_NORMAL;
@@ -236,8 +236,8 @@ void baselist::startdisplay() {
 
   infopad= newpad(MAX_DISPLAY_INFO, total_width);
   if (!infopad) ohshite(_("failed to create info pad"));
-  wattrset(infopad, part_attr[info]);
-  wbkgdset(infopad, ' ' | part_attr[info]);
+  wattrset(infopad, part_attr[info_body]);
+  wbkgdset(infopad, ' ' | part_attr[info_body]);
 
   querywin= newwin(1,xmax,ymax-1,0);
   if (!querywin) ohshite(_("failed to create query window"));

+ 1 - 1
dselect/dselect.h

@@ -55,7 +55,7 @@ enum screenparts {
 	selstatesel,
 	colheads,
 	query,
-	info,
+	info_body,
 	info_head,
 	whatinfo,
 	helpscreen,

+ 2 - 2
dselect/main.cc

@@ -108,7 +108,7 @@ static const struct table_t screenparttable[]= {
   {"pkgstatesel",	selstatesel	},
   {"listhead",		colheads	},
   {"query",		query		},
-  {"info",		info		},
+  {"info",		info_body	},
   {"infodesc",		info_head	},
   {"infofoot",		whatinfo	},
   {"helpscreen",	helpscreen	},
@@ -127,7 +127,7 @@ struct colordata color[]= {
   {COLOR_WHITE,        COLOR_BLACK,    A_REVERSE | A_BOLD	}, // selstatesel
   {COLOR_WHITE,        COLOR_BLUE,     0			}, // colheads
   {COLOR_WHITE,        COLOR_RED,      0			}, // query
-  {COLOR_WHITE,        COLOR_BLACK,    0			}, // info
+  {COLOR_WHITE,        COLOR_BLACK,    0			}, // info_body
   {COLOR_WHITE,        COLOR_BLACK,    A_BOLD			}, // info_head
   {COLOR_WHITE,        COLOR_BLUE,     0			}, // whatinfo
   {COLOR_WHITE,        COLOR_BLACK,    0			}, // help

+ 1 - 1
dselect/methlist.cc

@@ -188,7 +188,7 @@ void methodlist::itd_description() {
   waddstr(infopad, table[cursorline]->name);
   waddstr(infopad," - ");
   waddstr(infopad, table[cursorline]->summary);
-  wattrset(infopad, part_attr[info]);
+  wattrset(infopad, part_attr[info_body]);
 
   const char *m= table[cursorline]->description;
   if (str_is_unset(m))

+ 1 - 1
dselect/pkginfo.cc

@@ -120,7 +120,7 @@ void packagelist::itd_description() {
     waddstr(infopad, table[cursorline]->pkg->set->name);
     waddstr(infopad," - ");
     waddnstr(infopad,m,l);
-    wattrset(infopad, part_attr[info]);
+    wattrset(infopad, part_attr[info_body]);
     if (p) {
       waddstr(infopad,"\n\n");
       wordwrapinfo(1,++p);