Hello,
I want to launch debug window using this method:
But cant find it for gtkmm/c++ library
https://gtkmm.org/en/documentation.html
Is it implemented?
Hello,
I want to launch debug window using this method:
But cant find it for gtkmm/c++ library
https://gtkmm.org/en/documentation.html
Is it implemented?
No, gtk_window_set_interactive_debugging() is not implemented in gtkmm.
Probably it should be. It’s not a problem for you. You can call gtk’s C functions
from a C++ source file, e.g. gtk_window_set_interactive_debugging(true)
.
The file with the call must #include <gtk/gtk.h>
. Perhaps it does via some
#include <gtkmm/???.h>
.
Yes, I did so finally by the procedural method.
p.s. toggle the debug window is possible by ctrl+shift+i
command, but I want to call it from the app menu, so used just c implementation without gtkmm wrapper.
Thanks
The reason wht gtk_window_set_interactive_debugging()
exists is to allow applications that already use Ctrl+Shift+I (or d) for their own key shortcuts to add a different shortcut. If you are not overriding the default key shortcuts for the inspector, you should not be calling this function. Adding a menu item isn’t really recommended: the Inspector is a debugging and development tool.
Wouldn’t it be appropriate to add this information to the documentation of
gtk_window_set_interactive_debugging()?
Sure; feel free to open an issue or a merge request. I’m happy to review all documentation contributions.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.