mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
594 B
21 lines
594 B
#include "keybindings.h" |
|
|
|
|
|
Keybindings::Controller::Controller() { |
|
action_group_ = Gtk::ActionGroup::create(); |
|
ui_manager_ = Gtk::UIManager::create(); |
|
} |
|
Keybindings::Controller::~Controller(){ |
|
|
|
} |
|
void Keybindings::Controller::set_ui_manager_action_group(Glib::RefPtr<Gtk::ActionGroup> action_group) { |
|
ui_manager_->insert_action_group(action_group); |
|
} |
|
void Keybindings::Controller::set_ui_manger_string(std::string ui_string) { |
|
try { |
|
ui_manager_->add_ui_from_string(ui_string); |
|
} |
|
catch (const Glib::Error &ex) { |
|
std::cerr << "building menus failed: " << ex.what(); |
|
} |
|
}
|
|
|