[gitg: 3/5] Show inspector when running in debug mode



commit 24ca2049ca4d90e65928eb42e24dc0eaf34352cd
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Mon Oct 29 16:57:21 2012 +0100

    Show inspector when running in debug mode

 libgitg-gtk/gitg-gtk-diff-view.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgitg-gtk/gitg-gtk-diff-view.vala b/libgitg-gtk/gitg-gtk-diff-view.vala
index 5c6159e..3ac9203 100644
--- a/libgitg-gtk/gitg-gtk-diff-view.vala
+++ b/libgitg-gtk/gitg-gtk-diff-view.vala
@@ -183,6 +183,11 @@ namespace GitgGtk
 			if (dbg)
 			{
 				settings.enable_developer_extras = true;
+
+				Timeout.add(500, () => {
+					get_inspector().show();
+					return false;
+				});
 			}
 
 			settings.javascript_can_access_clipboard = true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]