inspector: Add a first-time warning

With the keybinding, it is possible that users may trigger the
inspector unintentionally. Show a dialog that informs them about
whats going on and gives them a chance to back out.

The warning dialog can be bypassed with the
org.gtk.Settings.Debug inspector-warning setting.
This commit is contained in:
Matthias Clasen
2014-05-16 21:51:42 -04:00
parent 2bf654b352
commit b4a57a0f0c
2 changed files with 74 additions and 16 deletions

View File

@ -11,6 +11,14 @@
the keybinding are Control-Shift-I and Control-Shift-D.
</description>
</key>
<key name='inspector-warning' type='b'>
<default>true</default>
<summary>Inspector warning</summary>
<description>
If this setting is true, GTK+ shows a warning before letting
the user use the interactive debugger.
</description>
</key>
</schema>
</schemalist>