All dirs in this document are relative to the mMosaic HOME directory.
Misc changes
In file ./Makefile:
By default there was Sun CC compiler.
When an attempt was made to integrate the mMosaic
(shared library compiled with CC)
to the application with mixed C/C++ content, then
on the stage of linking a function (exported from mMosaic) was not found.
Changing to cc does help, so now there is cc by default.
(with appropriate prerelease flags).
abort();
is commented out (due to an algoritm of font choosing it's normal
that program can come in this point.)
/*mo_popup_set_something("Forward", XmxNotSensitive, NULL);*/
XmxMakeErrorDialog(win->base, reason , "Net Error");
if (XtIsRealized(hw->html.hbar))
XtMapWidget(hw->html.hbar);
...
if (XtIsRealized(hw->html.hbar))
XtUnmapWidget(hw->html.hbar);
and line
XtUnmanageChild(hw->html.hbar)
was commented out because it makes mMosaic a bit slow.
if (hw->html.doc_width > hw->html.view_width) {
was changed to:
if (hw->html.doc_width > hw->html.view_width + 2) {
(otherwise horisontal scrollbar don't go away)
fprintf(stderr, "[ReadXbmBitmap]Line too long.\n");
mo_view_keypress_handler()
/* Every time we view the document, we reset the search_start
/* struct so searches will start at the beginning of the document. */
((ElementRef *)win->search_start)->id = 0;
win->src_search_pos = 0;
XtVaSetValues(search_form, XmNdefaultButton, win->search_win_text, NULL);
(given.host && !related.host)
signal(SIGILL, 0);
replaced to signal(SIGKILL, 0);
Creation of mMosaic library (shared)
./src/mosaic_window.h
main()
changed to mosaic_main()
/* for custom event loop */
int endLoop = 0;
/* for initialization of mosaic */
int mosaicMain = 0;
Some functionality was moved from mosaic_main()
to
mosaic_window()
exit(0);
replaced to endLoop = 1;
ldflags
.
Standalone mMosaic
New directory was added (./standalone) with an example of calling mMosaic via
the shared library.
Using private colormap from another application (parent)
./src/approx_colors.h ./src/approx_colors.c
FixMotifColors()
./src/approx_colors.c
) is called
which changed default colors for a widget tree.
HTMLSetHTMLmark()
lines for restoring default colors are commented out.
XQueryColor()
failed, then called a function
near_color()
(from ./src/approx_colors.c).