[gitg] Add convenience debug mode for OS X
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Add convenience debug mode for OS X
- Date: Sun, 5 Jun 2016 09:39:57 +0000 (UTC)
commit 91c6010966f0ebade0f1f49963cc04d2c76d1b5b
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sun Jun 5 11:37:16 2016 +0200
Add convenience debug mode for OS X
gitg/gitg-window.vala | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index 67468be..3c57ad5 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]