]> git.lyx.org Git - lyx.git/blobdiff - src/main.C
Fix small bug in reading \set_color in lyxrc
[lyx.git] / src / main.C
index e3f9e6159e198bcfd75f92dca0fa2426f7c578f3..6fb3a47c4ed7f4fdf3fc7b563ce091e64b19af08 100644 (file)
 #include <config.h>
 #include <iostream>
 
+#ifdef KDEGUI
+#    include <kapp.h>
+#endif
+#ifdef GTKGUI
+#    include <gnome--/main.h>
+#endif
+
 #include FORMS_H_LOCATION
 
 #include "lyx_main.h"
@@ -18,6 +25,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 +65,13 @@ 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,argc, argv );
+#endif
        
        // lyx_localedir is used by gettext_init() is we have
        //   i18n support built-in