ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/menubar.C
(Generate patch)

Comparing rxvt-unicode/src/menubar.C (file contents):
Revision 1.26 by root, Sun Dec 18 00:59:42 2005 UTC vs.
Revision 1.28 by root, Tue Dec 27 16:41:40 2005 UTC

1967 for (item = BuildMenu->head; item != NULL; 1967 for (item = BuildMenu->head; item != NULL;
1968 item = item->next) 1968 item = item->next)
1969 { 1969 {
1970 short l = item->len + item->len2; 1970 short l = item->len + item->len2;
1971 1971
1972 MAX_IT (BuildMenu->width, l); 1972 max_it (BuildMenu->width, l);
1973 } 1973 }
1974 } 1974 }
1975 } 1975 }
1976 1976
1977 menubar_expose (); 1977 menubar_expose ();
2078 /* add the menuBar title, if it exists and there's plenty of room */ 2078 /* add the menuBar title, if it exists and there's plenty of room */
2079 Arrows_x = 0; 2079 Arrows_x = 0;
2080 if (x < ncol) 2080 if (x < ncol)
2081 { 2081 {
2082 const char *str; 2082 const char *str;
2083 int ncol;
2084 unsigned int len; 2083 unsigned int len;
2085 char title[256]; 2084 char title[256];
2086 2085
2087 ncol = (int)ncol;
2088 if (x < (ncol - (NARROWS + 1))) 2086 if (x < (ncol - (NARROWS + 1)))
2089 { 2087 {
2090 ncol -= (NARROWS + 1); 2088 ncol -= (NARROWS + 1);
2091 Arrows_x = Width2Pixel (ncol); 2089 Arrows_x = Width2Pixel (ncol);
2092 } 2090 }
2091
2093 draw_Arrows (0, +1); 2092 draw_Arrows (0, +1);
2094 2093
2095 str = (CurrentBar 2094 str = (CurrentBar
2096 && CurrentBar->title) ? CurrentBar->title : "%n-%v"; 2095 && CurrentBar->title) ? CurrentBar->title : "%n-%v";
2097 for (len = 0; str[0] && len < sizeof (title) - 1; str++) 2096 for (len = 0; str[0] && len < sizeof (title) - 1; str++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines