From 344723bda10ab1e67e89258dcc864880c124b8c8 Mon Sep 17 00:00:00 2001 From: zeljko Date: Fri, 20 Mar 2015 19:55:26 +0000 Subject: [PATCH] Gtk2: do not set TStatusBar panel text if panel is ownerdrawn. issue #27695 git-svn-id: trunk@48435 - --- lcl/interfaces/gtk2/gtk2proc.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lcl/interfaces/gtk2/gtk2proc.inc b/lcl/interfaces/gtk2/gtk2proc.inc index e61ae05a01..169416a662 100644 --- a/lcl/interfaces/gtk2/gtk2proc.inc +++ b/lcl/interfaces/gtk2/gtk2proc.inc @@ -6171,6 +6171,9 @@ begin else PanelText := ''; + if (CurPanel <> nil) and (CurPanel.Style = psOwnerDraw) then + PanelText := ''; + ContextID := gtk_statusbar_get_context_id(PGTKStatusBar(StatusPanelWidget), 'state'); //DebugLn(' PanelText="',PanelText,'"');