Commit Graph

143 Commits

Author SHA1 Message Date
Massimo Magnano
5adcd2c308 LCL-GTK2: Fix ListView with vsIcon and Arrangement=iaLeft. Issue #41426, merge request !437. 2025-02-16 12:42:28 +02:00
Maxim Ganetsky
dae82f367a LCL-Gtk2: Ensure that correct DestroyHandle flavor is called for TShellListView. Fixes crashes when freeing TShellListView. Issue #41238, patch by Željan and Bart. 2024-11-21 16:36:08 +03:00
Maxim Ganetsky
1c3d963184 LCL-Gtk2: Fix handling selection of simple listview in icon mode, issue #40563. Based on patch by Anton Kavalenka.
Actually it was a regression after
ed5ff63cf4.
2023-10-20 17:38:12 +03:00
Bad Sector
6a5e16239a LCL-GTK2: Fix double free in listview pixbuf due to wrong refcounting
The 'pixbuf' field in GtkCellRendererPixbuf is supposed to be private to
Gtk which handles refcounting itself, but LCL modifies it directly which
can cause refcounting mismatches, especially during the destruction of a
listview with icons (images are unref'd by both the listview destructor
and gtk itself).  Since it is exposed as a property it can be modified
using the g_object_set_property and g_value_xxx APIs which handle any
necessary refcounting, so this patch replaces the direct modification of
the pixbuf field with these APIs.  This fixes the crashes due to
refcounting mismatch.
2023-10-19 20:38:09 +03:00
Juha
dcab9e2e9c LCL-GTK2: Improve the earlier ListView speedup. Issue #40302, patch by wavebvg. 2023-06-09 16:14:25 +03:00
Juha
d8e3c3f75e LCL-GTK2: Improve the earlier ListView speedup. Issue #40302, patch by wavebvg. 2023-06-09 11:43:40 +03:00
Juha
07398d821e LCL-GTK2: Improve the earlier ListView speedup. Issue #40302, patch by wavebvg. 2023-06-09 08:07:06 +03:00
Juha
ed5ff63cf4 LCL-GTK2: Speed up ListView a LOT. Issue #40302, patch by wavebvg. 2023-06-08 10:49:22 +03:00
Martin
a135aee12a Gtk2: fix dangling pointer in TListView.Destroy. Issues #38954 #38332 2023-06-04 10:28:55 +02:00
juha
1c2402a14a LCL: Revert some optimizations with TStringListUTF8Fast. It must not be used when locale based sort order is needed. Issue #38612.
git-svn-id: trunk@64784 -
2021-03-11 18:03:35 +00:00
juha
a542627231 LCL: Use a faster compare method for case-insensitive StringList.
git-svn-id: trunk@64443 -
2021-01-30 18:36:54 +00:00
dmitry
556c5562fe bug #36281. Merged revision(s) 62516-62547 from branches/listviewsortindicator:
lcl: adding sortIndicator to the listview
........
win32: implementation of sortindicator 
........
lcl: adding autosortindicator property for the listview
........
gtk2: sortindicator implementation
........
gtk2: reverting accidental changes (unrelated to sortindicator)
........
qt5: implementing sort indicator  (seems like qt5 allows only 1 indicator per header)
........
cocoa: implementing sortIndicator
........
doc: adding short descriptions for SortIndicator and AutoSortIndicator
........

