Stephen J. Turnbull writes:
Jeff, I'm having trouble on the Mac. I do have GTK+ 2.24.22, and
I get
a build and the automatic test suite runs OK. But as soon as I try to
run it with the GUI, it crashes:
(gdb) run -vanilla
Starting program: /Users/steve/src/XEmacs/21.5/xemacs-gtk/+build/src/xemacs -vanilla
Xlib: extension "RANDR" missing on display
"/tmp/launch-vyVDPM/org.x:0".
Program received signal SIGSEGV, Segmentation fault.
0x00000001018e68d6 in g_type_fundamental ()
from /opt/local/lib/libgobject-2.0.0.dylib
OK, I've managed to repair this by changing the type of GType from
"guint" to "GType" in a couple places. diff follows, but I don't
know
if it's appropriate to commit (GType might be GTK 3-only?)
N.B. contrary to the quote above, I am now building with GTK+ 3.10.1.
Unfortunately, now I get no toolbar (but space is reserved for it),
and the menubar is quite busted (no visible labels and the active
regions on the menubar for each submenu are about a dozen pixels wide.
However, I can activate the submenus and was able to quit using File |
Exit XEmacs. The tabs are somewhat broken, which is probably related
to the many thousands (literally) of repetitions of the warning:
(xemacs:50428): Gtk-WARNING **: GtkXEmacs 0x102bf5830 is mapped but visible child
GtkNotebook 0x1034c9510 is not mapped
Ah, note that G_TYPE_INVALID is actually ((GType) 0) according to the
web docs.
diff -r d7342b18c0c6 src/gtk-xemacs.c
--- a/src/gtk-xemacs.c Wed Nov 20 00:06:22 2013 -0500
+++ b/src/gtk-xemacs.c Thu Nov 21 02:53:11 2013 +0900
@@ -60,12 +60,12 @@
static gint gtk_xemacs_expose (GtkWidget *widget, GdkEventExpose *event);
#endif
-guint
+GType
gtk_xemacs_get_type (void)
{
- static guint xemacs_type = 0;
+ static GType xemacs_type = G_TYPE_INVALID;
- if (!xemacs_type)
+ if (xemacs_type == G_TYPE_INVALID)
{
xemacs_type =
g_type_register_static_simple (GTK_TYPE_FIXED,
@@ -77,6 +77,7 @@
(GTypeFlags) 0);
}
+ assert(xemacs_type != G_TYPE_INVALID);
return xemacs_type;
}
diff -r d7342b18c0c6 src/gtk-xemacs.h
--- a/src/gtk-xemacs.h Wed Nov 20 00:06:22 2013 -0500
+++ b/src/gtk-xemacs.h Thu Nov 21 02:53:11 2013 +0900
@@ -47,7 +47,7 @@
GtkFixedClass parent_class;
};
-guint gtk_xemacs_get_type (void);
+GType gtk_xemacs_get_type (void);
GtkWidget *gtk_xemacs_new (struct frame *f);
END_C_DECLS
Regards,
Steve
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta