mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement debug menu item
This commit is contained in:
parent
8aab10c53e
commit
cf64949986
5 changed files with 40 additions and 15 deletions
|
|
@ -3,8 +3,9 @@
|
|||
|
||||
using namespace app;
|
||||
|
||||
Browser::Browser()
|
||||
{
|
||||
Browser::Browser(
|
||||
const Glib::RefPtr<Gtk::Application> & app
|
||||
) {
|
||||
set_title(
|
||||
TITLE
|
||||
);
|
||||
|
|
@ -17,4 +18,24 @@ Browser::Browser()
|
|||
set_titlebar(
|
||||
* new browser::Header()
|
||||
);
|
||||
}
|
||||
|
||||
add_action(
|
||||
"debug",
|
||||
sigc::mem_fun(
|
||||
* this,
|
||||
& Browser::debug
|
||||
)
|
||||
);
|
||||
|
||||
app->set_accel_for_action(
|
||||
"win.debug",
|
||||
"<Primary>i"
|
||||
);
|
||||
}
|
||||
|
||||
void Browser::debug()
|
||||
{
|
||||
gtk_window_set_interactive_debugging(
|
||||
true
|
||||
);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue