|
|
@ -35,108 +35,68 @@ Browser::Browser( |
|
|
|
// Init actions
|
|
|
|
// Init actions
|
|
|
|
add_action( |
|
|
|
add_action( |
|
|
|
"tab_append", |
|
|
|
"tab_append", |
|
|
|
sigc::mem_fun( |
|
|
|
[this] |
|
|
|
* this, |
|
|
|
{ |
|
|
|
& Browser::main_tab_append |
|
|
|
main->tab_append(); |
|
|
|
) |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
add_action( |
|
|
|
add_action( |
|
|
|
"tab_update", |
|
|
|
"tab_update", |
|
|
|
sigc::mem_fun( |
|
|
|
[this] |
|
|
|
*this, |
|
|
|
{ |
|
|
|
&Browser::main_tab_update |
|
|
|
main->tab_update(); |
|
|
|
) |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Close
|
|
|
|
// Close
|
|
|
|
add_action( |
|
|
|
add_action( |
|
|
|
"tab_close", |
|
|
|
"tab_close", |
|
|
|
sigc::mem_fun( |
|
|
|
[this] |
|
|
|
* this, |
|
|
|
{ |
|
|
|
& Browser::main_tab_close |
|
|
|
main->tab_close(); |
|
|
|
) |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Close submenu
|
|
|
|
// Close submenu
|
|
|
|
add_action( |
|
|
|
add_action( |
|
|
|
"tab_close_left", |
|
|
|
"tab_close_left", |
|
|
|
sigc::mem_fun( |
|
|
|
[this] |
|
|
|
* this, |
|
|
|
{ |
|
|
|
& Browser::main_tab_close_left |
|
|
|
main->tab_close_left(); |
|
|
|
) |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
add_action( |
|
|
|
add_action( |
|
|
|
"tab_close_right", |
|
|
|
"tab_close_right", |
|
|
|
sigc::mem_fun( |
|
|
|
[this] |
|
|
|
* this, |
|
|
|
{ |
|
|
|
& Browser::main_tab_close_right |
|
|
|
main->tab_close_right(); |
|
|
|
) |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
add_action( |
|
|
|
add_action( |
|
|
|
"tab_close_all", |
|
|
|
"tab_close_all", |
|
|
|
sigc::mem_fun( |
|
|
|
[this] |
|
|
|
* this, |
|
|
|
{ |
|
|
|
& Browser::main_tab_close_all |
|
|
|
main->tab_close_all(); |
|
|
|
) |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Tool
|
|
|
|
// Tool
|
|
|
|
add_action( |
|
|
|
add_action( |
|
|
|
"debug", |
|
|
|
"debug", |
|
|
|
sigc::mem_fun( |
|
|
|
[this] |
|
|
|
* this, |
|
|
|
{ |
|
|
|
& Browser::debug |
|
|
|
gtk_window_set_interactive_debugging( |
|
|
|
) |
|
|
|
true |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Browser::~Browser() |
|
|
|
Browser::~Browser() |
|
|
|
{ |
|
|
|
{ |
|
|
|
destroy(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delete header; |
|
|
|
delete header; |
|
|
|
header = nullptr; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delete main; |
|
|
|
delete main; |
|
|
|
main = nullptr; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Browser::main_tab_append() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
main->tab_append(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Browser::main_tab_update() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
main->tab_update(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Browser::main_tab_close() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
main->tab_close(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Browser::main_tab_close_left() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
main->tab_close_left(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Browser::main_tab_close_right() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
main->tab_close_right(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Browser::main_tab_close_all() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
main->tab_close_all(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Browser::debug() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
gtk_window_set_interactive_debugging( |
|
|
|
|
|
|
|
true |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
}; |
|
|
|
|