{"thread":{"id":"12015","subject":"Trouble with gitk and ActiveState tcltk on OS X","startedAt":"2008-02-10T21:15:10Z","lastAt":"2008-02-11T17:59:45Z","messageCount":5,"participants":["Seth Falcon","Shawn O. Pearce","Kalle Olavi Niemitalo","Jay Soffian"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"68274","messageId":"m2ve4wh5sx.fsf@ziti.evri.corp","threadId":"12015","inReplyTo":null,"subject":"Trouble with gitk and ActiveState tcltk on OS X","fromName":"Seth Falcon","fromEmail":"seth@userprimary.net","sentAt":"2008-02-10T21:15:10Z","receivedAt":"2008-02-10T21:15:10Z","isPatch":false,"sender":{"key":"seth@userprimary.net","avatar":"https://gravatar.com/avatar/1db807504c1f8fb0a13bf1056a1e4d5096d17f3a09a1e9540f3af5f8b5ee009c?d=mp&s=160"},"body":"Hi all,\n\nI'm hoping that another OS X git user can point me in the right\ndirection...\n\nI installed the ActiveState tcltk and set the following in\ngit/config.mak:\n\n    TCLTK_PATH=/usr/local/bin/wish8.5\n\nWith this, git gui works great (I get a real icon when switching apps\nand the overall look is more consistent than when I was running with\nX11 + MacPorts tcltk).\n\nBut gitk does not work.  gitk starts up but no window appears.  The\nmenus appear, but that's it.\n\nIf I start X11 and switch the wish path to /opt/local/bin/wish in the\ngitk script, then things work.  Any suggestions for running gitk\nwithout X11 on OS X?\n\nThanks,\n\n+ seth\n\n-- \nSeth Falcon | seth@userprimary.net | blog: http://userprimary.net/user/\n"},{"id":"68322","messageId":"20080211044941.GX24004@spearce.org","threadId":"12015","inReplyTo":"m2ve4wh5sx.fsf@ziti.evri.corp","subject":"Re: Trouble with gitk and ActiveState tcltk on OS X","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-02-11T04:49:41Z","receivedAt":"2008-02-11T04:49:41Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Seth Falcon <seth@userprimary.net> wrote:\n> I'm hoping that another OS X git user can point me in the right\n> direction...\n> \n> I installed the ActiveState tcltk and set the following in\n> git/config.mak:\n> \n>     TCLTK_PATH=/usr/local/bin/wish8.5\n> \n> With this, git gui works great (I get a real icon when switching apps\n> and the overall look is more consistent than when I was running with\n> X11 + MacPorts tcltk).\n\nFor what its worth I use the native Tcl/Tk that ships with Mac OS X,\n/usr/bin/wish, which is really in /Library/Frameworks/Tk.framework.\nI've never used the ActiveState Tcl/Tk package on Mac OS X.\n\ngit-gui builds against the Tk.framework I mentioned above when on\nMac OS X.  In particular the git-gui Makefile seems to ignore the\nsetting of TCLTK_PATH when it sees the above mentioned Tk.framework\nis available in your filesystem.\n\nThe reason why you get nice icons for git-gui is because we use a\nfeature of the Aqua port Tcl/Tk framework that allows us to create a\nfull Mac OS X app by copying a tiny executable from the framework,\nand supplying our own resource bundle.  The bundle configures\nthe icon.  Its the only way to get a custom icon on Mac OS X.\n\nLaunching gitk from within git-gui (Repository -> Visualize History)\nuses the same app and bundle, so gitk inherits the icon too.\nI'd also bet gitk works this way, because it isn't launching through\nthe ActiveState Tcl/Tk port.\n\nIn short, why not just use the native Aqua Tcl/Tk that Apple ships?\nWhy go through X11 and MacPorts?\n \n-- \nShawn.\n"},{"id":"68343","messageId":"87myq7c30t.fsf@Astalo.kon.iki.fi","threadId":"12015","inReplyTo":"20080211044941.GX24004@spearce.org","subject":"Re: Trouble with gitk and ActiveState tcltk on OS X","fromName":"Kalle Olavi Niemitalo","fromEmail":"kon@iki.fi","sentAt":"2008-02-11T08:26:26Z","receivedAt":"2008-02-11T08:26:26Z","isPatch":false,"sender":{"key":"kon@iki.fi","avatar":null},"body":"\"Shawn O. Pearce\" <spearce@spearce.org> writes:\n\n> In short, why not just use the native Aqua Tcl/Tk that Apple ships?\n\nWith the Tcl 8.4b and Tk 8.4 that Apple bundles with Mac OS 10.5.1,\ntwo-finger scrolling with the MacBook touchpad does not work in gitk,\nand I think buttons in dialog boxes were sometimes invisible.\nUpgrading both to 8.4.16 (Tk still Aqua) fixed these problems for me.\n"},{"id":"68399","messageId":"m2zlu71ofs.fsf@userprimary.net","threadId":"12015","inReplyTo":"20080211044941.GX24004@spearce.org","subject":"Re: Trouble with gitk and ActiveState tcltk on OS X","fromName":"Seth Falcon","fromEmail":"seth@userprimary.net","sentAt":"2008-02-11T15:51:35Z","receivedAt":"2008-02-11T15:51:35Z","isPatch":false,"sender":{"key":"seth@userprimary.net","avatar":"https://gravatar.com/avatar/1db807504c1f8fb0a13bf1056a1e4d5096d17f3a09a1e9540f3af5f8b5ee009c?d=mp&s=160"},"body":"\"Shawn O. Pearce\" <spearce@spearce.org> writes:\n> For what its worth I use the native Tcl/Tk that ships with Mac OS X,\n> /usr/bin/wish, which is really in /Library/Frameworks/Tk.framework.\n> I've never used the ActiveState Tcl/Tk package on Mac OS X.\n>\n> git-gui builds against the Tk.framework I mentioned above when on\n> Mac OS X.  In particular the git-gui Makefile seems to ignore the\n> setting of TCLTK_PATH when it sees the above mentioned Tk.framework\n> is available in your filesystem.\n>\n> The reason why you get nice icons for git-gui is because we use a\n> feature of the Aqua port Tcl/Tk framework that allows us to create a\n> full Mac OS X app by copying a tiny executable from the framework,\n> and supplying our own resource bundle.  The bundle configures\n> the icon.  Its the only way to get a custom icon on Mac OS X.\n>\n> Launching gitk from within git-gui (Repository -> Visualize History)\n> uses the same app and bundle, so gitk inherits the icon too.\n> I'd also bet gitk works this way, because it isn't launching through\n> the ActiveState Tcl/Tk port.\n>\n> In short, why not just use the native Aqua Tcl/Tk that Apple ships?\n> Why go through X11 and MacPorts?\n\nHmm.  I don't doubt that I've inadvertently made things harder than\nthey need to be, but...\n\nI've just tried uninstalling the ActiveState stuff and removing the\nMacPorts stuff.\n\nIndeed git gui runs, but I no longer get the nice icon (instead a\ndefault Tcl/Tk icon with a feather).  Launching gitk from the git gui\nmenu results in the same behavior for me: it launches and its menu\nappears, but no window.  It is quite odd because I can open the\npreference window for gitk via the menu and _that_ mini window does\nappear.  Same thing if I launch gitk from the command line.\n\nIf I try to open the \"Git Gui.app\" I get:\nziti:git-gui seth$ open Git\\ Gui.app/\nLSOpenFromURLSpec() failed with error -10810 for the file /Users/seth/src/git-MASTER/git-gui/Git Gui.app.\n\nI've recently upgraded my system to Leopard, so I wouldn't be\nsurprised if that is related to some of these issues.\n\nIs there a big difference between how git gui uses Tcl/Tk and gitk?\nIt seems really odd to me that one works and the other not so much :-\\\n\nAny other things to try or suggestions of where to look for root\ncauses?\n\nThanks again,\n\n+ seth\n\n\n-- \nSeth Falcon | seth@userprimary.net | blog: http://userprimary.net/user/\n"},{"id":"68413","messageId":"76718490802110959y10df4bc6xfe98a9de57a4f8a@mail.gmail.com","threadId":"12015","inReplyTo":"20080211044941.GX24004@spearce.org","subject":"Re: Trouble with gitk and ActiveState tcltk on OS X","fromName":"Jay Soffian","fromEmail":"jaysoffian+git@gmail.com","sentAt":"2008-02-11T17:59:45Z","receivedAt":"2008-02-11T17:59:45Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Feb 10, 2008 11:49 PM, Shawn O. Pearce <spearce@spearce.org> wrote:\n> For what its worth I use the native Tcl/Tk that ships with Mac OS X,\n> /usr/bin/wish, which is really in /Library/Frameworks/Tk.framework.\n\nUnder 10.5, it's /System/Library/Frameworks/Tk.framework and the app\nis now /System/Library/Frameworks/Tk.framework/Resources/Wish\\\nShell.app. I'll work on a patch for the git-gui Makefile in next (or\nmaster?) to work w/both 10.4 and 10.5 if I can figure out the darn\nMakefile quoting (loathe whitespace in path names).\n\nj.\n"}]}