[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
embedding gtk widgets in a buffer
From: |
joakim |
Subject: |
embedding gtk widgets in a buffer |
Date: |
Thu, 08 May 2008 01:23:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
I'm working on a patch to embed gtk widgets in a buffer.
Its going unexpectedly well!
I'm able to embed different types of widgets, and they move with the
text rather like images in emacs.
I've tested 2 different types of buttons, and an xembed widget.
Heres a screenshot:
http://www.emacswiki.org/cgi-bin/wiki/EmacsXembedScreenshot
Heres the elisp I use to test, which shows the interface:
-----------------------------------------
(insert "xwidgetdemo<<< a button. another button\n")
(goto-char (point-min))
(put-text-property (point) (+ 1 (point)) 'display '(xwidget :xwidget-id 1 :type
1 :title "1"))
(goto-char 15)
(put-text-property (point) (+ 1 (point)) 'display '(xwidget :xwidget-id 2 :type
2 :title "2"))
(goto-char 30)
(put-text-property (point) (+ 1 (point)) 'display '(xwidget :xwidget-id 3 :type
3 :title "3"))
------------------------------------------
Ok, thats rather nice and all, but heres what I dont have:
- callback interface for the widgets. It would be nice with some ideas
how to do this. For instance:
- button pressed handler
- when a xembed widget is ready, a callback to start an external
program in the widget would be nice, now it has to be done manually on
the cmd line
- currently all xwidgets must have a unique id, ":xwidget-id 3" for
instance. I havent figured out how to handle this.
- 2 windows showing the same buffer doesnt quite work and is probably tricky
- only 1 frame supported
- beautiful code
--
Joakim Verona
- embedding gtk widgets in a buffer,
joakim <=
- Re: embedding gtk widgets in a buffer, joakim, 2008/05/07
- Re: embedding gtk widgets in a buffer, BVK, 2008/05/08
- Re: embedding gtk widgets in a buffer, Richard M Stallman, 2008/05/08
- Re: embedding gtk widgets in a buffer, joakim, 2008/05/08
- Re: embedding gtk widgets in a buffer, Lennart Borgman (gmail), 2008/05/08
- Re: embedding gtk widgets in a buffer, Richard M Stallman, 2008/05/10
- Re: embedding gtk widgets in a buffer, joakim, 2008/05/10
- Re: embedding gtk widgets in a buffer, Lennart Borgman (gmail), 2008/05/10
- Re: embedding gtk widgets in a buffer, Richard M Stallman, 2008/05/11
- Re: embedding gtk widgets in a buffer, Richard M Stallman, 2008/05/10