History

kconfig: highlight gconfig 'comment' lines with '***'

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.

Randy Dunlap committed 5 years ago

Commit 5fb35ec1 parent ed63ef71 file · +6 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/gconf.c+6−2
@@ -1044,8 +1044,13 @@ static gchar **fill_row(struct menu *menu) · 1043 unmodified lines
10441044 g_free(row[i]);
10451045 bzero(row, sizeof(row));
10461046
1047+ ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN;
1048+
10471049 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 ? "***" : "",
10491054 sym && !sym_has_value(sym) ? "(NEW)" : "");
10501055
10511056 if (opt_mode == OPT_ALL && !menu_is_visible(menu))
@@ -1056,7 +1061,6 @@ static gchar **fill_row(struct menu *menu) · 4 unmodified lines
10561061 else
10571062 row[COL_COLOR] = g_strdup("Black");
10581063
1059− ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN;
10601064 switch (ptype) {
10611065 case P_MENU:
10621066 row[COL_PIXBUF] = (gchar *) xpm_menu;