From a4625db3f26716fb7a34614c76582ab92b5212e8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Sep 2007 16:23:03 +0000 Subject: Fix RDF threading problems (random messy crashes on patch loading). git-svn-id: http://svn.drobilla.net/lad/ingen@740 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/gui/App.cpp | 2 ++ src/libs/gui/PatchCanvas.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/libs/gui') diff --git a/src/libs/gui/App.cpp b/src/libs/gui/App.cpp index b36c5c07..b07352d7 100644 --- a/src/libs/gui/App.cpp +++ b/src/libs/gui/App.cpp @@ -85,6 +85,8 @@ App::App(Ingen::Shared::World* world) rdf_world.add_prefix("rdfs", "http://www.w3.org/2000/01/rdf-schema#"); rdf_world.add_prefix("doap", "http://usefulinc.com/ns/doap#"); + PluginModel::set_rdf_world(rdf_world); + #ifdef HAVE_SLV2 PluginModel::set_slv2_world(world->slv2_world); #endif diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp index dc1504ef..ee3c326e 100644 --- a/src/libs/gui/PatchCanvas.cpp +++ b/src/libs/gui/PatchCanvas.cpp @@ -171,6 +171,8 @@ PatchCanvas::build_plugin_class_menu(Gtk::Menu* menu, void PatchCanvas::build_plugin_menu() { + Glib::Mutex::Lock(PluginModel::rdf_world()->mutex()); + _menu->items().push_back(Gtk::Menu_Helpers::ImageMenuElem("Plugin", *(manage(new Gtk::Image(Gtk::Stock::EXECUTE, Gtk::ICON_SIZE_MENU))))); Gtk::MenuItem* plugin_menu_item = &(_menu->items().back()); -- cgit v1.2.1