/*
* Return the width of the toolbar and the target width of toolbar labels.
*/
-static int toolbar_width(WINDOW *toolbar, int *label_width)
+static int toolbar_width(WINDOW *toolbar, int *item_width)
{
int w, h;
getmaxyx(toolbar, h, w);
- *label_width = MAX(6, w/10);
+ *item_width = MAX(6, w/10);
return (void)h, w;
}
* The minimum size of a label is 6 characters (2 of which are used for the
* number indicator)
*/
-static int toolbar_xpos(int i, int total_width, int label_width)
+static int toolbar_xpos(int i, int total_width, int item_width)
{
- int rem = total_width - 10*label_width;
- int pos = (i-1)*label_width;
+ int rem = total_width - 10*item_width;
+ int pos = (i-1)*item_width;
switch (rem) {
case 9: pos += i > 6;