Mark Kconfig "comment" lines with "*** <commentstring> ***" so that it is clear that these lines are comments and not some kconfig item that cannot be modified. This is helpful in some menus to be able to provide a menu "sub-heading" for groups of similar config items. This also makes the comments be presented in a way that is similar to menuconfig and nconfig.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -1044,8 +1044,13 @@ static gchar **fill_row(struct menu *menu) · 1043 unmodified lines | |||
| 1044 | g_free(row[i]); | 1044 | g_free(row[i]); |
| 1045 | bzero(row, sizeof(row)); | 1045 | bzero(row, sizeof(row)); |
| 1046 | 1046 | ||
| 1047 | ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; | ||
| 1048 | |||
| 1047 | row[COL_OPTION] = | 1049 | row[COL_OPTION] = |
| 1048 | g_strdup_printf("%s %s", menu_get_prompt(menu), | 1050 | g_strdup_printf("%s %s %s %s", |
| 1051 | ptype == P_COMMENT ? "***" : "", | ||
| 1052 | menu_get_prompt(menu), | ||
| 1053 | ptype == P_COMMENT ? "***" : "", | ||
| 1049 | sym && !sym_has_value(sym) ? "(NEW)" : ""); | 1054 | sym && !sym_has_value(sym) ? "(NEW)" : ""); |
| 1050 | 1055 | ||
| 1051 | if (opt_mode == OPT_ALL && !menu_is_visible(menu)) | 1056 | if (opt_mode == OPT_ALL && !menu_is_visible(menu)) |
| @@ -1056,7 +1061,6 @@ static gchar **fill_row(struct menu *menu) · 4 unmodified lines | |||
| 1056 | else | 1061 | else |
| 1057 | row[COL_COLOR] = g_strdup("Black"); | 1062 | row[COL_COLOR] = g_strdup("Black"); |
| 1058 | 1063 | ||
| 1059 | ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; | ||
| 1060 | switch (ptype) { | 1064 | switch (ptype) { |
| 1061 | case P_MENU: | 1065 | case P_MENU: |
| 1062 | row[COL_PIXBUF] = (gchar *) xpm_menu; | 1066 | row[COL_PIXBUF] = (gchar *) xpm_menu; |