Ticket #30: Support for x clipboard (fixup)

Fixed a typo (clipbord -> clipboard) in the code and man pages. Luckily,
mc.ini key name is unaffected.

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2010-07-11 17:08:18 +02:00
parent 686f7fab6b
commit 3d2c4edd9c
6 changed files with 22 additions and 22 deletions

View File

@ -3992,21 +3992,21 @@ contents of the selected directory.
This variable holds the lifetime of a directory cache entry in seconds. The This variable holds the lifetime of a directory cache entry in seconds. The
default value is 900 seconds. default value is 900 seconds.
.TP .TP
.I clipbord_store .I clipboard_store
This variable contains path (with options) to the external clipboard This variable contains path (with options) to the external clipboard
utility like 'xclip' to read text into X selection from file. utility like 'xclip' to read text into X selection from file.
For example: For example:
.PP .PP
.nf .nf
clipbord_store=xclip \-i clipboard_store=xclip \-i
.TP .TP
.I clipbord_paste .I clipboard_paste
This variable contains path (with options) to the external clipboard This variable contains path (with options) to the external clipboard
utility like 'xclip' to print the selection to standard out. utility like 'xclip' to print the selection to standard out.
For example: For example:
.PP .PP
.nf .nf
clipbord_store=xclip \-o clipboard_store=xclip \-o
.TP .TP
.I autodetect_codeset .I autodetect_codeset
This option allows use the `enca' command to autodetect codeset of text files This option allows use the `enca' command to autodetect codeset of text files

View File

@ -4285,23 +4285,23 @@ mc.ext\&.
просмотре в одной из панелей структуры дерева каталогов во второй панели просмотре в одной из панелей структуры дерева каталогов во второй панели
автоматически будет отображаться список файлов выбранного каталога. автоматически будет отображаться список файлов выбранного каталога.
.TP .TP
.I clipbord_store .I clipboard_store
Эта переменная позволяет назначить внешнюю программу (с параметрами) для Эта переменная позволяет назначить внешнюю программу (с параметрами) для
работы с буфером обмена, такую как 'xclip', для вставки данных в системный работы с буфером обмена, такую как 'xclip', для вставки данных в системный
буфер обмена. буфер обмена.
Например: Например:
.PP .PP
.nf .nf
clipbord_store=xclip \-i clipboard_store=xclip \-i
.TP .TP
.I clipbord_paste .I clipboard_paste
Эта переменная позволяет назначить внешнюю программу (с параметрами) для Эта переменная позволяет назначить внешнюю программу (с параметрами) для
работы с буфером обмена, такую как 'xclip', для получения данных из системного работы с буфером обмена, такую как 'xclip', для получения данных из системного
буфера обмена. буфера обмена.
Например: Например:
.PP .PP
.nf .nf
clipbord_store=xclip \-o clipboard_store=xclip \-o
.PP .PP
.I autodetect_codeset .I autodetect_codeset
.IP .IP

View File

@ -44,11 +44,11 @@ copy_file_to_ext_clip (void)
int res = 0; int res = 0;
const char *d = getenv ("DISPLAY"); const char *d = getenv ("DISPLAY");
if (d == NULL || clipbord_store_path == NULL || clipbord_store_path[0] =='\0') if (d == NULL || clipboard_store_path == NULL || clipboard_store_path[0] =='\0')
return FALSE; return FALSE;
tmp = concat_dir_and_file (home_dir, EDIT_CLIP_FILE); tmp = concat_dir_and_file (home_dir, EDIT_CLIP_FILE);
cmd = g_strconcat (clipbord_store_path, " ", tmp, " 2>/dev/null", (char *) NULL); cmd = g_strconcat (clipboard_store_path, " ", tmp, " 2>/dev/null", (char *) NULL);
if (cmd != NULL) if (cmd != NULL)
res = my_system (EXECUTE_AS_SHELL, shell, cmd); res = my_system (EXECUTE_AS_SHELL, shell, cmd);
@ -65,11 +65,11 @@ paste_to_file_from_ext_clip (void)
int res = 0; int res = 0;
const char *d = getenv ("DISPLAY"); const char *d = getenv ("DISPLAY");
if (d == NULL || clipbord_paste_path == NULL || clipbord_paste_path[0] == '\0') if (d == NULL || clipboard_paste_path == NULL || clipboard_paste_path[0] == '\0')
return FALSE; return FALSE;
tmp = concat_dir_and_file (home_dir, EDIT_CLIP_FILE); tmp = concat_dir_and_file (home_dir, EDIT_CLIP_FILE);
cmd = g_strconcat (clipbord_paste_path, " > ", tmp, " 2>/dev/null", (char *) NULL); cmd = g_strconcat (clipboard_paste_path, " > ", tmp, " 2>/dev/null", (char *) NULL);
if (cmd != NULL) if (cmd != NULL)
res = my_system (EXECUTE_AS_SHELL, shell, cmd); res = my_system (EXECUTE_AS_SHELL, shell, cmd);

