"R. Lahaye" <[EMAIL PROTECTED]> writes:

| I bet only src/lyx_gui.C needs to be patched for this.

I think you are right about that.

| So far this compiles fine, but I get an error message (from xforms?)
| when running lyx:
| 
|        BadAlloc (insufficient resources for operation)
|        Abort (core dumped)

Yes, probably from X/xforms.

| I know this error originates from the fact that I've removed the
| width/height/xpos/ypos entries in "FL_resource res".
| If I leave them in place, the geometry is read correctly.
| 
| Why can't I simply remove the items in FL_resource res?
| What else needs to be adjusted for that?

Isn't there some numbers telling the size of these structs? that
number probably need to change also. (I haven't looked at this code
for a while...)

| (I haven't come to the point yet where geometry will be decomposed
| into width, height, xpos and ypos. I wonder if there's already
| an existing library routine for that.)

Not in LyX.
You can just scan the geom string, probably with the strstream (and
stringstream), please don't use sscanf.

char c = 0;
istringstream ist(geom);
ist >> width >> c; // c should be 'x'
ist >> height >> c; // c should be '+', '-' or empty (if empty stop
scan here)
ist >> xpos >> c; // shold be '+' or '-'
ist >> ypos;
 
Of course this is just how I remember the geom rules... check with man
xterm or similar to get a good description on how geom should work.

        Lgb

Reply via email to