Here's a small patch I needed to get lyxlookup.C to compile after enybling
HAVE_XOPENIM.

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: [EMAIL PROTECTED]           | Use PostgreSQL!
--- lyx-1.1.2.orig/src/lyxlookup.C      Thu Oct  7 20:44:14 1999
+++ lyx-1.1.2/src/lyxlookup.C   Tue Nov 23 17:04:15 1999
@@ -35,12 +35,12 @@
        // This part could be done before opening display
        setlocale(LC_CTYPE,"");
                if (!XSupportsLocale()) {
-               lyxerr.debug("InitLyXLookup: X does not support this locale.");
+               lyxerr.debug() << "InitLyXLookup: X does not support this locale." << 
+endl;
                return;
        } 
        if (!XSetLocaleModifiers("")) {
-               lyxerr.debug("InitLyXLookup: Could not set modifiers "
-                            "for this locale.");
+               lyxerr.debug() << "InitLyXLookup: Could not set modifiers "
+                            "for this locale." <<endl;
                return;
        }
 
@@ -54,15 +54,15 @@
                            0);
                
                if (!xic) {
-                       lyxerr.debug("InitLyXLookup: could not create "
-                                    "an input context");
+                       lyxerr.debug() << "InitLyXLookup: could not create "
+                                    "an input context" << endl;
                        XCloseIM (xim);
                        xim = 0;
                } 
        }
        else 
-               lyxerr.debug("InitLyXLookup: could not open "
-                            "an input method.");
+               lyxerr.debug() << "InitLyXLookup: could not open "
+                            "an input method." << endl;
 
 }
 
@@ -152,8 +152,8 @@
                         return 0;
                }
                if (event->type != KeyPress)
-                       lyxerr <<"LyXLookupString: wrong event type" 
-                                     +string(event->type));
+                       lyxerr << "LyXLookupString: wrong event type" << event->type;
+
                Status status_return;
                
                result =  XmbLookupString(xic, &event->xkey, buffer_return,
@@ -189,7 +189,7 @@
 void CloseLyXLookup() 
 {
        if (xic) {
-               lyxerr.debug("CloseLyXLookup: destroying input context");
+               lyxerr.debug() << "CloseLyXLookup: destroying input context" << endl;
                XDestroyIC(xic);
                XCloseIM(xim);
        }

Reply via email to