go-gtk icon indicating copy to clipboard operation
go-gtk copied to clipboard

Critical Errors on some functions

Open ghost opened this issue 9 years ago • 1 comments

I've got this message

(gvirc:5446): Gtk-CRITICAL **: IA__gtk_widget_set_size_request: assertion 'GTK_IS_WIDGET (widget)' failed

when I tried to do

var x,y int
MainWindow.GetSizeRequest(&x,&y) //Window object
ConnView.SetSizeRequest(x/4,y) //TreeView object

and this kind of message

(gvirc:15681): Gtk-CRITICAL **: IA__gtk_notebook_insert_page: assertion 'GTK_IS_NOTEBOOK (notebook)' failed
panic: runtime error: index out of range

and crash when I tried to do

ConnList.InsertPage(someBox,someLabel,0)

or

ConnList.AppendPage(someBox,someLabel)

Is this bug in go-gtk or not? P.S. Sorry for my bad English

ghost avatar May 05 '15 12:05 ghost

Could you please show me whole of your code?

mattn avatar May 06 '15 12:05 mattn