From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.devel Subject: Re: An Emacs plug-in for a browser (Firefox?) Date: Sat, 06 Sep 2008 22:20:57 +0200 Organization: disorganized Message-ID: <874p4t9gba.fsf@localhorst.mine.nu> References: <18624.40059.414121.633475@gargle.gargle.HOWL> <48C0BB3A.4080201@pajato.com> <87zlmnezy9.fsf@shellarchive.co.uk> <48C0FC53.4020806@gmail.com> <6fa54e4e0809050420i5132ace5red5a011b69ecd1ed@mail.gmail.com> <87myilkyyf.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220732617 27168 80.91.229.12 (6 Sep 2008 20:23:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Sep 2008 20:23:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 06 22:24:32 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kc4Kd-0003d4-Vj for ged-emacs-devel@m.gmane.org; Sat, 06 Sep 2008 22:24:32 +0200 Original-Received: from localhost ([127.0.0.1]:53022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kc4Je-0005Zh-1F for ged-emacs-devel@m.gmane.org; Sat, 06 Sep 2008 16:23:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kc4Ja-0005Zc-70 for emacs-devel@gnu.org; Sat, 06 Sep 2008 16:23:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kc4JY-0005ZQ-QQ for emacs-devel@gnu.org; Sat, 06 Sep 2008 16:23:25 -0400 Original-Received: from [199.232.76.173] (port=58169 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kc4JY-0005ZN-L4 for emacs-devel@gnu.org; Sat, 06 Sep 2008 16:23:24 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:51222 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kc4JY-0002kA-Dl for emacs-devel@gnu.org; Sat, 06 Sep 2008 16:23:24 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kc4JR-0000lI-Tc for emacs-devel@gnu.org; Sat, 06 Sep 2008 20:23:17 +0000 Original-Received: from e178062192.adsl.alicedsl.de ([85.178.62.192]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Sep 2008 20:23:17 +0000 Original-Received: from david.hansen by e178062192.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 06 Sep 2008 20:23:17 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178062192.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:s7KJTLOmxL9CcqxPoiYs3lwvGAo= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103606 Archived-At: On Sat, 06 Sep 2008 18:58:48 +0200 joakim@verona.se wrote: > The thing that actually stopped me from demoing browser embedding, > rather that video etc, is that I didnt find a browser which supported > being embedded with xembed. It shouldnt be a big problem, though, to > modify a gnome based browser to use a xembeddable widget as main > window. Not tested, but it's about that easy: #include #include #define URI "http://www.gnu.org/" int main (int argc, gchar **argv) { GtkWidget *plug, *scroll, *webview; gtk_init (&argc, &argv); plug = gtk_plug_new (0); scroll = gtk_scrolled_window_new (NULL, NULL); webview = webkit_web_view_new (); gtk_container_add (GTK_CONTAINER (plug) , scroll); gtk_container_add (GTK_CONTAINER (scroll), webview); gtk_widget_show_all (plug); webkit_web_view_open (WEBKIT_WEB_VIEW (webview), URI); gtk_main (); return 0; }