* GPreferences.C: append arbitrary size to font strings
when passing to gtk font button, to prevent it from
mangling some more complicated font names.
+ * lyx_gui.C: use Gtk::Main instead of while() loop:
+ fix eating CPU even when idle
2006-02-12 John Spray <spray@lyx.org>
* GMenubar.C: assume backend strings in latin1 (bug 1954)
namespace {
-/// quit lyx
-bool finished = false;
-
-
/// estimate DPI from X server
int getDPI()
{
view.getLyXFunc().dispatch(lyxaction.lookupFunc(batch));
}
- // enter the event loop
- while (!finished) {
- while (Gtk::Main::events_pending())
- Gtk::Main::iteration(false);
- }
+ Gtk::Main::run();
// FIXME: breaks emergencyCleanup
delete lyxsocket;
void lyx_gui::exit()
{
- finished = true;
+ Gtk::Main::quit();
}