]>
Commit | Line | Data |
---|---|---|
a935ab01 | 1 | To: vim-dev@vim.org |
2 | Subject: Patch 5.7.004 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | ------------ | |
6 | ||
7 | Patch 5.7.004 | |
8 | Problem: GTK: When selecting a new font, Vim can crash. | |
9 | Solution: In gui_mch_init_font() unreference the old font, not the new one. | |
10 | Files: src/gui_gtk_x11.c | |
11 | ||
12 | ||
13 | *** ../vim-5.7.3/src/gui_gtk_x11.c Tue Jun 20 15:08:20 2000 | |
14 | --- src/gui_gtk_x11.c Sat Aug 5 14:22:57 2000 | |
15 | *************** | |
16 | *** 2205,2211 **** | |
17 | } | |
18 | ||
19 | if (gui.norm_font != 0) | |
20 | ! gdk_font_unref(font); | |
21 | gui.norm_font = font; | |
22 | #ifdef USE_FONTSET | |
23 | if (font->type == GDK_FONT_FONTSET) | |
24 | --- 2205,2211 ---- | |
25 | } | |
26 | ||
27 | if (gui.norm_font != 0) | |
28 | ! gdk_font_unref(gui.norm_font); | |
29 | gui.norm_font = font; | |
30 | #ifdef USE_FONTSET | |
31 | if (font->type == GDK_FONT_FONTSET) | |
32 | *** ../vim-5.7.3/src/version.c Fri Aug 4 21:51:08 2000 | |
33 | --- src/version.c Sat Aug 5 14:23:49 2000 | |
34 | *************** | |
35 | *** 439,440 **** | |
36 | --- 439,442 ---- | |
37 | { /* Add new patch number below this line */ | |
38 | + /**/ | |
39 | + 4, | |
40 | /**/ | |
41 | ||
42 | -- | |
43 | I have a watch cat! Just break in and she'll watch. | |
44 | ||
45 | /// Bram Moolenaar Bram@moolenaar.net http://www.moolenaar.net \\\ | |
46 | \\\ Vim: http://www.vim.org ICCF Holland: http://iccf-holland.org /// |