]> git.lyx.org Git - lyx.git/blobdiff - src/main.C
Angus insetindex patch + protect patch from Dekel
[lyx.git] / src / main.C
index 10785c5ffa85e032b4bf97b61f7d98d213be6651..6fb3a47c4ed7f4fdf3fc7b563ce091e64b19af08 100644 (file)
 #ifdef KDEGUI
 #    include <kapp.h>
 #endif
+#ifdef GTKGUI
+#    include <gnome--/main.h>
+#endif
+
 #include FORMS_H_LOCATION
 
 #include "lyx_main.h"
@@ -21,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
@@ -64,7 +69,10 @@ int main(int argc, char * argv[])
 #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
        string lyx_localedir = GetEnvPath("LYX_LOCALEDIR");