|
From: | Timo Savola |
Subject: | GtkPlug patch |
Date: | Tue, 27 Dec 2005 01:09:42 +0200 |
Hi. I wanted to add XEmbed[1] support to Emacs and noticed that it's really easy to accomplish with the new GTK support. The attached patches implement that: emacs-parentid.patch Add the --parent-id command-line option to set the parent-id frame option (which was already implemented). emacs-parent-fix.patch For some reason x-create-frame resets parent_desc to the root window after first setting it according to the parent-id option. This patch removes that seemingly redundant assignment. emacs-gtkplug.patch Creates a GtkPlug instead of GtkWindow when parent_desc is set. I created the patches against the CVS version dated 2005-12-19 because I failed to "make bootstrap" for HEAD (batch-update-autoloads failed at vc-annotate-car-last-cons). embedder.py is a PyGTK test program that can be used with command: ./embedder.py path/to/patched/emacs I'm looking forward to getting this feature into Emacs. Please criticize my implementation (I've never hacked Emacs before) or provide instructions if I can do something more to help. (Please put me to CC when replying.) timo [1] http://freedesktop.org/Standards/xembed-spec
emacs-gtkplug.patch
Description: Text Data
emacs-parentid.patch
Description: Text Data
emacs-parent-fix.patch
Description: Text Data
embedder.py
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |