X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fardour_ui_dependents.cc;h=8490643487ccf6753c35b6909b7baf8f6c26a895;hb=910cbc600cb11f0554b277cf761811ccf58443a8;hp=3aad35ac06bb4835a62e9a068c1cbcc5e9a809e6;hpb=4d74b5e42074300c77d48e0c327218387f0ec361;p=ardour.git diff --git a/gtk2_ardour/ardour_ui_dependents.cc b/gtk2_ardour/ardour_ui_dependents.cc index 3aad35ac06..8490643487 100644 --- a/gtk2_ardour/ardour_ui_dependents.cc +++ b/gtk2_ardour/ardour_ui_dependents.cc @@ -46,7 +46,7 @@ #include "opts.h" #include "utils.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace Gtk; using namespace PBD; @@ -309,7 +309,11 @@ ARDOUR_UI::setup_windows () assert (act); action_script_call_btn[i].set_text (string_compose ("%1", i+1)); action_script_call_btn[i].set_related_action (act); - action_script_call_btn[i].set_sensitive (act->get_sensitive ()); + if (act->get_sensitive ()) { + action_script_call_btn[i].set_visual_state (Gtkmm2ext::VisualState (action_script_call_btn[i].visual_state() & ~Gtkmm2ext::Insensitive)); + } else { + action_script_call_btn[i].set_visual_state (Gtkmm2ext::VisualState (action_script_call_btn[i].visual_state() | Gtkmm2ext::Insensitive)); + } const int row = i % 3; const int col = i / 3; action_script_table.attach (action_script_call_btn[i], col, col + 1, row, row + 1, EXPAND, EXPAND, 1, 1);