home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unreleased / patches / 5.6a.020 < prev    next >
Encoding:
Internet Message Format  |  2000-01-10  |  5.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6a.020
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6a.020
  8. Problem:    GUI GTK: Could not set display for gvim.
  9. Solution:   Add "-display" and "--display" arguments. (Marcin Dalecki)
  10. Files:        src/gui_gtk_x11.c, src/main.c, runtime/doc/gui_x11.txt
  11.  
  12.  
  13. *** ../vim-5.6a.19/src/gui_gtk_x11.c    Sat Jan  8 23:13:04 2000
  14. --- src/gui_gtk_x11.c    Tue Jan 11 16:50:07 2000
  15. ***************
  16. *** 183,189 ****
  17.       {"-italicfont",    ".italicFont",        XrmoptionSepArg,    NULL},
  18.       {"+reverse",    "*reverseVideo",    XrmoptionNoArg,    "False"},
  19.       {"+rv",        "*reverseVideo",    XrmoptionNoArg,    "False"},
  20. -     {"-display",    ".display",        XrmoptionSepArg,    NULL},
  21.       {"-iconic",        "*iconic",        XrmoptionNoArg,    "True"},
  22.       {"-name",        ".name",        XrmoptionSepArg,    NULL},
  23.       {"-bw",        ".borderWidth",        XrmoptionSepArg,    NULL},
  24. --- 183,188 ----
  25. ***************
  26. *** 210,215 ****
  27. --- 209,216 ----
  28.       "--gtk-no-debug=",
  29.       "--g-fatal-warnings",
  30.       "--gtk-module=",
  31. +     "-display",
  32. +     "--display",
  33.       NULL
  34.   };
  35.   
  36. ***************
  37. *** 263,269 ****
  38.           mch_memmove(&argv[arg], &argv[arg + 1],
  39.                   (*argc - arg) * sizeof(char *));
  40.           if (cmdline_options[i].argKind != XrmoptionNoArg) {
  41. !             /* Move the options argument as well */
  42.               gui_argv[gui_argc++] = argv[arg];
  43.               if (--*argc > arg)
  44.               mch_memmove(&argv[arg], &argv[arg + 1],
  45. --- 264,270 ----
  46.           mch_memmove(&argv[arg], &argv[arg + 1],
  47.                   (*argc - arg) * sizeof(char *));
  48.           if (cmdline_options[i].argKind != XrmoptionNoArg) {
  49. !             /* Move the option argument as well. */
  50.               gui_argv[gui_argc++] = argv[arg];
  51.               if (--*argc > arg)
  52.               mch_memmove(&argv[arg], &argv[arg + 1],
  53. ***************
  54. *** 283,298 ****
  55.       {
  56.           if (strncmp(argv[arg], *gtk_option, strlen(*gtk_option)) == 0)
  57.           {
  58. !         gui_argv[gui_argc++] = argv[arg];
  59.           if (--*argc > arg)
  60. -             mch_memmove(&argv[arg], &argv[arg + 1],
  61. -                 (*argc - arg) * sizeof(char *));
  62. -         if (strncmp(*gtk_option, "--xim", 5) == 0)
  63.           {
  64. !             gui_argv[gui_argc++] = argv[arg];
  65. !             if (--*argc > arg)
  66. !             mch_memmove(&argv[arg], &argv[arg + 1],
  67.                       (*argc - arg) * sizeof(char *));
  68.           }
  69.           break;
  70.           }
  71. --- 284,310 ----
  72.       {
  73.           if (strncmp(argv[arg], *gtk_option, strlen(*gtk_option)) == 0)
  74.           {
  75. !         /* Replace the standard X argument "-display" with the GTK
  76. !          * argument "--display". */
  77. !         if (strncmp(*gtk_option, "-display", 8) == 0)
  78. !             gui_argv[gui_argc++] =
  79. !                    (char *)vim_strsave((char_u *)"--display");
  80. !         else
  81. !             gui_argv[gui_argc++] = argv[arg];
  82.           if (--*argc > arg)
  83.           {
  84. !             mch_memmove(&argv[arg], &argv[arg + 1],
  85. !                           (*argc - arg) * sizeof(char *));
  86. !             /* Move the option argument as well, if there is one. */
  87. !             if (strncmp(*gtk_option, "--xim", 5) == 0
  88. !                 || strncmp(*gtk_option, "-display", 8) == 0
  89. !                 || strncmp(*gtk_option, "--display", 9) == 0)
  90. !             {
  91. !             gui_argv[gui_argc++] = argv[arg];
  92. !             if (--*argc > arg)
  93. !                 mch_memmove(&argv[arg], &argv[arg + 1],
  94.                       (*argc - arg) * sizeof(char *));
  95. +             }
  96.           }
  97.           break;
  98.           }
  99. *** ../vim-5.6a.19/src/main.c    Mon Dec 20 09:59:08 1999
  100. --- src/main.c    Tue Jan 11 16:40:22 2000
  101. ***************
  102. *** 203,208 ****
  103. --- 203,209 ----
  104.       main_msg("-font <font>\t\tUse <font> for normal text (also: -fn)");
  105.       main_msg("-geometry <geom>\tUse <geom> for initial geometry (also: -geom)");
  106.       main_msg("-reverse\t\tUse reverse video (also: -rv)");
  107. +     main_msg("-display <display>\tRun vim on <display> (also: --display)");
  108.   #endif
  109.       mch_windexit(1);
  110.   }
  111. *** ../vim-5.6a.19/runtime/doc/gui_x11.txt    Mon Dec 20 09:59:30 1999
  112. --- runtime/doc/gui_x11.txt    Tue Jan 11 16:47:46 2000
  113. ***************
  114. *** 1,4 ****
  115. ! *gui_x11.txt*   For Vim version 5.6a.  Last change: 1999 Dec 09
  116.   
  117.   
  118.             VIM REFERENCE MANUAL    by Bram Moolenaar
  119. --- 1,4 ----
  120. ! *gui_x11.txt*   For Vim version 5.6a.  Last change: 2000 Jan 01
  121.   
  122.   
  123.             VIM REFERENCE MANUAL    by Bram Moolenaar
  124. ***************
  125. *** 249,254 ****
  126. --- 249,255 ----
  127.       -fn  or  -font        .font        font name for the text
  128.       -geom  or  -geometry    .geometry        size of the gvim window
  129.       -rv  or  -reverse        *reverseVideo    white text on black background
  130. +     -display                    display to be used
  131.   
  132.   To set the font, see |'guifont'|.  For GTK, there's also a menu option that
  133.   does this.
  134. ***************
  135. *** 265,270 ****
  136. --- 266,272 ----
  137.       --gtk-no-debug
  138.       --g-fatal-warnings
  139.       --gtk-module
  140. +     --display    (GTK+ counterpart of -display; works the same way.)
  141.   
  142.   As for colors, vim's color settings (for syntax highlighting) is still
  143.   done the traditional vim way.  See |:highlight| for more help.
  144. *** ../vim-5.6a.19/src/version.c    Mon Jan 10 21:28:45 2000
  145. --- src/version.c    Tue Jan 11 16:48:03 2000
  146. ***************
  147. *** 420,421 ****
  148. --- 420,423 ----
  149.   {   /* Add new patch number below this line */
  150. + /**/
  151. +     20,
  152.   /**/
  153.  
  154. -- 
  155. hundred-and-one symptoms of being an internet addict:
  156. 106. When told to "go to your room" you inform your parents that you
  157.      can't...because you were kicked out and banned.
  158.  
  159. --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\--
  160.   \ \    www.vim.org/iccf      www.moolenaar.net       www.vim.org    / /
  161.