if (n.empty ()) {
act->set_label (string_compose (_("Unset #%1"), i + 1));
act->set_tooltip (_("(no action bound"));
+ act->set_sensitive (false);
} else {
act->set_label (n);
act->set_tooltip (n);
+ act->set_sensitive (true);
}
KeyEditor::UpdateBindings ();
}
string const n = string_compose (_("Unset #%1"), i);
act = reg_sens (editor_actions, a.c_str(), n.c_str(), sigc::bind (sigc::mem_fun (*this, &Editor::trigger_script), i - 1));
act->set_tooltip (_("(no action bound"));
+ act->set_sensitive (false);
}
Glib::RefPtr<ActionGroup> mouse_mode_actions = myactions.create_action_group (X_("MouseMode"));
_a_view.append_column (_("Name"), _a_model.name);
_a_view.get_column(0)->set_resizable (true);
_a_view.get_column(0)->set_expand (true);
+ _c_view.get_column(1)->set_resizable (true);
+ _c_view.get_column(1)->set_expand (true);
Gtk::HBox* edit_box = manage (new Gtk::HBox);
edit_box->set_spacing(3);
_c_store = ListStore::create (_c_model);
_c_view.set_model (_c_store);
_c_view.append_column (_("Name"), _c_model.name);
+ _c_view.append_column (_("Signal(s)"), _c_model.signals);
_c_view.get_column(0)->set_resizable (true);
_c_view.get_column(0)->set_expand (true);
- _c_view.append_column (_("Signal(s)"), _c_model.signals);
+ _c_view.get_column(1)->set_resizable (true);
+ _c_view.get_column(1)->set_expand (true);
+ Gtk::CellRendererText* r = dynamic_cast<Gtk::CellRendererText*>(_c_view.get_column_cell_renderer (1));
+ r->property_ellipsize () = Pango::ELLIPSIZE_MIDDLE;
edit_box = manage (new Gtk::HBox);
edit_box->set_spacing(3);