git-svn-id: trunk@62567 -
2020-01-17 01:49:23 +00:00
juha
bfd348501a LCL-GTK2: Remove a boolean param from GetWidgetInfo and use new func GetOrCreateWidgetInfo. Identify memory leaks.
git-svn-id: trunk@61684 -
2019-08-11 17:15:48 +00:00
juha
70a3929a41 LCL-GTK2: Fix CheckBox/RadioButton '_' escaping. Issue #34882, patch from Alexey Tor.
git-svn-id: trunk@60466 -
2019-02-20 09:10:22 +00:00
juha
fcf4d6583a LCL-GTK2: Fix ListView Columns '_' escaping. Issue #34882, patch from AlexeyT.
git-svn-id: trunk@60148 -
2019-01-22 12:12:51 +00:00
juha
5102a7739e LCL-GTK2: Fix TListView column widths. Issue #34044, patch from accorp.
git-svn-id: trunk@59047 -
2018-09-17 19:30:11 +00:00
ondrej
557b843294 LCL: high-dpi image list: support retina (for now Cocoa only)
git-svn-id: trunk@57240 -
2018-02-03 22:58:50 +00:00
ondrej
454fc69b9e LCL: High-DPI ImageList: rename *ForImagePPI to *ForPPI
git-svn-id: branches/HiDPIImageList@57068 -
2018-01-13 04:25:01 +00:00
ondrej
29f83c361a LCL: High-DPI ImageList: Gtk2 fixes
git-svn-id: branches/HiDPIImageList@57045 -
2018-01-11 05:00:50 +00:00
ondrej
90f22ba7fd LCL: High-DPI ImageList: LCL runtime and win32
git-svn-id: branches/HiDPIImageList@57039 -
2018-01-10 12:46:42 +00:00
michl
3705e5904a LCL: GTK2: Fixed Cannot hide TBitBtn, TFloatSpinEdit, TListBox, TCheckListBox, TMemo, TListView from TForm.OnCreate after HandleNeeded. Issue #32527
git-svn-id: trunk@56148 -
2017-10-22 21:01:39 +00:00
juha
816fe397ca LCL-GTK2: Free memory block after use. Issue #31638, patch from Anton Kavalenka.
git-svn-id: trunk@54553 -
2017-04-07 07:16:45 +00:00
juha
3ca728a0e7 LCL-Gtk2: Simplify TGtk2WSCustomListView.ItemSetState. Nil as Path param does not work for old GTK versions. Reported by Luca Olivetti.
git-svn-id: trunk@53590 -
2016-12-07 17:51:28 +00:00
juha
85e7d6da06 LCL-GTK2: Use AIndex param for column width. Fix off by 1 (ANewIndex-1) error in TGtk2WSCustomListView.ColumnMove. Solves issue #31024.
git-svn-id: trunk@53485 -
2016-11-30 14:57:40 +00:00
zeljko
2aaeaacc7b Gtk2: fixed ItemDisplayRect() returning rect when drLabel is needed.Part of issue #30055
git-svn-id: trunk@52249 -
2016-04-25 19:42:47 +00:00
zeljko
e6cb4cba87 Gtk2: fixed TListView displayRect for drLabel. issue #27509
git-svn-id: trunk@47944 -
2015-02-21 21:03:24 +00:00
zeljko
22a79968ee Gtk2: new function Gtk2_PixBufFromBitmap(), simplified usage. patch by theo. issue #27477
git-svn-id: trunk@47889 -
2015-02-18 19:34:55 +00:00
zeljko
87c3c117f1 Gtk2: fixed drawing images when TListView.OwnerData := true. issue #27469
git-svn-id: trunk@47805 -
2015-02-15 15:01:06 +00:00
zeljko
5e5ef0e82a Gtk2: fixed item height. issue #27043
git-svn-id: trunk@47418 -
2015-01-18 20:10:34 +00:00
zeljko
591d6edbff Gtk2: fixed icons size in TListView when using OnCustomDrawItem. issue #27043
git-svn-id: trunk@46853 -
2014-11-15 10:40:11 +00:00
zeljko
89f68bf251 Gtk2: include scrollbars offset in TGtk2WSCustomListView.getItemAt(). issue #26767
git-svn-id: trunk@46307 -
2014-09-24 06:15:57 +00:00
zeljko
e0fa77db3d Gtk2: fixed setting imageindex in gtkcolumn in runtime, when there's no images in column during design time.issue #22811
git-svn-id: trunk@44698 -
2014-04-12 11:14:03 +00:00
zeljko
f6fa81d118 LCL: TCustomListView: implemented SelectAll & ClearSelection for delphi compatibility. issue #19812
git-svn-id: trunk@43244 -
2013-10-14 07:35:34 +00:00
zeljko
8a567bd42b Gtk2: implemented TListView.OwnerDraw.Part of issue #25149
git-svn-id: trunk@43122 -
2013-10-06 12:39:22 +00:00
juha
7b162087fd Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
mattias
67447dd7f1 lcl: gtk2: less warnigns
git-svn-id: trunk@39265 -
2012-11-08 13:01:15 +00:00
zeljko
37eaddb272 Gtk2: use better approach for RecreateWnd in TGtk2WSCustomListView, fix rendering of icon view. issue #23171
git-svn-id: trunk@39147 -
2012-10-21 09:10:09 +00:00
zeljko
0309af8ded Gtk2: fixed clientRect of GtkTreeView, new routine GetWidgetClientRect() in gtk2proc to simplify gtk2winapi, fixed offset for custom drawn listview.
git-svn-id: trunk@39043 -
2012-10-11 09:11:48 +00:00
zeljko
48d57049f6 Gtk2: fixed TGtk2WSCustomListView.GetDisplayRect, also fixed cell renderer which sent wrong item id to owner drawn list view.issue #23094
git-svn-id: trunk@39030 -
2012-10-10 07:07:44 +00:00
zeljko
1f6e44d04f Gtk2: fixed few memleaks with PGList in TGtk2ListView.
git-svn-id: trunk@38899 -
2012-09-29 12:07:16 +00:00
zeljko
53848b11b5 Gtk2: implemented TGtk2CustomListView.ItemDisplayRect, implemented editor for listview with style vsSmallIcon, vsIcon. issue #23015
git-svn-id: trunk@38897 -
2012-09-29 11:14:16 +00:00
zeljko
0eef8e9087 Gtk2: fixed crash in GtkIconView by unref GtkColumn which isn't GtkObject.
git-svn-id: trunk@38896 -
2012-09-29 08:33:44 +00:00
zeljko
24625416e6 Gtk2: deliver LVIS_FOCUSED message. issue #23014
git-svn-id: trunk@38895 -
2012-09-29 08:17:16 +00:00
zeljko
fbd34e1260 Gtk2: fixed TIconArrangement of GtkListView.
git-svn-id: trunk@38892 -
2012-09-29 08:00:27 +00:00
blikblum
d26811409a gtk2: replace the deprecated gtk_object_get/set_data by g_object_get/set_data
git-svn-id: trunk@37751 -
2012-06-23 18:25:44 +00:00
mattias
0913bf1056 gtk2 intf: clean up
git-svn-id: trunk@36822 -
2012-04-16 21:13:15 +00:00
mattias
1d8586a848 gtk2: clean up
git-svn-id: trunk@36791 -
2012-04-15 11:46:16 +00:00
mattias
22e37e0981 gtk2: clean up
git-svn-id: trunk@36790 -
2012-04-15 11:20:46 +00:00
mattias
f7fbc97d3f gtk2: clean up
git-svn-id: trunk@36784 -
2012-04-15 01:45:34 +00:00
zeljko
37056b6883 Gtk2: cleanup gtk2wscustomlistview
git-svn-id: trunk@35674 -
2012-03-03 16:03:52 +00:00