From 43b82f1201039d225f3f88cc01beb3ac363fe74e Mon Sep 17 00:00:00 2001 From: Pavel Tsekov Date: Mon, 25 Sep 2006 08:34:48 +0000 Subject: [PATCH] * src/layout.c (layout_do_change): Remove global variable. (layout_cmd): Reflect the changes above. (layout_change): Ditto. --- src/ChangeLog | 6 ++++++ src/layout.c | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2bda73517..ea5391c92 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2006-09-25 Pavel Tsekov + + * layout.c (layout_do_change): Remove global variable. + (layout_cmd): Reflect the changes above. + (layout_change): Ditto. + 2006-09-18 Pavel Tsekov * main.c (xtoolkit_panel_setup): Remove - it is a noop. diff --git a/src/layout.c b/src/layout.c index 59b557cbf..21127d428 100644 --- a/src/layout.c +++ b/src/layout.c @@ -69,9 +69,6 @@ /* Controls the display of the rotating dash on the verbose mode */ int nice_rotating_dash = 1; -/* If set, then we have to call the layout_change routine from main */ -static int layout_do_change = 0; - /* Set if the panels are split horizontally */ int horizontal_split = 0; @@ -495,7 +492,6 @@ static void layout_change (void) { setup_panels (); - layout_do_change = 0; /* re-init the menu, because perhaps there was a change in the way how the panel are split (horizontal/vertical). */ done_menu (); @@ -507,6 +503,7 @@ void layout_cmd (void) { int result; int i; + int layout_do_change = 0; init_layout (); run_dlg (layout_dlg);