]> git.lyx.org Git - lyx.git/blobdiff - src/main.C
citation patch from Angus
[lyx.git] / src / main.C
index e3f9e6159e198bcfd75f92dca0fa2426f7c578f3..e1b01f06bba1247521e0527b39b0cb0b852da16e 100644 (file)
 #include <config.h>
 #include <iostream>
 
+#ifdef KDEGUI
+#    include <kapp.h>
+#endif
+#ifdef GTKGUI
+#    include <gnome--/main.h>
+#    include "frontends/gnome/mainapp.h"
+GLyxAppWin * mainAppWin;
+#endif
+
 #include FORMS_H_LOCATION
 
 #include "lyx_main.h"
@@ -18,6 +27,7 @@
 #include "LString.h"
 #include "support/filetools.h"
 
+
 // I keep these here so that it will be processed as early in
 // the compilation process as possible.
 #if !defined(FL_REVISION) || FL_REVISION < 88 || FL_VERSION != 0
@@ -57,6 +67,15 @@ int main(int argc, char * argv[])
                        "in continuing executing LyX!" << endl;
                return 1;
        }
+
+#ifdef KDEGUI
+       KApplication a( argc, argv );
+#endif
+#ifdef GTKGUI
+       Gnome::Main  a(PACKAGE,VERSION,1,argv); //argc, argv );
+       GLyxAppWin   appWin;
+       mainAppWin = &appWin;
+#endif
        
        // lyx_localedir is used by gettext_init() is we have
        //   i18n support built-in