mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 23:00:35 +02:00
gtk2: added check before SetMainWidget call
git-svn-id: trunk@12255 -
This commit is contained in:
parent
9912f6cd2a
commit
83df47bec7
@ -1296,7 +1296,8 @@ begin
|
||||
|
||||
SetMainWidget(Box, ComboWidget);
|
||||
SetMainWidget(Box, GTK_BIN(ComboWidget)^.child);
|
||||
SetMainWidget(Box, PGtkComboBoxPrivate(PGtkComboBox(ComboWidget)^.priv)^.button);
|
||||
if PGtkComboBoxPrivate(PGtkComboBox(ComboWidget)^.priv)^.button <> nil then
|
||||
SetMainWidget(Box, PGtkComboBoxPrivate(PGtkComboBox(ComboWidget)^.priv)^.button);
|
||||
|
||||
WidgetInfo^.CoreWidget := ComboWidget;
|
||||
WidgetInfo^.ClientWidget := Box;
|
||||
|
Loading…
Reference in New Issue
Block a user