Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

embedding in linux without GTK

8 views
Skip to first unread message

Buola Buola

unread,
Feb 8, 2007, 5:16:00 PM2/8/07
to
I am planning on embedding a web browser into one application which
doesn't use GTK+ or Qt, just plain xlib and cairo.In the embedding Q/A
page, it says that mozilla doesn't use any toolkit, but the rest of
the information I've read contradicts this. In the API doc page for
nsIEmbeddingSiteWindow, it says about the attribute siteWindow, which
is a pointer to GtkWidget*
Is it possible at all to embed mozilla without using GTK?
Is the xlib toolkit backend for mozilla functional or complete?
Is there anyone who has embedded mozilla using just xlib (with or
without cairo)?

Thanks for answering any of this questions,

xavi

Artem Ananiev

unread,
Feb 9, 2007, 2:44:11 AM2/9/07
to Buola Buola, dev-em...@lists.mozilla.org
Hi, Buola,

web browser embedding without any usage of GTK is possible, however, you
need your own, Xlib-based, build of Mozilla/XULRunner. Download the
source tree from mozilla.org, add the following line to ~/.mozconfig:

ac_add_options --enable-default-toolkit=xlib
or
ac_add_options --enable-default-toolkit=cairo-xlib

and perform a build. When you use such build, siteWindow attribute is
expected to be a handle of Xlib window (Window), not GtkWidget *.

Artem

> _______________________________________________
> dev-embedding mailing list
> dev-em...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-embedding

0 new messages