git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] Force gitk as the forground process when it starts up on Mac  OS X
@ 2009-02-02 13:36 Gisle Aas
  2009-02-02 19:07 ` Sverre Rabbelier
  0 siblings, 1 reply; 2+ messages in thread
From: Gisle Aas @ 2009-02-02 13:36 UTC (permalink / raw
  To: git

It annoys me that gitk always start out in the background on Mac OS X.
 This patch fixes this for those that have the tclCarbonProcess
package installed.  Unfortunately that package is not shipped by
default from Apple, but it's part of ActiveTcl.

--Gisle


>From 272c7f9b6a2bcdf48e4141b9dc5af445fa69a27b Mon Sep 17 00:00:00 2001
From: Gisle Aas <gisle@aas.no>
Date: Mon, 2 Feb 2009 14:27:20 +0100
Subject: [PATCH] Force gitk as the forground process when it starts up
on Mac OS X

Signed-off-by: Gisle Aas <gisle@aas.no>
---
 gitk-git/gitk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/gitk-git/gitk b/gitk-git/gitk
index dc2a439..e0c11f7 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -10918,5 +10918,11 @@ if {[info exists permviews]} {
 if {[tk windowingsystem] eq "win32"} {
     focus -force .
 }
+if {[tk windowingsystem] eq "aqua"} {
+    catch {
+        package require tclCarbonProcesses
+        carbon::setFrontProcess [carbon::getCurrentProcess]
+    }
+}

 getcommits {}
-- 
1.6.1.28.gc32f76

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Force gitk as the forground process when it starts up on  Mac OS X
  2009-02-02 13:36 [PATCH] Force gitk as the forground process when it starts up on Mac OS X Gisle Aas
@ 2009-02-02 19:07 ` Sverre Rabbelier
  0 siblings, 0 replies; 2+ messages in thread
From: Sverre Rabbelier @ 2009-02-02 19:07 UTC (permalink / raw
  To: Gisle Aas; +Cc: git

Heya,

On Mon, Feb 2, 2009 at 14:36, Gisle Aas <gisle@aas.no> wrote:
> It annoys me that gitk always start out in the background on Mac OS X. Hence this patch
> --Gisle
>
>
> From 272c7f9b6a2bcdf48e4141b9dc5af445fa69a27b Mon Sep 17 00:00:00 2001
> From: Gisle Aas <gisle@aas.no>
> Date: Mon, 2 Feb 2009 14:27:20 +0100
> Subject: [PATCH] Force gitk as the forground process when it starts up
> on Mac OS X
>
> This patch makes gitk start in the foreground this for those that have the
> tclCarbonProcess package installed.  Unfortunately that package is not
> shipped by default from Apple, but it's part of ActiveTcl.
>
> Signed-off-by: Gisle Aas <gisle@aas.no>

There, fixed that for ya :).

-- 
Cheers,

Sverre Rabbelier

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-02 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-02 13:36 [PATCH] Force gitk as the forground process when it starts up on Mac OS X Gisle Aas
2009-02-02 19:07 ` Sverre Rabbelier

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).