mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-06 00:35:04 +00:00
Add convenience debug mode for OS X
This commit is contained in:
parent
631043942f
commit
91c6010966
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue