Commit a81d9e96 authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Gtk2: fixed assertion from gtk2 library. issue #23099

git-svn-id: trunk@39035 -
parent d433d82e
......@@ -1956,7 +1956,6 @@ var
Entry: PGtkWidget;
begin
WidgetInfo := GetWidgetInfo({%H-}Pointer(ACustomComboBox.Handle));
if gtk_is_combo_box_entry(WidgetInfo^.CoreWidget) then
begin
Entry := GTK_BIN(WidgetInfo^.CoreWidget)^.child;
......@@ -1968,9 +1967,13 @@ begin
else
if (PGtkEntry(Entry)^.flag0 and $1) = Ord(NewReadOnly) then
ReCreateCombo(ACustomCombobox, not NewReadOnly, WidgetInfo);
end
else
ReCreateCombo(ACustomCombobox, not NewReadOnly, WidgetInfo);
end else
begin
if ACustomComboBox.Style in [csOwnerDrawFixed, csOwnerDrawVariable] then
ReCreateCombo(ACustomCombobox, False, WidgetInfo)
else
ReCreateCombo(ACustomCombobox, not NewReadOnly, WidgetInfo);
end;
end;
class function TGtk2WSCustomComboBox.GetItems(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment