mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 09:20:10 +02:00
This commit is contained in:
parent
4f6cf9605a
commit
5adcd2c308
@ -1773,10 +1773,19 @@ begin
|
|||||||
begin
|
begin
|
||||||
MainView := gtk_icon_view_new_with_model(TreeModel);
|
MainView := gtk_icon_view_new_with_model(TreeModel);
|
||||||
TreeSelection := nil;
|
TreeSelection := nil;
|
||||||
if TLVHack(AWinControl).IconOptions.Arrangement = iaTop then
|
if TLVHack(AWinControl).IconOptions.AutoArrange then
|
||||||
gtk_icon_view_set_columns(PGtkIconView(MainView), -1)
|
begin
|
||||||
else
|
//MaxM: if we have only Horizontal bar active then set columns to Max
|
||||||
gtk_icon_view_set_columns(PGtkIconView(MainView), 1);
|
if TLVHack(AWinControl).Scrollbars in [ssHorizontal, ssAutoHorizontal] then
|
||||||
|
gtk_icon_view_set_columns(PGtkIconView(MainView), MaxInt)
|
||||||
|
else gtk_icon_view_set_columns(PGtkIconView(MainView), -1);
|
||||||
|
end
|
||||||
|
else begin
|
||||||
|
//We mimic the behavior of Windows although we should take scrollbars into account
|
||||||
|
if TLVHack(AWinControl).IconOptions.Arrangement = iaTop then
|
||||||
|
gtk_icon_view_set_columns(PGtkIconView(MainView), -1)
|
||||||
|
else gtk_icon_view_set_columns(PGtkIconView(MainView), MaxInt);
|
||||||
|
end;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user