interface groundwork for core-side color decisions
(user-side decisions really, but as it stands right now user-side decisions/options are made and processed by the core) add a parameter to add_menu so color can be passed
This commit is contained in:
+2
-1
@@ -2011,6 +2011,7 @@ X11_display_file(const char *str, boolean complain)
|
||||
menu_item *menu_list;
|
||||
#define LLEN 128
|
||||
char line[LLEN];
|
||||
int clr = 0;
|
||||
|
||||
/* Use the port-independent file opener to see if the file exists. */
|
||||
fp = dlb_fopen(str, RDTMODE);
|
||||
@@ -2027,7 +2028,7 @@ X11_display_file(const char *str, boolean complain)
|
||||
any = cg.zeroany;
|
||||
while (dlb_fgets(line, LLEN, fp)) {
|
||||
X11_add_menu(newwin, &nul_glyphinfo, &any, 0, 0, ATR_NONE,
|
||||
line, MENU_ITEMFLAGS_NONE);
|
||||
clr, line, MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
(void) dlb_fclose(fp);
|
||||
|
||||
|
||||
@@ -787,6 +787,7 @@ X11_add_menu(winid window,
|
||||
char ch, /* selector letter; 0 if not selectable */
|
||||
char gch, /* group accelerator (0 = no group) */
|
||||
int attr,
|
||||
int clr UNUSED,
|
||||
const char *str,
|
||||
unsigned itemflags)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user