Hi,
I want to call a funtion to open a file.
I find the three function:
sp_file_open_dialog(*parent, NULL, NULL);
sp_file_new_default();
sp_file_open( path, NULL);
But when I call these funtions in another thread, it crash inkscape.
Is there any required initialization before I call these this function?
My program block is like to :
====
bool InkDBus::openFile(const string& path){
bool result = true;
bool create_new = true;
list< SPDesktop* > desktops;
list< SPDesktop* >::iterator iter;
inkscape_get_all_desktops(desktops);
iter = desktops.begin();
SPDesktop* desktop = *iter;
Gtk::Window *parent = desktop->getToplevel();
sp_file_open_dialog(*parent, NULL, NULL);
return result;
}
====
Thanks first for reading this letter :-)
sincerely, Mat.