lcl: gtk2: warn only once about liboverlay

git-svn-id: trunk@37714 -
This commit is contained in:
mattias 2012-06-21 14:30:35 +00:00
parent 147019bc32
commit f23c1e5ca7

View File

@ -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')