diff --git a/src/ChangeLog b/src/ChangeLog
index 5653ea6..d17dd69 100644
a
|
b
|
|
| 1 | |
| 2 | 2009-01-09 Enrico Weigelt, metux ITS <weigelt@metux.de> |
| 3 | |
| 4 | * main.c, main.h, main-widgets.h, filegui.c, layout.c, screen.c: |
| 5 | moved main widget declarations into main-widgets.h and |
| 6 | removed the WANT_WIDGETS symbol |
| 7 | |
1 | 8 | 2009-01-05 Slava Zanko |
2 | 9 | * main.c (main): remove compatibility_move_mc_files stuff. |
3 | 10 | |
diff --git a/src/filegui.c b/src/filegui.c
index 441adb7..a526d2d 100644
a
|
b
|
|
58 | 58 | #include "dialog.h" /* do_refresh() */ |
59 | 59 | #include "color.h" /* dialog_colors */ |
60 | 60 | #include "widget.h" /* WLabel */ |
61 | | #define WANT_WIDGETS |
| 61 | #include "main-widgets.h" |
62 | 62 | #include "main.h" /* the_hint */ |
63 | 63 | #include "wtools.h" /* QuickDialog */ |
64 | 64 | #include "panel.h" /* current_panel */ |
diff --git a/src/layout.c b/src/layout.c
index 9f3616f..8bd8e7e 100644
a
|
b
|
|
51 | 51 | #include "command.h" |
52 | 52 | #include "profile.h" /* For sync_profiles() */ |
53 | 53 | #include "mouse.h" |
54 | | #define WANT_WIDGETS |
| 54 | #include "main-widgets.h" |
55 | 55 | #include "main.h" |
56 | 56 | #include "subshell.h" /* For use_subshell and resize_subshell() */ |
57 | 57 | #include "tree.h" |
diff --git a/src/main-widgets.h b/src/main-widgets.h
new file mode 100644
index 0000000..861e183
-
|
+
|
|
| 1 | #ifndef MC_MAIN_WIDGETS_H |
| 2 | #define MC_MAIN_WIDGETS_H |
| 3 | |
| 4 | #include "widget.h" |
| 5 | #include "dialog.h" |
| 6 | |
| 7 | extern WButtonBar *the_bar; |
| 8 | extern WLabel *the_prompt; |
| 9 | extern WLabel *the_hint; |
| 10 | extern Dlg_head *midnight_dlg; |
| 11 | |
| 12 | extern struct WMenu *the_menubar; |
| 13 | |
| 14 | #endif |
diff --git a/src/main.h b/src/main.h
index 3f3c695..fb38e7a 100644
a
|
b
|
char *get_mc_lib_dir (void); |
116 | 116 | int maybe_cd (int move_up_dir); |
117 | 117 | void do_possible_cd (const char *dir); |
118 | 118 | |
119 | | #ifdef WANT_WIDGETS |
120 | | extern WButtonBar *the_bar; |
121 | | extern WLabel *the_prompt; |
122 | | extern WLabel *the_hint; |
123 | | extern Dlg_head *midnight_dlg; |
124 | | |
125 | | extern struct WMenu *the_menubar; |
126 | | #endif /* WANT_WIDGETS */ |
127 | | |
128 | 119 | void done_menu (void); |
129 | 120 | void init_menu (void); |
130 | 121 | |
diff --git a/src/screen.c b/src/screen.c
index 74604f4..f35099e 100644
a
|
b
|
|
47 | 47 | #include "execute.h" |
48 | 48 | #include "widget.h" |
49 | 49 | #include "menu.h" /* menubar_visible */ |
50 | | #define WANT_WIDGETS |
| 50 | #include "main-widgets.h" |
51 | 51 | #include "main.h" /* the_menubar */ |
52 | 52 | #include "unixcompat.h" |
53 | 53 | |