mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:59:06 +02:00
Gtk3: fixed ownerdraw combobox.
This commit is contained in:
parent
24bf163157
commit
baef5a1511
@ -7533,6 +7533,10 @@ begin
|
|||||||
// if combo doesnt use menu
|
// if combo doesnt use menu
|
||||||
if PGtkComboBox(GetContainerWidget)^.priv3^.tree_view <> nil then
|
if PGtkComboBox(GetContainerWidget)^.priv3^.tree_view <> nil then
|
||||||
g_object_set_data(PGObject(PGtkComboBox(GetContainerWidget)^.priv3^.tree_view), 'lclwidget', Self);
|
g_object_set_data(PGObject(PGtkComboBox(GetContainerWidget)^.priv3^.tree_view), 'lclwidget', Self);
|
||||||
|
// real popup menu
|
||||||
|
if PGtkComboBox(GetContainerWidget)^.priv3^.box <> nil then
|
||||||
|
g_object_set_data(PGObject(PGtkComboBox(GetContainerWidget)^.priv3^.box), 'lclwidget', Self);
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TGtk3ComboBox.GetDroppedDown: boolean;
|
function TGtk3ComboBox.GetDroppedDown: boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user