Browse Source

Don't raise gui event when inserting a new tab.

woollybah 6 năm trước cách đây
mục cha
commit
9e86b18d05
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      gtk3maxgui.mod/gtkgadget.bmx

+ 3 - 0
gtk3maxgui.mod/gtkgadget.bmx

@@ -3861,6 +3861,9 @@ Type TGTKTabber Extends TGTKContainer
 	End Rem
 	End Rem
 	Method InsertListItem:Int(index:Int, text:String, tip:String, icon:Int, tag:Object)
 	Method InsertListItem:Int(index:Int, text:String, tip:String, icon:Int, tag:Object)
 
 
+		' don't create gui events when inserting new pages.
+		ignoreChange = True
+		
 		Local image:Byte Ptr
 		Local image:Byte Ptr
 
 
 		If icons And icon>=0 Then
 		If icons And icon>=0 Then