gtk intf: TListBox, TComboBox now use GTK_SELECTION_SINGLE to prevent auto selection by the gtk

git-svn-id: trunk@10584 -
This commit is contained in:
mattias 2007-02-05 11:16:07 +00:00
parent 8d75f957cf
commit c851dfb460

View File

@ -3490,7 +3490,7 @@ begin
else SelectionMode:= GTK_SELECTION_MULTIPLE;
end
else
SelectionMode:= GTK_SELECTION_BROWSE;
SelectionMode:= GTK_SELECTION_SINGLE;
case AControl.fCompStyle of
csListBox, csCheckListBox:
@ -4869,6 +4869,10 @@ begin
gtk_combo_disable_activate(Widget);
gtk_combo_set_case_sensitive(Widget, GdkTrue);
// Prevents the OnSelect event be fired after inserting the first item
// or deleting the selected item
gtk_list_set_selection_mode(PGtkList(Widget^.List),GTK_SELECTION_SINGLE);
// Items
ItemList:= TGtkListStringList.Create(PGtkList(Widget^.List),ComboBox,False);