* file.c (panel_get_file): Make static.
* filegui.h: Eliminate use of WANT_WIDGETS. * setup.h: Likewise. * menu.h: Declare struct WMenu. * main.h: Don't include menu.h, use forward declaration.
Этот коммит содержится в:
родитель
e0194b11a0
Коммит
2538dbfdd3
@ -1,5 +1,11 @@
|
|||||||
2002-11-11 Pavel Roskin <proski@gnu.org>
|
2002-11-11 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* file.c (panel_get_file): Make static.
|
||||||
|
* filegui.h: Eliminate use of WANT_WIDGETS.
|
||||||
|
* setup.h: Likewise.
|
||||||
|
* menu.h: Declare struct WMenu.
|
||||||
|
* main.h: Don't include menu.h, use forward declaration.
|
||||||
|
|
||||||
* dlg.h: Move movefn definition ...
|
* dlg.h: Move movefn definition ...
|
||||||
* win.h: ... where it's used. Remove unused definitions.
|
* win.h: ... where it's used. Remove unused definitions.
|
||||||
* win.c: Remove unused code.
|
* win.c: Remove unused code.
|
||||||
|
@ -1554,7 +1554,7 @@ erase_dir_iff_empty (FileOpContext *ctx, char *s)
|
|||||||
/* {{{ Panel operate routines */
|
/* {{{ Panel operate routines */
|
||||||
|
|
||||||
/* Returns currently selected file or the first marked file if there is one */
|
/* Returns currently selected file or the first marked file if there is one */
|
||||||
char *
|
static char *
|
||||||
panel_get_file (WPanel *panel, struct stat *stat_buf)
|
panel_get_file (WPanel *panel, struct stat *stat_buf)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -1,14 +1,6 @@
|
|||||||
#ifndef __FILEGUI_H
|
#ifndef __FILEGUI_H
|
||||||
#define __FILEGUI_H
|
#define __FILEGUI_H
|
||||||
|
|
||||||
/*
|
|
||||||
* GUI callback routines
|
|
||||||
*/
|
|
||||||
|
|
||||||
void fmd_init_i18n (int force);
|
void fmd_init_i18n (int force);
|
||||||
|
|
||||||
#ifdef WANT_WIDGETS
|
|
||||||
char *panel_get_file (WPanel *panel, struct stat *stat_buf);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -109,7 +109,7 @@ WPanel *right_panel;
|
|||||||
WTree *the_tree;
|
WTree *the_tree;
|
||||||
|
|
||||||
/* The Menubar */
|
/* The Menubar */
|
||||||
WMenu *the_menubar;
|
struct WMenu *the_menubar;
|
||||||
|
|
||||||
/* Pointers to the selected and unselected panel */
|
/* Pointers to the selected and unselected panel */
|
||||||
WPanel *current_panel = NULL;
|
WPanel *current_panel = NULL;
|
||||||
|
@ -158,8 +158,9 @@ extern WLabel *the_hint;
|
|||||||
extern Dlg_head *midnight_dlg;
|
extern Dlg_head *midnight_dlg;
|
||||||
extern Dlg_head *edit_dlg;
|
extern Dlg_head *edit_dlg;
|
||||||
extern WLabel *process_status;
|
extern WLabel *process_status;
|
||||||
#include "menu.h"
|
|
||||||
extern WMenu *the_menubar;
|
struct WMenu;
|
||||||
|
extern struct WMenu *the_menubar;
|
||||||
#endif /* WANT_WIDGETS */
|
#endif /* WANT_WIDGETS */
|
||||||
|
|
||||||
void edition_pre_exec (void);
|
void edition_pre_exec (void);
|
||||||
|
@ -31,7 +31,7 @@ typedef sMenu *Menu;
|
|||||||
extern int menubar_visible;
|
extern int menubar_visible;
|
||||||
|
|
||||||
/* The button bar menu */
|
/* The button bar menu */
|
||||||
typedef struct {
|
typedef struct WMenu {
|
||||||
Widget widget;
|
Widget widget;
|
||||||
|
|
||||||
int active; /* If the menubar is in use */
|
int active; /* If the menubar is in use */
|
||||||
|
@ -33,7 +33,7 @@ enum panel_display_enum {
|
|||||||
struct format_e;
|
struct format_e;
|
||||||
struct hist_entry;
|
struct hist_entry;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct WPanel {
|
||||||
Widget widget;
|
Widget widget;
|
||||||
dir_list dir; /* Directory contents */
|
dir_list dir; /* Directory contents */
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ static const struct {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
panel_save_setup (WPanel *panel, char *section)
|
panel_save_setup (struct WPanel *panel, char *section)
|
||||||
{
|
{
|
||||||
char buffer [BUF_TINY];
|
char buffer [BUF_TINY];
|
||||||
int i;
|
int i;
|
||||||
@ -299,7 +299,7 @@ panel_save_type (char *section, int type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
save_panel_types ()
|
save_panel_types (void)
|
||||||
{
|
{
|
||||||
int type;
|
int type;
|
||||||
|
|
||||||
|
11
src/setup.h
11
src/setup.h
@ -7,17 +7,14 @@ void save_configure (void);
|
|||||||
void load_setup (void);
|
void load_setup (void);
|
||||||
void save_setup (void);
|
void save_setup (void);
|
||||||
void done_setup (void);
|
void done_setup (void);
|
||||||
#ifdef WANT_WIDGETS
|
|
||||||
void panel_save_setup (WPanel *panel, char *section);
|
|
||||||
void panel_load_setup (WPanel *panel, char *section);
|
|
||||||
#else
|
|
||||||
void panel_save_setup ();
|
|
||||||
void panel_load_setup ();
|
|
||||||
#endif
|
|
||||||
void load_key_defs (void);
|
void load_key_defs (void);
|
||||||
void save_panel_types (void);
|
void save_panel_types (void);
|
||||||
char *load_anon_passwd (void);
|
char *load_anon_passwd (void);
|
||||||
|
|
||||||
|
struct WPanel;
|
||||||
|
void panel_save_setup (struct WPanel *panel, char *section);
|
||||||
|
void panel_load_setup (struct WPanel *panel, char *section);
|
||||||
|
|
||||||
extern char *profile_name;
|
extern char *profile_name;
|
||||||
extern char *global_profile_name;
|
extern char *global_profile_name;
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user