]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_gui.C
Angus insetindex patch + protect patch from Dekel
[lyx.git] / src / lyx_gui.C
index 11cc6517386436a7b0ae45cbf9966cb95d8365e9..da1dbdd3b5dbc63a29ad8a9194f69b9de3eac9bb 100644 (file)
 #    include <kapp.h>
 #endif
 
+#ifdef GTKGUI
+#    include <gnome--/main.h>
+#endif
+
 #include <fcntl.h>
 #include "lyx_gui.h"
 #include FORMS_H_LOCATION
@@ -60,7 +64,6 @@ FD_form_table * fd_form_table;
 FD_form_sendto * fd_form_sendto;
 FD_form_figure * fd_form_figure;
 FD_form_screen * fd_form_screen;
-FD_form_toc * fd_form_toc;
 FD_form_ref * fd_form_ref;
 FD_LaTeXLog * fd_latex_log; // from log_form.h
 Combox * combo_language;
@@ -528,12 +531,6 @@ void LyXGUI::create_forms()
        fl_set_form_atclose(fd_form_screen->form_screen,
                            CancelCloseBoxCB, 0);
 
-       // the toc form
-       fd_form_toc = create_form_form_toc();
-       fl_addto_choice(fd_form_toc->toctype,
-                       _(" TOC | LOF | LOT | LOA "));
-       fl_set_form_atclose(fd_form_toc->form_toc, CancelCloseBoxCB, 0);
-
        // the ref form
        fd_form_ref = create_form_form_ref();
        fl_set_form_atclose(fd_form_ref->form_ref, CancelCloseBoxCB, 0);
@@ -590,6 +587,10 @@ void LyXGUI::runTime()
 #ifdef KDEGUI
                kapp->processEvents();
 #endif
+#ifdef GTKGUI
+               Gnome::Main::instance()->iteration(FALSE);
+#endif
+               
                if (fl_check_forms() == FL_EVENT) {
                        lyxerr << "LyX: This shouldn't happen..." << endl;
                        fl_XNextEvent(&ev);