mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* main.c, main.h, main-widgets.h, filegui.c, layout.c, screen.c:
moved main widget declarations into main-widgets.h and removed the WANT_WIDGETS symbol
This commit is contained in:
parent
ff9ff2058d
commit
53627743b4
@ -1,3 +1,10 @@
|
||||
|
||||
2009-01-09 Enrico Weigelt, metux ITS <weigelt@metux.de>
|
||||
|
||||
* main.c, main.h, main-widgets.h, filegui.c, layout.c, screen.c:
|
||||
moved main widget declarations into main-widgets.h and
|
||||
removed the WANT_WIDGETS symbol
|
||||
|
||||
2009-01-05 Slava Zanko
|
||||
* main.c (main): remove compatibility_move_mc_files stuff.
|
||||
|
||||
|
@ -58,7 +58,7 @@
|
||||
#include "dialog.h" /* do_refresh() */
|
||||
#include "color.h" /* dialog_colors */
|
||||
#include "widget.h" /* WLabel */
|
||||
#define WANT_WIDGETS
|
||||
#include "main-widgets.h"
|
||||
#include "main.h" /* the_hint */
|
||||
#include "wtools.h" /* QuickDialog */
|
||||
#include "panel.h" /* current_panel */
|
||||
|
@ -51,7 +51,7 @@
|
||||
#include "command.h"
|
||||
#include "profile.h" /* For sync_profiles() */
|
||||
#include "mouse.h"
|
||||
#define WANT_WIDGETS
|
||||
#include "main-widgets.h"
|
||||
#include "main.h"
|
||||
#include "subshell.h" /* For use_subshell and resize_subshell() */
|
||||
#include "tree.h"
|
||||
|
14
src/main-widgets.h
Normal file
14
src/main-widgets.h
Normal file
@ -0,0 +1,14 @@
|
||||
#ifndef MC_MAIN_WIDGETS_H
|
||||
#define MC_MAIN_WIDGETS_H
|
||||
|
||||
#include "widget.h"
|
||||
#include "dialog.h"
|
||||
|
||||
extern WButtonBar *the_bar;
|
||||
extern WLabel *the_prompt;
|
||||
extern WLabel *the_hint;
|
||||
extern Dlg_head *midnight_dlg;
|
||||
|
||||
extern struct WMenu *the_menubar;
|
||||
|
||||
#endif
|
@ -116,15 +116,6 @@ char *get_mc_lib_dir (void);
|
||||
int maybe_cd (int move_up_dir);
|
||||
void do_possible_cd (const char *dir);
|
||||
|
||||
#ifdef WANT_WIDGETS
|
||||
extern WButtonBar *the_bar;
|
||||
extern WLabel *the_prompt;
|
||||
extern WLabel *the_hint;
|
||||
extern Dlg_head *midnight_dlg;
|
||||
|
||||
extern struct WMenu *the_menubar;
|
||||
#endif /* WANT_WIDGETS */
|
||||
|
||||
void done_menu (void);
|
||||
void init_menu (void);
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
||||
#include "execute.h"
|
||||
#include "widget.h"
|
||||
#include "menu.h" /* menubar_visible */
|
||||
#define WANT_WIDGETS
|
||||
#include "main-widgets.h"
|
||||
#include "main.h" /* the_menubar */
|
||||
#include "unixcompat.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user