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.
29 lines
813 B
29 lines
813 B
#include "window.h" |
|
|
|
Window::Window() : |
|
window_box_(Gtk::ORIENTATION_VERTICAL), |
|
notebook_(keybindings_), |
|
menu_(keybindings_){ |
|
set_title("juCi++"); |
|
set_default_size(600, 00); |
|
add(window_box_); |
|
keybindings_.action_group_menu()->add(Gtk::Action::create("FileQuit", |
|
Gtk::Stock::QUIT), |
|
[this]() { |
|
OnWindowHide(); |
|
}); |
|
|
|
add_accel_group(keybindings_.ui_manager_menu()->get_accel_group()); |
|
add_accel_group(keybindings_.ui_manager_hidden()->get_accel_group()); |
|
|
|
window_box_.pack_start(menu_.view(), Gtk::PACK_SHRINK); |
|
window_box_.pack_start(notebook_.entry_view(), Gtk::PACK_SHRINK); |
|
window_box_.pack_start(notebook_.view()); |
|
show_all_children(); |
|
|
|
} // Window constructor |
|
|
|
|
|
void Window::OnWindowHide() { |
|
hide(); |
|
}
|
|
|