diff options
Diffstat (limited to 'scripts/kconfig/gconf.c')
-rw-r--r-- | scripts/kconfig/gconf.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c index bef10411837f..455896164d72 100644 --- a/scripts/kconfig/gconf.c +++ b/scripts/kconfig/gconf.c | |||
@@ -133,7 +133,6 @@ void init_main_window(const gchar * glade_file) | |||
133 | GladeXML *xml; | 133 | GladeXML *xml; |
134 | GtkWidget *widget; | 134 | GtkWidget *widget; |
135 | GtkTextBuffer *txtbuf; | 135 | GtkTextBuffer *txtbuf; |
136 | char title[256]; | ||
137 | GtkStyle *style; | 136 | GtkStyle *style; |
138 | 137 | ||
139 | xml = glade_xml_new(glade_file, "window1", NULL); | 138 | xml = glade_xml_new(glade_file, "window1", NULL); |
@@ -210,9 +209,7 @@ void init_main_window(const gchar * glade_file) | |||
210 | /*"style", PANGO_STYLE_OBLIQUE, */ | 209 | /*"style", PANGO_STYLE_OBLIQUE, */ |
211 | NULL); | 210 | NULL); |
212 | 211 | ||
213 | sprintf(title, _("Linux Kernel v%s Configuration"), | 212 | gtk_window_set_title(GTK_WINDOW(main_wnd), rootmenu.prompt->text); |
214 | getenv("KERNELVERSION")); | ||
215 | gtk_window_set_title(GTK_WINDOW(main_wnd), title); | ||
216 | 213 | ||
217 | gtk_widget_show(main_wnd); | 214 | gtk_widget_show(main_wnd); |
218 | } | 215 | } |
@@ -671,8 +668,7 @@ void on_introduction1_activate(GtkMenuItem * menuitem, gpointer user_data) | |||
671 | { | 668 | { |
672 | GtkWidget *dialog; | 669 | GtkWidget *dialog; |
673 | const gchar *intro_text = _( | 670 | const gchar *intro_text = _( |
674 | "Welcome to gkc, the GTK+ graphical kernel configuration tool\n" | 671 | "Welcome to gkc, the GTK+ graphical configuration tool\n" |
675 | "for Linux.\n" | ||
676 | "For each option, a blank box indicates the feature is disabled, a\n" | 672 | "For each option, a blank box indicates the feature is disabled, a\n" |
677 | "check indicates it is enabled, and a dot indicates that it is to\n" | 673 | "check indicates it is enabled, and a dot indicates that it is to\n" |
678 | "be compiled as a module. Clicking on the box will cycle through the three states.\n" | 674 | "be compiled as a module. Clicking on the box will cycle through the three states.\n" |
@@ -1114,7 +1110,7 @@ static gchar **fill_row(struct menu *menu) | |||
1114 | 1110 | ||
1115 | row[COL_OPTION] = | 1111 | row[COL_OPTION] = |
1116 | g_strdup_printf("%s %s", _(menu_get_prompt(menu)), | 1112 | g_strdup_printf("%s %s", _(menu_get_prompt(menu)), |
1117 | sym && sym_has_value(sym) ? "(NEW)" : ""); | 1113 | sym && !sym_has_value(sym) ? "(NEW)" : ""); |
1118 | 1114 | ||
1119 | if (opt_mode == OPT_ALL && !menu_is_visible(menu)) | 1115 | if (opt_mode == OPT_ALL && !menu_is_visible(menu)) |
1120 | row[COL_COLOR] = g_strdup("DarkGray"); | 1116 | row[COL_COLOR] = g_strdup("DarkGray"); |
@@ -1343,7 +1339,8 @@ static void update_tree(struct menu *src, GtkTreeIter * dst) | |||
1343 | #endif | 1339 | #endif |
1344 | 1340 | ||
1345 | if ((opt_mode == OPT_NORMAL && !menu_is_visible(child1)) || | 1341 | if ((opt_mode == OPT_NORMAL && !menu_is_visible(child1)) || |
1346 | (opt_mode == OPT_PROMPT && !menu_has_prompt(child1))) { | 1342 | (opt_mode == OPT_PROMPT && !menu_has_prompt(child1)) || |
1343 | (opt_mode == OPT_ALL && !menu_get_prompt(child1))) { | ||
1347 | 1344 | ||
1348 | /* remove node */ | 1345 | /* remove node */ |
1349 | if (gtktree_iter_find_node(dst, menu1) != NULL) { | 1346 | if (gtktree_iter_find_node(dst, menu1) != NULL) { |
@@ -1425,7 +1422,7 @@ static void display_tree(struct menu *menu) | |||
1425 | 1422 | ||
1426 | if ((opt_mode == OPT_NORMAL && menu_is_visible(child)) || | 1423 | if ((opt_mode == OPT_NORMAL && menu_is_visible(child)) || |
1427 | (opt_mode == OPT_PROMPT && menu_has_prompt(child)) || | 1424 | (opt_mode == OPT_PROMPT && menu_has_prompt(child)) || |
1428 | (opt_mode == OPT_ALL)) | 1425 | (opt_mode == OPT_ALL && menu_get_prompt(child))) |
1429 | place_node(child, fill_row(child)); | 1426 | place_node(child, fill_row(child)); |
1430 | #ifdef DEBUG | 1427 | #ifdef DEBUG |
1431 | printf("%*c%s: ", indent, ' ', menu_get_prompt(child)); | 1428 | printf("%*c%s: ", indent, ' ', menu_get_prompt(child)); |
@@ -1530,12 +1527,6 @@ int main(int ac, char *av[]) | |||
1530 | else | 1527 | else |
1531 | glade_file = g_strconcat(g_get_current_dir(), "/", av[0], ".glade", NULL); | 1528 | glade_file = g_strconcat(g_get_current_dir(), "/", av[0], ".glade", NULL); |
1532 | 1529 | ||
1533 | /* Load the interface and connect signals */ | ||
1534 | init_main_window(glade_file); | ||
1535 | init_tree_model(); | ||
1536 | init_left_tree(); | ||
1537 | init_right_tree(); | ||
1538 | |||
1539 | /* Conf stuffs */ | 1530 | /* Conf stuffs */ |
1540 | if (ac > 1 && av[1][0] == '-') { | 1531 | if (ac > 1 && av[1][0] == '-') { |
1541 | switch (av[1][1]) { | 1532 | switch (av[1][1]) { |
@@ -1555,6 +1546,12 @@ int main(int ac, char *av[]) | |||
1555 | fixup_rootmenu(&rootmenu); | 1546 | fixup_rootmenu(&rootmenu); |
1556 | conf_read(NULL); | 1547 | conf_read(NULL); |
1557 | 1548 | ||
1549 | /* Load the interface and connect signals */ | ||
1550 | init_main_window(glade_file); | ||
1551 | init_tree_model(); | ||
1552 | init_left_tree(); | ||
1553 | init_right_tree(); | ||
1554 | |||
1558 | switch (view_mode) { | 1555 | switch (view_mode) { |
1559 | case SINGLE_VIEW: | 1556 | case SINGLE_VIEW: |
1560 | display_tree_part(); | 1557 | display_tree_part(); |