aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/gconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/gconf.c')
-rw-r--r--scripts/kconfig/gconf.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index d66988265f89..a11d5f7b9eeb 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}
@@ -256,7 +253,7 @@ void init_left_tree(void)
256 253
257 gtk_tree_view_set_model(view, model1); 254 gtk_tree_view_set_model(view, model1);
258 gtk_tree_view_set_headers_visible(view, TRUE); 255 gtk_tree_view_set_headers_visible(view, TRUE);
259 gtk_tree_view_set_rules_hint(view, FALSE); 256 gtk_tree_view_set_rules_hint(view, TRUE);
260 257
261 column = gtk_tree_view_column_new(); 258 column = gtk_tree_view_column_new();
262 gtk_tree_view_append_column(view, column); 259 gtk_tree_view_append_column(view, column);
@@ -301,7 +298,7 @@ void init_right_tree(void)
301 298
302 gtk_tree_view_set_model(view, model2); 299 gtk_tree_view_set_model(view, model2);
303 gtk_tree_view_set_headers_visible(view, TRUE); 300 gtk_tree_view_set_headers_visible(view, TRUE);
304 gtk_tree_view_set_rules_hint(view, FALSE); 301 gtk_tree_view_set_rules_hint(view, TRUE);
305 302
306 column = gtk_tree_view_column_new(); 303 column = gtk_tree_view_column_new();
307 gtk_tree_view_append_column(view, column); 304 gtk_tree_view_append_column(view, column);
@@ -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"
@@ -760,7 +756,6 @@ void on_load_clicked(GtkButton * button, gpointer user_data)
760void on_single_clicked(GtkButton * button, gpointer user_data) 756void on_single_clicked(GtkButton * button, gpointer user_data)
761{ 757{
762 view_mode = SINGLE_VIEW; 758 view_mode = SINGLE_VIEW;
763 gtk_paned_set_position(GTK_PANED(hpaned), 0);
764 gtk_widget_hide(tree1_w); 759 gtk_widget_hide(tree1_w);
765 current = &rootmenu; 760 current = &rootmenu;
766 display_tree_part(); 761 display_tree_part();
@@ -786,7 +781,6 @@ void on_split_clicked(GtkButton * button, gpointer user_data)
786void on_full_clicked(GtkButton * button, gpointer user_data) 781void on_full_clicked(GtkButton * button, gpointer user_data)
787{ 782{
788 view_mode = FULL_VIEW; 783 view_mode = FULL_VIEW;
789 gtk_paned_set_position(GTK_PANED(hpaned), 0);
790 gtk_widget_hide(tree1_w); 784 gtk_widget_hide(tree1_w);
791 if (tree2) 785 if (tree2)
792 gtk_tree_store_clear(tree2); 786 gtk_tree_store_clear(tree2);
@@ -1448,6 +1442,12 @@ static void display_tree(struct menu *menu)
1448 if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT)) 1442 if (((menu != &rootmenu) && !(menu->flags & MENU_ROOT))
1449 || (view_mode == FULL_VIEW) 1443 || (view_mode == FULL_VIEW)
1450 || (view_mode == SPLIT_VIEW))*/ 1444 || (view_mode == SPLIT_VIEW))*/
1445
1446 /* Change paned position if the view is not in 'split mode' */
1447 if (view_mode == SINGLE_VIEW || view_mode == FULL_VIEW) {
1448 gtk_paned_set_position(GTK_PANED(hpaned), 0);
1449 }
1450
1451 if (((view_mode == SINGLE_VIEW) && (menu->flags & MENU_ROOT)) 1451 if (((view_mode == SINGLE_VIEW) && (menu->flags & MENU_ROOT))
1452 || (view_mode == FULL_VIEW) 1452 || (view_mode == FULL_VIEW)
1453 || (view_mode == SPLIT_VIEW)) { 1453 || (view_mode == SPLIT_VIEW)) {
@@ -1531,12 +1531,6 @@ int main(int ac, char *av[])
1531 else 1531 else
1532 glade_file = g_strconcat(g_get_current_dir(), "/", av[0], ".glade", NULL); 1532 glade_file = g_strconcat(g_get_current_dir(), "/", av[0], ".glade", NULL);
1533 1533
1534 /* Load the interface and connect signals */
1535 init_main_window(glade_file);
1536 init_tree_model();
1537 init_left_tree();
1538 init_right_tree();
1539
1540 /* Conf stuffs */ 1534 /* Conf stuffs */
1541 if (ac > 1 && av[1][0] == '-') { 1535 if (ac > 1 && av[1][0] == '-') {
1542 switch (av[1][1]) { 1536 switch (av[1][1]) {
@@ -1556,6 +1550,12 @@ int main(int ac, char *av[])
1556 fixup_rootmenu(&rootmenu); 1550 fixup_rootmenu(&rootmenu);
1557 conf_read(NULL); 1551 conf_read(NULL);
1558 1552
1553 /* Load the interface and connect signals */
1554 init_main_window(glade_file);
1555 init_tree_model();
1556 init_left_tree();
1557 init_right_tree();
1558
1559 switch (view_mode) { 1559 switch (view_mode) {
1560 case SINGLE_VIEW: 1560 case SINGLE_VIEW:
1561 display_tree_part(); 1561 display_tree_part();