summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/gconf.c
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2010-09-20 04:47:17 +0200
committerArnaud Lacombe <lacombar@gmail.com>2010-09-20 04:53:49 +0200
commitc55c9d571a3db7a096834b6c8a58d5a32dc807e6 (patch)
treef7d4ba14e43d60cf2b8cf171cd742d614310fc2c /scripts/kconfig/gconf.c
parentkconfig: expand by default the rootmenu's prompt (diff)
downloadlinux-c55c9d571a3db7a096834b6c8a58d5a32dc807e6.tar.xz
linux-c55c9d571a3db7a096834b6c8a58d5a32dc807e6.zip
kconfig: delay gconf window initialization
Delay the window initialization to let the rootmenu's prompt be initialized as it will be used to get the window's title. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'scripts/kconfig/gconf.c')
-rw-r--r--scripts/kconfig/gconf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/kconfig/gconf.c b/scripts/kconfig/gconf.c
index 16362139d52a..262fbd19c1ea 100644
--- a/scripts/kconfig/gconf.c
+++ b/scripts/kconfig/gconf.c
@@ -1530,12 +1530,6 @@ int main(int ac, char *av[])
else
glade_file = g_strconcat(g_get_current_dir(), "/", av[0], ".glade", NULL);
- /* Load the interface and connect signals */
- init_main_window(glade_file);
- init_tree_model();
- init_left_tree();
- init_right_tree();
-
/* Conf stuffs */
if (ac > 1 && av[1][0] == '-') {
switch (av[1][1]) {
@@ -1555,6 +1549,12 @@ int main(int ac, char *av[])
fixup_rootmenu(&rootmenu);
conf_read(NULL);
+ /* Load the interface and connect signals */
+ init_main_window(glade_file);
+ init_tree_model();
+ init_left_tree();
+ init_right_tree();
+
switch (view_mode) {
case SINGLE_VIEW:
display_tree_part();