/[svn]/gigedit/trunk/src/gigedit/main.cpp
ViewVC logotype

Contents of /gigedit/trunk/src/gigedit/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2470 - (show annotations) (download)
Sun Sep 15 13:31:04 2013 UTC (10 years, 6 months ago) by persson
File size: 1327 byte(s)
* fixed compilation error with newer glibmm
* minor update of Swedish and German translations
* Mac OS X: initialize gtk and gettext with files from base directory
  of the libgigedit library
* Mac OS X: fixed "recently used" in file dialogs
* Mac OS X: avoid crash when starting gigedit as an application bundle

1 /*
2 * Copyright (C) 2006, 2007 Andreas Persson
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2, or (at
7 * your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with program; see the file COPYING. If not, write to the Free
16 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20 #include "gigedit.h"
21
22 #if defined(WIN32)
23 #include <windows.h>
24
25 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
26 LPSTR lpCmdLine, int nCmdShow)
27 {
28 GigEdit app;
29 return app.run(__argc, __argv);
30 }
31
32 #else
33
34 int main(int argc, char* argv[])
35 {
36 #ifdef __APPLE__
37 // remove the argument added by the OS
38 if (argc > 1 && strncmp(argv[1], "-psn", 4) == 0) {
39 argc--;
40 for (int i = 1 ; i < argc ; i++) {
41 argv[i] = argv[i + 1];
42 }
43 }
44 #endif
45 GigEdit app;
46 return app.run(argc, argv);
47 }
48
49 #endif

  ViewVC Help
Powered by ViewVC