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.
34 lines
558 B
34 lines
558 B
|
11 years ago
|
#include "juci.h"
|
||
|
|
|
||
|
|
Window::Window() :
|
||
|
|
window_box(Gtk::ORIENTATION_HORIZONTAL),
|
||
|
|
menu() {
|
||
|
|
|
||
|
|
|
||
|
|
set_title("example juCi++");
|
||
|
|
set_default_size(600, 600);
|
||
|
|
|
||
|
|
add(window_box);
|
||
|
|
menu.get_action_group()->add(Gtk::Action::create("FileQuit", Gtk::Stock::QUIT),
|
||
|
|
[this]() {
|
||
|
|
onSystemQuit();
|
||
|
|
});
|
||
|
|
|
||
|
|
add_accel_group(menu.get_ui_manager()->get_accel_group());
|
||
|
|
|
||
|
|
window_box.pack_start(menu.get_view());
|
||
|
|
|
||
|
|
|
||
|
|
show_all_children();
|
||
|
|
};
|
||
|
|
|
||
|
|
void Window::onSystemQuit() {
|
||
|
|
hide();
|
||
|
|
}
|
||
|
|
|
||
|
|
Window::~Window() {
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|