From: | "Harald van Dijk (truedfx)" <truedfx@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-lang/lazarus/files: lazarus-0.9.28.2-bug0015627.patch |
Date: | Sat, 21 Aug 2010 18:29:46 |
Message-Id: | 20100821182939.D3C2920051@flycatcher.gentoo.org |
1 | truedfx 10/08/21 18:29:39 |
2 | |
3 | Added: lazarus-0.9.28.2-bug0015627.patch |
4 | Log: |
5 | Fix access violation in TGtk2WSCustomListBox with some GTK+ versions (#333761 by suilenroc1183@×××××.de) |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-lang/lazarus/files/lazarus-0.9.28.2-bug0015627.patch |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/lazarus/files/lazarus-0.9.28.2-bug0015627.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/lazarus/files/lazarus-0.9.28.2-bug0015627.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: lazarus-0.9.28.2-bug0015627.patch |
15 | =================================================================== |
16 | --- trunk/lcl/interfaces/gtk2/gtk2wsstdctrls.pp 2009/12/08 12:38:50 23028 |
17 | +++ trunk/lcl/interfaces/gtk2/gtk2wsstdctrls.pp 2010/02/12 02:22:04 23695 |
18 | @@ -477,16 +477,6 @@ |
19 | WidgetInfo: PWidgetInfo; |
20 | Selection: PGtkTreeSelection; |
21 | Path: PGtkTreePath; |
22 | - |
23 | - procedure ClearCursor; inline; |
24 | - begin |
25 | - if gtk_tree_row_reference_valid(PGtkTreeView(Widget)^.priv^.cursor) then |
26 | - begin |
27 | - gtk_tree_row_reference_free(PGtkTreeView(Widget)^.priv^.cursor); |
28 | - PGtkTreeView(Widget)^.priv^.cursor := nil; |
29 | - end; |
30 | - end; |
31 | - |
32 | begin |
33 | if not WSCheckHandleAllocated(ACustomListBox, 'SetItemIndex') then |
34 | Exit; |
35 | @@ -512,7 +502,9 @@ |
36 | end |
37 | else |
38 | begin |
39 | - ClearCursor; |
40 | + Path := gtk_tree_path_new_from_indices(0, -1); |
41 | + if PGtkTreeView(Widget)^.priv^.tree <> nil then |
42 | + gtk_tree_view_set_cursor(PGtkTreeView(Widget), Path, nil, False); |
43 | gtk_tree_selection_unselect_all(Selection); |
44 | end; |