gtk2: clear content of combobox when setting ItemIndex to -1

git-svn-id: trunk@34097 -
This commit is contained in:
blikblum 2011-12-10 21:41:49 +00:00
parent 14c6d767c7
commit b360e5a0bf

View File

@ -1769,6 +1769,9 @@ begin
Inc(WidgetInfo^.ChangeLock);
gtk_combo_box_set_active(PGtkComboBox(p), NewIndex);
if (NewIndex = -1) and gtk_is_combo_box_entry(p) then
gtk_entry_set_text(PGtkEntry(GTK_BIN(p)^.child), PChar(''));
LCLIndex := WidgetInfo^.UserData;
if not Assigned(LCLIndex) then
begin