{"thread":{"id":"17502","subject":"[PATCH] Force gitk as the forground process when it starts up on Mac OS X","startedAt":"2009-02-02T13:36:46Z","lastAt":"2009-02-02T19:07:01Z","messageCount":2,"participants":["Gisle Aas","Sverre Rabbelier"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"102859","messageId":"b48ea8a00902020536t1baea7fbw4fbf27f235024639@mail.gmail.com","threadId":"17502","inReplyTo":null,"subject":"[PATCH] Force gitk as the forground process when it starts up on Mac OS X","fromName":"Gisle Aas","fromEmail":"gisle@aas.no","sentAt":"2009-02-02T13:36:46Z","receivedAt":"2009-02-02T13:36:46Z","isPatch":true,"sender":{"key":"gisle@aas.no","avatar":"https://avatars.githubusercontent.com/u/4326?v=4"},"body":"It annoys me that gitk always start out in the background on Mac OS X.\n This patch fixes this for those that have the tclCarbonProcess\npackage installed.  Unfortunately that package is not shipped by\ndefault from Apple, but it's part of ActiveTcl.\n\n--Gisle\n\n\n>From 272c7f9b6a2bcdf48e4141b9dc5af445fa69a27b Mon Sep 17 00:00:00 2001\nFrom: Gisle Aas <gisle@aas.no>\nDate: Mon, 2 Feb 2009 14:27:20 +0100\nSubject: [PATCH] Force gitk as the forground process when it starts up\non Mac OS X\n\nSigned-off-by: Gisle Aas <gisle@aas.no>\n---\n gitk-git/gitk |    6 ++++++\n 1 files changed, 6 insertions(+), 0 deletions(-)\n\ndiff --git a/gitk-git/gitk b/gitk-git/gitk\nindex dc2a439..e0c11f7 100644\n--- a/gitk-git/gitk\n+++ b/gitk-git/gitk\n@@ -10918,5 +10918,11 @@ if {[info exists permviews]} {\n if {[tk windowingsystem] eq \"win32\"} {\n     focus -force .\n }\n+if {[tk windowingsystem] eq \"aqua\"} {\n+    catch {\n+        package require tclCarbonProcesses\n+        carbon::setFrontProcess [carbon::getCurrentProcess]\n+    }\n+}\n\n getcommits {}\n-- \n1.6.1.28.gc32f76\n"},{"id":"102881","messageId":"bd6139dc0902021107x286d77f9s4dc05a0579bd2bce@mail.gmail.com","threadId":"17502","inReplyTo":"b48ea8a00902020536t1baea7fbw4fbf27f235024639@mail.gmail.com","subject":"Re: [PATCH] Force gitk as the forground process when it starts up on Mac OS X","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-02-02T19:07:01Z","receivedAt":"2009-02-02T19:07:01Z","isPatch":true,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Mon, Feb 2, 2009 at 14:36, Gisle Aas <gisle@aas.no> wrote:\n> It annoys me that gitk always start out in the background on Mac OS X. Hence this patch\n> --Gisle\n>\n>\n> From 272c7f9b6a2bcdf48e4141b9dc5af445fa69a27b Mon Sep 17 00:00:00 2001\n> From: Gisle Aas <gisle@aas.no>\n> Date: Mon, 2 Feb 2009 14:27:20 +0100\n> Subject: [PATCH] Force gitk as the forground process when it starts up\n> on Mac OS X\n>\n> This patch makes gitk start in the foreground this for those that have the\n> tclCarbonProcess package installed.  Unfortunately that package is not\n> shipped by default from Apple, but it's part of ActiveTcl.\n>\n> Signed-off-by: Gisle Aas <gisle@aas.no>\n\nThere, fixed that for ya :).\n\n-- \nCheers,\n\nSverre Rabbelier\n"}]}