Gtk2: fixed assertion from gtk2 library. issue #23099

git-svn-id: trunk@39035 -
This commit is contained in:
zeljko 2012-10-10 10:14:01 +00:00
parent d433d82e1c
commit a81d9e96aa

View File

@ -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(