mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 07:09:28 +02:00
lcl: gtk2: less hints
git-svn-id: trunk@42290 -
This commit is contained in:
parent
a7d3638143
commit
b538b89c23
@ -629,7 +629,7 @@ begin
|
|||||||
if not WSCheckHandleAllocated(ACustomListBox, 'SetStyle') then
|
if not WSCheckHandleAllocated(ACustomListBox, 'SetStyle') then
|
||||||
Exit;
|
Exit;
|
||||||
Widget := GetWidgetInfo({%H-}Pointer(ACustomListBox.Handle), True)^.CoreWidget;
|
Widget := GetWidgetInfo({%H-}Pointer(ACustomListBox.Handle), True)^.CoreWidget;
|
||||||
AStyle := PtrInt(g_object_get_data(PGObject(Widget), 'lclcustomlistboxstyle'));
|
AStyle := {%H-}PtrInt(g_object_get_data(PGObject(Widget), 'lclcustomlistboxstyle'));
|
||||||
if (AStyle <> Ord(ACustomListBox.Style)) then
|
if (AStyle <> Ord(ACustomListBox.Style)) then
|
||||||
RecreateWnd(ACustomListBox);
|
RecreateWnd(ACustomListBox);
|
||||||
end;
|
end;
|
||||||
@ -770,7 +770,7 @@ begin
|
|||||||
g_signal_connect_after(Selection, 'changed',
|
g_signal_connect_after(Selection, 'changed',
|
||||||
G_CALLBACK(@gtk2ListBoxSelectionChangedAfter), WidgetInfo);
|
G_CALLBACK(@gtk2ListBoxSelectionChangedAfter), WidgetInfo);
|
||||||
|
|
||||||
g_object_set_data(PGObject(TVWidget), 'lclcustomlistboxstyle', gPointer(Ord(TListBox(AWinControl).Style)));
|
g_object_set_data(PGObject(TVWidget), 'lclcustomlistboxstyle', {%H-}gPointer(Ord(TListBox(AWinControl).Style)));
|
||||||
|
|
||||||
// Sets the callbacks
|
// Sets the callbacks
|
||||||
SetCallbacks(p, WidgetInfo);
|
SetCallbacks(p, WidgetInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user