Skip to content

Commit

Permalink
kconfig: delay gconf window initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnaud Lacombe committed Sep 20, 2010
1 parent f6ce00b commit c55c9d5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/kconfig/gconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand All @@ -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();
Expand Down

0 comments on commit c55c9d5

Please sign in to comment.