mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 13:39:18 +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 GetWidgetHAdjustment(AWidget: PGTKWidget): PGTKAdjustment;
|
||||||
function GetWidgetVAdjustment(AWidget: PGTKWidget): PGTKAdjustment;
|
function GetWidgetVAdjustment(AWidget: PGTKWidget): PGTKAdjustment;
|
||||||
|
|
||||||
|
var
|
||||||
|
HasWarnedLibOverlay: boolean = false;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
uses
|
uses
|
||||||
@ -193,7 +196,10 @@ begin
|
|||||||
or (GetWidgetClassName(GTK_SCROLLED_WINDOW(Widget)^.hscrollbar)='OsScrollbar')
|
or (GetWidgetClassName(GTK_SCROLLED_WINDOW(Widget)^.hscrollbar)='OsScrollbar')
|
||||||
then begin
|
then begin
|
||||||
// ubuntu liboverlay scrollbar is active
|
// ubuntu liboverlay scrollbar is active
|
||||||
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.']);
|
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;
|
end;
|
||||||
|
|
||||||
ScrollBar:=GTK_SCROLLED_WINDOW(Widget)^.hscrollbar;
|
ScrollBar:=GTK_SCROLLED_WINDOW(Widget)^.hscrollbar;
|
||||||
|
Loading…
Reference in New Issue
Block a user