Add convenience debug mode for OS X

This commit is contained in:
Jesse van den Kieboom 2016-06-05 11:37:16 +02:00
parent 631043942f
commit 91c6010966

View file

@ -540,6 +540,17 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
}
}
protected override void realize() {
if (Environment.get_variable("GITG_GTK_DEBUG_INTERACTIVE") != null) {
Timeout.add_seconds(1, () => {
Gtk.Window.set_interactive_debugging(true);
return false;
});
}
base.realize();
}
protected override bool window_state_event(Gdk.EventWindowState event)
{
d_state_settings.set_int("state", event.new_window_state);