~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to src/mac/corefoundation/stdpaths_cf.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2007-11-06 18:25:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106182513-809agqds6igh7mqo
Tags: 2.8.6.1-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.6.1.tar.bz2, renamed debian to debian-upstream.
* Provide a get-orig-source target to do the repackaging.
* Fix "substvar-source-version-is-deprecated" lintian warnings.
* Remove duplicate Description field in debian/control.
* Add "\" at the end of line 8 in debian/python-wxtools.menu to fix
  "bad-test-in-menu-item" lintian error.
* Provide .xpm icons to fix "menu-icon-not-in-xpm-format" lintian errors,
  changed Icon field in debian/python-wxtools.menu.
* Fix "wrong-name-for-upstream-changelog" lintian warnings.
* Remove "Application;" from Categories field in debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Switch "Apps" to "Applications" in debian/python-wxtools.menu to fix
  "menu-item-uses-apps-section" lintian warnings.
* Drop the icon extension from debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Add dpatch support.
* Add "WX_CONFIG" patch.
* debian/rules:
  - added .xpm icons to install-gtk-py-tools target
  - added "docs/changes.txt" to dh_installchangelogs in binary-common target
  - added "\" at the end of "install-examples install-msw-dev
    install-msw-dbg install-headers-msw" line in .PHONY

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// Author:      David Elliott
5
5
// Modified by:
6
6
// Created:     2004-10-27
7
 
// RCS-ID:      $Id: stdpaths_cf.cpp,v 1.12 2006/11/12 22:37:33 VZ Exp $
 
7
// RCS-ID:      $Id: stdpaths_cf.cpp 46052 2007-05-15 20:22:55Z SC $
8
8
// Copyright:   (c) 2004 David Elliott <dfe@cox.net>
9
9
// Licence:     wxWindows licence
10
10
///////////////////////////////////////////////////////////////////////////////
157
157
#ifdef __WXMAC__
158
158
    ProcessInfoRec processinfo;
159
159
    ProcessSerialNumber procno ;
 
160
#ifdef __LP64__
 
161
    FSRef  fsRef;
 
162
#else
160
163
    FSSpec fsSpec;
 
164
#endif
161
165
 
162
166
    procno.highLongOfPSN = 0 ;
163
167
    procno.lowLongOfPSN = kCurrentProcess ;
164
168
    processinfo.processInfoLength = sizeof(ProcessInfoRec);
165
169
    processinfo.processName = NULL;
 
170
#ifdef __LP64__
 
171
    processinfo.processAppRef = &fsRef;
 
172
#else
166
173
    processinfo.processAppSpec = &fsSpec;
 
174
#endif
167
175
 
168
176
    GetProcessInformation( &procno , &processinfo ) ;
 
177
#ifdef __LP64__
 
178
    return wxMacFSRefToPath(&fsRef);
 
179
#else
169
180
    return wxMacFSSpec2MacFilename(&fsSpec);
 
181
#endif
170
182
#else
171
183
    return wxStandardPathsBase::GetExecutablePath();
172
184
#endif