mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 07:18:48 +02:00
lcl: gtk2: warn only once about liboverlay
git-svn-id: trunk@37714 -
This commit is contained in:
parent
147019bc32
commit
f23c1e5ca7
@ -147,6 +147,9 @@ type
|
||||
function GetWidgetHAdjustment(AWidget: PGTKWidget): PGTKAdjustment;
|
||||
function GetWidgetVAdjustment(AWidget: PGTKWidget): PGTKAdjustment;
|
||||
|
||||
var
|
||||
HasWarnedLibOverlay: boolean = false;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
@ -193,8 +196,11 @@ begin
|
||||
or (GetWidgetClassName(GTK_SCROLLED_WINDOW(Widget)^.hscrollbar)='OsScrollbar')
|
||||
then begin
|
||||
// ubuntu liboverlay scrollbar is active
|
||||
if not HasWarnedLibOverlay then begin
|
||||
HasWarnedLibOverlay:=true;
|
||||
debugln(['WARNING: liboverlay_scrollbar is active for control=',AWinControl,'. Set environment option LIBOVERLAY_SCROLLBAR=0 before starting this application, otherwise scrollbars will not work properly.']);
|
||||
end;
|
||||
end;
|
||||
|
||||
ScrollBar:=GTK_SCROLLED_WINDOW(Widget)^.hscrollbar;
|
||||
if (GetWidgetClassName(ScrollBar)='OsScrollbar')
|
||||
|
Loading…
Reference in New Issue
Block a user