I've tried to add some elementary support of GTK/Gnome frontend to LyX.
The composed code and collection of configure .m4 scripts brings the GTK
frontend to the same level as KDE one --- showing the copyright dialog
box. In the code I used GTK-- and GNOME-- libraries (C++ wrappers of GTK
and Gnome libraries). 

GTK-- and GNOME-- rely on STL string class which is not good enough for
LyX on my platform (i386, redhat linux 6.0, egcs-1.1.2 or gcc-2.95.2).
This is a problem since in LyX string class is typedefed to lyxstring and
the resulting code does not link properly with GTK-- and GNOME--
libraries.  The following solutions to this conflict between GNOME/Gtk and
LyX popped into my mind:

1. Use GTK/Gnome libraries directly (in C) without C++ wrappers

2. Make LyX compatible with the string class included in libstdc++ by
   fixing files src/support/lstrings.C (lines 184 and 201, 
   string::compare) and src/lyx_cb.C (line 1109, algorithm copy and string
   interaction).

3. Include GTK-- and Gnome-- into LyX (as sig++) and compile this
   libraries with lyxstring.

4. Find better implementation of STL for Linux and use its string
   class with LyX and GTK--/Gnome-- (current CVS version of gcc/libstdc++
   is not good enough to compile LyX).

Which of these (or any alternative) solutions should be used for LyX
GTK/Gnome frontend?

Regards,

Marko

Reply via email to