mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-29 20:22:39 +02:00
fixed gtk2 listbox setborder to TODO
git-svn-id: trunk@7713 -
This commit is contained in:
parent
ca797822c7
commit
5c8dad6974
@ -487,26 +487,12 @@ var
|
||||
Widget: PGtkWidget;// pointer to gtk-widget
|
||||
begin
|
||||
Handle := ACustomListBox.Handle;
|
||||
if (ACustomListBox.fCompStyle in [csListBox, csCheckListBox]) then
|
||||
begin
|
||||
{ In TempWidget, a viewport is stored }
|
||||
Widget:= PGtkWidget(PGtkBin(Handle)^.child);
|
||||
if ACustomListBox.BorderStyle = TBorderStyle(bsSingle)
|
||||
then
|
||||
gtk_viewport_set_shadow_type(PGtkViewPort(Widget), GTK_SHADOW_IN)
|
||||
else
|
||||
gtk_viewport_set_shadow_type(PGtkViewPort(Widget), GTK_SHADOW_NONE);
|
||||
end else
|
||||
if ACustomListBox.fCompStyle = csCListBox then
|
||||
begin
|
||||
if ACustomListBox.BorderStyle = TBorderStyle(bsSingle)
|
||||
then
|
||||
gtk_viewport_set_shadow_type(
|
||||
PGtkViewPort(PGtkBin(Handle)^.Child), GTK_SHADOW_NONE)
|
||||
else
|
||||
gtk_viewport_set_shadow_type(
|
||||
PGtkViewPort(PGtkBin(Handle)^.Child), GTK_SHADOW_IN);
|
||||
end;
|
||||
Widget:= PGtkWidget(PGtkBin(Handle)^.child);
|
||||
if ACustomListBox.BorderStyle = TBorderStyle(bsSingle)
|
||||
then
|
||||
gtk_viewport_set_shadow_type(PGtkViewPort(Widget), GTK_SHADOW_IN)
|
||||
else
|
||||
gtk_viewport_set_shadow_type(PGtkViewPort(Widget), GTK_SHADOW_NONE);
|
||||
end;
|
||||
|
||||
procedure TGtkWSCustomListBox.SetItemIndex(const ACustomListBox: TCustomListBox;
|
||||
|
@ -319,7 +319,8 @@ end;
|
||||
|
||||
procedure TGtk2WSCustomListBox.SetBorder(const ACustomListBox: TCustomListBox);
|
||||
begin
|
||||
inherited SetBorder(ACustomListBox);
|
||||
// TODO
|
||||
debugln('TGtk2WSCustomListBox.SetBorder TODO');
|
||||
end;
|
||||
|
||||
procedure TGtk2WSCustomListBox.SetItemIndex(
|
||||
|
Loading…
Reference in New Issue
Block a user