View File

@ -255,8 +255,8 @@ int boot_current_is_left = 1;
int xtree_mode = 0; int xtree_mode = 0;
/* path to X clipboard utility */ /* path to X clipboard utility */
char* clipbord_store_path = NULL; char* clipboard_store_path = NULL;
char* clipbord_paste_path = NULL; char* clipboard_paste_path = NULL;
/* If set, then print to the given file the last directory we were at */ /* If set, then print to the given file the last directory we were at */
static char *last_wd_string = NULL; static char *last_wd_string = NULL;
@ -2265,8 +2265,8 @@ main (int argc, char *argv[])
free_codepages_list (); free_codepages_list ();
g_free (autodetect_codeset); g_free (autodetect_codeset);
#endif #endif
g_free (clipbord_store_path); g_free (clipboard_store_path);
g_free (clipbord_paste_path); g_free (clipboard_paste_path);
str_uninit_strings (); str_uninit_strings ();

View File

@ -67,8 +67,8 @@ extern int eight_bit_clean;
extern int full_eight_bits; extern int full_eight_bits;
#endif /* !HAVE_CHARSET */ #endif /* !HAVE_CHARSET */
extern char *clipbord_store_path; extern char *clipboard_store_path;
extern char *clipbord_paste_path; extern char *clipboard_paste_path;
extern int utf8_display; extern int utf8_display;

View File

@ -839,8 +839,8 @@ load_setup (void)
if (buffer != NULL) if (buffer != NULL)
utf8_display = str_isutf8 (buffer); utf8_display = str_isutf8 (buffer);
#endif /* HAVE_CHARSET */ #endif /* HAVE_CHARSET */
clipbord_store_path = mc_config_get_string (mc_main_config, "Misc", "clipboard_store", ""); clipboard_store_path = mc_config_get_string (mc_main_config, "Misc", "clipboard_store", "");
clipbord_paste_path = mc_config_get_string (mc_main_config, "Misc", "clipboard_paste", ""); clipboard_paste_path = mc_config_get_string (mc_main_config, "Misc", "clipboard_paste", "");
} }
gboolean gboolean
@ -872,8 +872,8 @@ save_setup (void)
get_codepage_id (default_source_codepage)); get_codepage_id (default_source_codepage));
mc_config_set_string (mc_main_config, "Misc", "autodetect_codeset", autodetect_codeset); mc_config_set_string (mc_main_config, "Misc", "autodetect_codeset", autodetect_codeset);
#endif /* HAVE_CHARSET */ #endif /* HAVE_CHARSET */
mc_config_set_string (mc_main_config, "Misc", "clipboard_store", clipbord_store_path); mc_config_set_string (mc_main_config, "Misc", "clipboard_store", clipboard_store_path);
mc_config_set_string (mc_main_config, "Misc", "clipboard_paste", clipbord_paste_path); mc_config_set_string (mc_main_config, "Misc", "clipboard_paste", clipboard_paste_path);
tmp_profile = g_build_filename (home_dir, MC_USERCONF_DIR, MC_CONFIG_FILE, NULL); tmp_profile = g_build_filename (home_dir, MC_USERCONF_DIR, MC_CONFIG_FILE, NULL);
ret = mc_config_save_to_file (mc_main_config, tmp_profile, NULL); ret = mc_config_save_to_file (mc_main_config, tmp_profile, NULL);