one more ENSURE_GUI_THREAD()
[ardour.git] / gtk2_ardour / plugin_selector.cc
index 36940d284004174a92b4b041a9ae0bf5aa40e4cd..8161c9da055e1e56b2ae3b4a2ed866695b2dccd2 100644 (file)
@@ -83,6 +83,8 @@ PluginSelector::PluginSelector (PluginManager& mgr)
 
        manager.PluginListChanged.connect (plugin_list_changed_connection, invalidator (*this), boost::bind (&PluginSelector::build_plugin_menu, this), gui_context());
        manager.PluginListChanged.connect (plugin_list_changed_connection, invalidator (*this), boost::bind (&PluginSelector::refill, this), gui_context());
+       manager.PluginStatusesChanged.connect (plugin_list_changed_connection, invalidator (*this), boost::bind (&PluginSelector::build_plugin_menu, this), gui_context());
+       manager.PluginStatusesChanged.connect (plugin_list_changed_connection, invalidator (*this), boost::bind (&PluginSelector::refill, this), gui_context());
        build_plugin_menu ();
 
        plugin_model = Gtk::ListStore::create (plugin_columns);
@@ -328,6 +330,8 @@ PluginSelector::show_this_plugin (const PluginInfoPtr& info, const std::string&
                        case LXVST:
                                compstr = X_("LXVST");
                                break;
+                       case Lua:
+                               break;
                        }
 
                } else if (mode == _("Author contains")) {
@@ -960,6 +964,12 @@ static Gtkmm2ext::ActiveState next_state (Gtkmm2ext::ActiveState s){
                        break;
                default: assert(0); break; // not reached
        }
+       /* impossible, but keep some compiles happy */
+       fatal << string_compose (_("programming error: %1"),
+                       X_("Illegal Active State."))
+               << endmsg;
+       abort(); /*NOTREACHED*/
+       return Gtkmm2ext::Off;
 }
 
 static Gtkmm2ext::ActiveState prev_state (Gtkmm2ext::ActiveState s){
@@ -975,6 +985,12 @@ static Gtkmm2ext::ActiveState prev_state (Gtkmm2ext::ActiveState s){
                        break;
                default: assert(0); break; // not reached
        }
+       /* impossible, but keep some compiles happy */
+       fatal << string_compose (_("programming error: %1"),
+                       X_("Illegal Active State."))
+               << endmsg;
+       abort(); /*NOTREACHED*/
+       return Gtkmm2ext::Off;
 }
 
 bool