瀏覽代碼

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

woollybah 6 年之前
父節點
當前提交
9e86b18d05
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      gtk3maxgui.mod/gtkgadget.bmx

+ 3 - 0
gtk3maxgui.mod/gtkgadget.bmx

@@ -3861,6 +3861,9 @@ Type TGTKTabber Extends TGTKContainer
 	End Rem
 	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
 
 		If icons And icon>=0 Then