Browse Source

fixed missing history.h include

Enrico Weigelt, metux IT service 16 years ago
parent
commit
9ac56b58ac
9 changed files with 12 additions and 5 deletions
  1. 1 0
      src/cmd.c
  2. 1 1
      src/ext.c
  3. 1 0
      src/hotlist.c
  4. 2 1
      src/panelize.c
  5. 1 0
      src/tree.c
  6. 2 1
      src/user.c
  7. 1 1
      src/view.c
  8. 2 1
      vfs/ftpfs.c
  9. 1 0
      vfs/utilvfs.c

+ 1 - 0
src/cmd.c

@@ -61,6 +61,7 @@
 #include "setup.h"		/* save_setup() */
 #include "profile.h"		/* PROFILE_NAME */
 #include "execute.h"		/* toggle_panels() */
+#include "history.h"
 
 #ifndef MAP_FILE
 #   define MAP_FILE 0

+ 1 - 1
src/ext.c

@@ -36,7 +36,7 @@
 #include "ext.h"
 #include "view.h"
 #include "execute.h"
-
+#include "history.h"
 #include "cons.saver.h"
 #include "layout.h"
 

+ 1 - 0
src/hotlist.c

@@ -51,6 +51,7 @@
 #include "key.h"		/* KEY_M_CTRL */
 #include "command.h"		/* cmdline */
 #include "glibcompat.h"		/* g_strlcpy for glib < 2.0 */
+#include "history.h"
 
 #define UX		5
 #define UY		2

+ 2 - 1
src/panelize.c

@@ -43,6 +43,7 @@
 #include "panel.h"		/* current_panel */
 #include "main.h"		/* repaint_screen */
 #include "panelize.h"
+#include "history.h"
 
 #define UX		5
 #define UY		2
@@ -226,7 +227,7 @@ add2panelize_cmd (void)
     if (pname->buffer && (*pname->buffer)) {
 	label = input_dialog (_(" Add to external panelize "), 
 		_(" Enter command label: "), 
-		MC_HISTORY_PANELIZE_ADD,
+		MC_HISTORY_FM_PANELIZE_ADD,
 			      "");
 	if (!label)
 	    return;

+ 1 - 0
src/tree.c

@@ -49,6 +49,7 @@
 #include "tree.h"
 #include "treestore.h"
 #include "cmd.h"
+#include "history.h"
 
 #define tlines(t) (t->is_panel ? t->widget.lines-2 - (show_mini_info ? 2 : 0) : t->widget.lines)
 

+ 2 - 1
src/user.c

@@ -33,6 +33,7 @@
 #include "layout.h"
 #include "execute.h"
 #include "setup.h"
+#include "history.h"
 
 #include "../edit/edit.h"		/* BLOCK_FILE */
 #include "../edit/edit-widget.h"	/* WEdit */
@@ -604,7 +605,7 @@ execute_menu_command (WEdit *edit_widget, const char *commands)
 	    if (*commands == '}'){
 		char *tmp;
 		*parameter = 0;
-		parameter = input_dialog (_(" Parameter "), prompt, MC_HISTORY_FM_EXEC_PARAM, "");
+		parameter = input_dialog (_(" Parameter "), prompt, MC_HISTORY_FM_MENU_EXEC_PARAM, "");
 		if (!parameter || !*parameter){
 		    /* User canceled */
 		    fclose (cmd_file);

+ 1 - 1
src/view.c

@@ -62,7 +62,7 @@
 #include "execute.h"
 #include "main.h"		/* slow_terminal */
 #include "view.h"
-
+#include "history.h"
 #include "charsets.h"
 #include "selcodepage.h"
 

+ 2 - 1
vfs/ftpfs.c

@@ -73,6 +73,7 @@ What to do with this?
 #include "../src/tty.h"		/* enable/disable interrupt key */
 #include "../src/wtools.h"	/* message() */
 #include "../src/main.h"	/* print_vfs_message */
+#include "../src/history.h"
 #include "utilvfs.h"
 #include "xdirentry.h"
 #include "vfs.h"
@@ -499,7 +500,7 @@ ftpfs_login_server (struct vfs_class *me, struct vfs_s_super *super,
 		p = g_strdup_printf (_
 				     ("FTP: Account required for user %s"),
 				     SUP.user);
-		op = input_dialog (p, _("Account:"), MC_HISTORY_FTPFS_ACCOUNT(char *) NULL, "");
+		op = input_dialog (p, _("Account:"), MC_HISTORY_FTPFS_ACCOUNT, "");
 		g_free (p);
 		if (op == NULL)
 		    ERRNOR (EPERM, 0);

+ 1 - 0
vfs/utilvfs.c

@@ -28,6 +28,7 @@
 #include "utilvfs.h"
 #include "vfs.h"
 #include "../src/unixcompat.h"
+#include "../src/history.h"
 
 /* Extract the hostname and username from the path */
 /* path is in the form: [user@]hostname:port/remote-dir, e.g.: