Lines 1-73
Link Here
|
1 |
--- src/vide.c.orig Thu May 11 03:04:39 2000 |
|
|
2 |
+++ src/vide.c Sat Jun 17 15:19:25 2000 |
3 |
@@ -224,6 +224,9 @@ |
4 |
|
5 |
getcwd(current_dir, sizeof(current_dir)); |
6 |
|
7 |
+ /* i18n support */ |
8 |
+ gtk_set_locale(); |
9 |
+ |
10 |
/* Set up handler for sigchild so that we don't get zombies */ |
11 |
new_action.sa_handler = received_sigchild; |
12 |
sigemptyset (&new_action.sa_mask); |
13 |
@@ -243,7 +246,7 @@ |
14 |
gdk_color_parse ("yellow", &TAG_COLOR); |
15 |
gdk_color_parse ("wheat", &DRAG_HILIGHT); |
16 |
COMMAND_TEXT_FONT = |
17 |
- gdk_font_load ("-adobe-courier-medium-r-normal-*-12-*-*-*-*-*-*-*"); |
18 |
+ gdk_fontset_load ("-adobe-courier-medium-r-normal-*-12-*-*-*-*-*-*-*,*"); |
19 |
|
20 |
cfg.filetypes = NULL; |
21 |
cfg.bookmarks = NULL; |
22 |
@@ -259,7 +262,7 @@ |
23 |
cfg.confirm_delete = TRUE; // not used |
24 |
cfg.confirm_overwrite = TRUE; // not used |
25 |
cfg.start_with_cwd = FALSE; |
26 |
- strncpy (cfg.viewer_command, "rxvt -e vim", |
27 |
+ strncpy (cfg.viewer_command, "xterm -e vi", |
28 |
sizeof (cfg.viewer_command)); |
29 |
cfg.window_width = 640; |
30 |
cfg.window_height = 480; |
31 |
@@ -268,7 +271,7 @@ |
32 |
cfg.divide_popup_menu = FALSE; // not used |
33 |
cfg.dir_history_max_length = 15; |
34 |
cfg.command_history_max_length = 10; |
35 |
- strncpy (cfg.xterm_command, "rxvt", sizeof (cfg.xterm_command)); |
36 |
+ strncpy (cfg.xterm_command, "xterm", sizeof (cfg.xterm_command)); |
37 |
chdir (getenv ("HOME")); |
38 |
getcwd (app.left_view.dir, PATH_MAX); |
39 |
strncpy (app.right_view.dir, app.left_view.dir, PATH_MAX); |
40 |
@@ -280,9 +283,9 @@ |
41 |
{ |
42 |
/* Setup some default filetypes */ |
43 |
add_filetype ("jpeg,jpg,png,xpm,gif", "xv,gimp", "Image Files"); |
44 |
- add_filetype ("c,cpp,h,pl,java, py", "x vim", "Source Code Files"); |
45 |
+ add_filetype ("c,cpp,h,pl,java, py", "x vi", "Source Code Files"); |
46 |
add_filetype ("o,so,a", "x nm %f | less", "Object Files"); |
47 |
- add_filetype ("htm,html,php", "netscape,x vim", "HTML Documents"); |
48 |
+ add_filetype ("htm,html,php", "netscape,x vi", "HTML Documents"); |
49 |
add_filetype ("tar.gz,tgz", "x tar xzvf %f ,x tar tzvf %f | less", |
50 |
"Gzipped Tarballs"); |
51 |
add_filetype("zip, Z", "x unzip %f", "Zip"); |
52 |
@@ -310,7 +313,7 @@ |
53 |
gchar trash_com[128]; |
54 |
gchar memo_com[128]; |
55 |
g_snprintf (trash_com, 128, "mv %%f %s", cfg.trash); |
56 |
- g_snprintf (memo_com, 128, "rxvt -e vim %s/memo", cfg.config_dir); |
57 |
+ g_snprintf (memo_com, 128, "xterm -e vi %s/memo", cfg.config_dir); |
58 |
|
59 |
add_user_command (" ", "NULL"); |
60 |
add_user_command ("Memo", memo_com); |
61 |
@@ -332,9 +335,9 @@ |
62 |
} |
63 |
if(!read_command_mode_file()) |
64 |
{ |
65 |
- add_command("mutt", "exe rxvt -e mutt"); |
66 |
- add_command("ps", "exe rxvt -e top"); |
67 |
- add_command("vi", "exe rxvt -e vim"); |
68 |
+ add_command("mutt", "exe xterm -e mutt"); |
69 |
+ add_command("ps", "exe xterm -e top"); |
70 |
+ add_command("vi", "exe xterm -e vi"); |
71 |
add_command("Backup", "/~$"); |
72 |
add_command("touch", "exe touch %{Name of new file.}"); |
73 |
} |