c# - GtkSharp 3 File Dialogs -


i'm using following show gtk file chooser dialog in app otherwise doesn't use gtk else.

gtk.filechooserdialog fc =     new gtk.filechooserdialog(openparams.title,         null,         filechooseraction.open,         "cancel", responsetype.cancel,         "open", responsetype.accept); 

this straight example @ http://docs.go-mono.com/index.aspx?link=t%3agtk.filechooserdialog. works fine using gtk-sharp 2.0, when switch gtk-sharp 3.0 this:

(mono:30587): glib-gobject-warning **: cannot register existing type 'gtkwidget' (mono:30587): glib-gobject-warning **: cannot add class private field invalid type '<invalid>' (mono:30587): glib-gobject-warning **: cannot add private field invalid (non-instantiatable) type '<invalid>' (mono:30587): glib-gobject-critical **: g_type_add_interface_static: assertion 'g_type_is_instantiatable (instance_type)' failed (mono:30587): glib-gobject-warning **: cannot register existing type 'gtkbuildable' (mono:30587): glib-gobject-critical **: g_type_interface_add_prerequisite: assertion 'g_type_is_interface (interface_type)' failed (mono:30587): glib-critical **: g_once_init_leave: assertion 'result != 0' failed (mono:30587): glib-gobject-critical **: g_type_add_interface_static: assertion 'g_type_is_instantiatable (instance_type)' failed (mono:30587): glib-gobject-critical **: g_type_register_static: assertion 'parent_type > 0' failed (mono:30587): glib-gobject-warning **: cannot add private field invalid (non-instantiatable) type '<invalid>' 

the searching did indicates "cannot register existing type" thing happens when mixing library versions. made sure assembly references point version 3.0 of gtk , associated libraries (atk, gio, glib), still happening. how can figure out whats going wrong?


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -