xemacs-gtk branch published
Thomas Mittelstaedt
tmstaedt at t-mittelstaedt.de
Mon May 31 16:55:37 EDT 2010
Jeff,
Am Dienstag, den 18.05.2010, 09:50 -0400 schrieb Jeff Sparkes:
> I've been porting XEmacs to Gtk 2.X. I have a working, mostly functional
> version published to
> to http://hg.debian.org/hg/xemacs/xemacs-gtk/
>
> Here's some release notes:
> xemacs-gtk has enough functionality to be useful. I'm using it as my
> day-to-day emacs now.
>
> I'm hoping that a version that compiles and runs will spur others
> to contribute too.
>
> It's currently based off the xemacs branch. It would be better using
> the unicode branch, but I haven't worked out the font issues yet.
>
> * Basic text display works if you have a monospace font.
> * The block cursor is usually the outline (unfocused) cursors
> * There's absolutely minimal pango usage. If anybody knows how to get from
> a PangoFcFont to the screen, I could use an example!
> * configure --with-gtk --with-scrollbars=gtk. It can compile
> with --with-menubars=gtk, but the window keeps resizing itself
> until you just have the menubar, and there are no menu entries
> * --with-toolbars=gtk displays a few button, but they don't work
> * --with-widgets=gtk untested
> * The Gtk scrollbar works, except for dragging the thumb/slider
> * Modeline is often overlapped
> * There's lots of code commented out with ifdef JSPARKES. I've also
> left some // comments in a few places.
> * There's a lot of wrapper code intending to allow full use of emacs lisp
> for Gtk programming. I've done some minimal changes to allow basic
> types to be imported. In the lisp/*gtk*.el files the mapping of
> widgets and function needs to be updated for 2.x Gtk, and lots of new
> widgets added.
> ** If you want to help and don't want to mess with
> internals, this is a great place to contribute.
> ** Somebody might want to see if there were any Gtk examples posted to the
> mailing list 10 years ago and see if they can make them work.
>
>
>
>
Just tried to build your version on ubuntu karmic.
First, I had to change configure.ac to
make configure recognize my gtk version:
diff -r 9e429c6fbeec configure.ac
--- a/configure.ac Mon May 31 21:58:17 2010 +0200
+++ b/configure.ac Mon May 31 22:53:46 2010 +0200
@@ -2857,7 +2857,7 @@
AC_MSG_CHECKING(for GTK configuration script)
for possible in gtk+-2.0
do
- possible_version=`$GNOME_CONFIG {possible} --version
2> /dev/null`
+ possible_version=`$GNOME_CONFIG {possible} --modversion
2> /dev/null`
if test "x${possible_version}" != "x"; then
GTK_CONFIG="$GNOME_CONFIG ${possible}"
case "${possible_version}" in
@@ -2871,6 +2871,10 @@
with_gtk=yes
break
;;
+ 2.1*)
+ with_gtk=yes
+ break
+ ;;
*) AC_MSG_WARN([Found unsupported version of GTK:
$possible_
version]);;
esac
fi
@@ -2880,7 +2884,7 @@
if test "${GTK_CONFIG}" != "no"; then
AC_MSG_CHECKING(gtk version)
- GTK_VERSION=`${GTK_CONFIG} --version`
+ GTK_VERSION=`${GTK_CONFIG} --modversion`
AC_MSG_RESULT(${GTK_VERSION})
AC_MSG_CHECKING(gtk libs)
=========================================================
Then I got compile errors:
cd ./src && make all
make[1]: Entering directory `/home/tom/src/xemacs-gtk/src'
gcc -c -Wall -Wno-switch -Wundef -Wsign-compare -Wno-char-subscripts
-Wpacked -Wshadow -Wmissing-declarations -Wmissing-prototypes
-Wstrict-prototypes -Wdeclaration-after-statement -Wunused-parameter -g
-Demacs -I. -I/home/tom/src/xemacs-gtk/src -DHAVE_CONFIG_H -DORBIT2=1
-pthread -D_REENTRANT -I/usr/include/libgnomeui-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0
-I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0
-I/usr/include/gtk-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0
-I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0
-I/usr/include/freetype2 -I/usr/include/atk-1.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1
-I/usr/include/directfb -I/usr/include/libpng12 -D_REENTRANT
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1
-I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wno-shadow
glyphs-gtk.c
In file included from /usr/include/gtk-2.0/gtk/gtk.h:228,
from sysgtk.h:33,
from console-gtk.h:39,
from console-gtk-impl.h:41,
from glyphs-gtk.c:68:
/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47: warning: function
declaration isn't a prototype
glyphs-gtk.c:610: warning: function declaration isn't a prototype
glyphs-gtk.c: In function 'resource_name_to_resource':
glyphs-gtk.c:1492: warning: unused parameter 'name'
glyphs-gtk.c: In function 'gtk_add_tab_item':
glyphs-gtk.c:2572: warning: implicit declaration of function
'g_quark_static_string'
glyphs-gtk.c:2573: warning: passing argument 2 of 'g_object_set_data'
makes pointer from integer without a cast
/usr/include/glib-2.0/gobject/gobject.h:490: note: expected 'const gchar
*' but argument is of type 'int'
glyphs-gtk.c: In function 'gtk_tab_control_callback':
glyphs-gtk.c:2602: error: dereferencing pointer to incomplete type
make[1]: *** [glyphs-gtk.o] Error 1
make[1]: Leaving directory `/home/tom/src/xemacs-gtk/src'
make: *** [src] Fehler 2
--
thomas
More information about the XEmacs-Beta
mailing list