diff src/ui-byhand.c @ 563:183866b06e0b

[xemacs-hg @ 2001-05-24 07:50:48 by ben] Makefile.in.in, abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, casetab.c, chartab.c, cmdloop.c, cmds.c, console-msw.c, console-msw.h, console-stream.c, console-tty.c, console-x.c, console.c, data.c, database.c, debug.c, device-gtk.c, device-msw.c, device-tty.c, device-x.c, device.c, dialog-gtk.c, dialog-msw.c, dialog-x.c, dialog.c, dired-msw.c, dired.c, doc.c, doprnt.c, dragdrop.c, editfns.c, eldap.c, eldap.h, elhash.c, emacs-widget-accessors.c, emacs.c, emodules.c, esd.c, eval.c, event-Xt.c, event-gtk.c, event-msw.c, event-stream.c, events.c, extents.c, faces.c, file-coding.c, fileio.c, filelock.c, floatfns.c, fns.c, font-lock.c, frame-gtk.c, frame-x.c, frame.c, general-slots.h, glade.c, glyphs-gtk.c, glyphs-msw.c, glyphs-widget.c, glyphs-x.c, glyphs.c, glyphs.h, gpmevent.c, gui-gtk.c, gui-x.c, gui.c, gutter.c, hpplay.c, indent.c, input-method-xlib.c, insdel.c, intl.c, keymap.c, libsst.c, libsst.h, linuxplay.c, lisp.h, lread.c, lstream.c, lstream.h, macros.c, marker.c, md5.c, menubar-gtk.c, menubar-msw.c, menubar-x.c, menubar.c, minibuf.c, miscplay.c, miscplay.h, mule-ccl.c, mule-charset.c, mule-wnnfns.c, mule.c, nas.c, ntplay.c, ntproc.c, objects-gtk.c, objects-msw.c, objects-x.c, objects.c, postgresql.c, print.c, process-nt.c, process-unix.c, process.c, ralloc.c, rangetab.c, redisplay.c, scrollbar.c, search.c, select-gtk.c, select-x.c, select.c, sgiplay.c, sheap.c, sound.c, specifier.c, sunplay.c, symbols.c, symeval.h, symsinit.h, syntax.c, sysdep.c, toolbar-msw.c, toolbar.c, tooltalk.c, ui-byhand.c, ui-gtk.c, undo.c, unexaix.c, unexapollo.c, unexconvex.c, unexec.c, widget.c, win32.c, window.c: -- defsymbol -> DEFSYMBOL. -- add an error type to all errors. -- eliminate the error functions in eval.c that let you just use Qerror as the type. -- redo the error API to be more consistent, sensibly named, and easier to use. -- redo the error hierarchy somewhat. create new errors: structure-formation-error, gui-error, invalid-constant, stack-overflow, out-of-memory, process-error, network-error, sound-error, printing-unreadable-object, base64-conversion- error; coding-system-error renamed to text-conversion error; some others. -- fix Mule problems in error strings in emodules.c, tooltalk.c. -- fix error handling in mswin open-network-stream. -- Mule-ize all sound files and clean up the headers. -- nativesound.h -> sound.h and used for all sound files. -- move some shared stuff into glyphs-shared.c: first attempt at eliminating some of the massive GTK code duplication. xemacs.mak: add glyphs-shared.c. xemacs-faq.texi: document how to debug X errors subr.el: fix doc string to reflect reality
author ben
date Thu, 24 May 2001 07:51:33 +0000
parents 0784d089fdc9
children 6728e641994e
line wrap: on
line diff
--- a/src/ui-byhand.c	Thu May 24 06:30:21 2001 +0000
+++ b/src/ui-byhand.c	Thu May 24 07:51:33 2001 +0000
@@ -27,12 +27,12 @@
 
   if (!GTK_IS_BOX (XGTK_OBJECT (box)->object))
     {
-      signal_simple_error ("Object is not a GtkBox", box);
+      wtaerror ("Object is not a GtkBox", box);
     }
 
   if (!GTK_IS_WIDGET (XGTK_OBJECT (child)->object))
     {
-      signal_simple_error ("Child is not a GtkWidget", child);
+      wtaerror ("Child is not a GtkWidget", child);
     }
 
   gtk_box_query_child_packing (GTK_BOX (XGTK_OBJECT (box)->object),
@@ -88,7 +88,7 @@
 
   if (!GTK_IS_BUTTON_BOX (XGTK_OBJECT (box)->object))
     {
-      signal_simple_error ("Not a GtkBox object", box);
+      wtaerror ("Not a GtkBox object", box);
     }
 
   gtk_button_box_get_child_size (GTK_BUTTON_BOX (XGTK_OBJECT (box)->object),
@@ -110,7 +110,7 @@
 
   if (!GTK_IS_BUTTON_BOX (XGTK_OBJECT (box)->object))
     {
-      signal_simple_error ("Not a GtkBox object", box);
+      wtaerror ("Not a GtkBox object", box);
     }
 
   gtk_button_box_get_child_ipadding (GTK_BUTTON_BOX (XGTK_OBJECT (box)->object),
@@ -135,7 +135,7 @@
 
   if (!GTK_IS_CALENDAR (XGTK_OBJECT (calendar)->object))
     {
-      signal_simple_error ("Not a GtkCalendar object", calendar);
+      wtaerror ("Not a GtkCalendar object", calendar);
     }
 
   gtk_calendar_get_date (GTK_CALENDAR (XGTK_OBJECT (calendar)->object),
@@ -163,7 +163,7 @@
 
   if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object))
     {
-      signal_simple_error ("Object is not a GtkCList", obj);
+      wtaerror ("Object is not a GtkCList", obj);
     }
 
   gtk_clist_get_text (GTK_CLIST (XGTK_OBJECT (obj)->object), XINT (row), XINT (column), &text);
@@ -198,7 +198,7 @@
 
   if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object))
     {
-      signal_simple_error ("Object is not a GtkCList", obj);
+      wtaerror ("Object is not a GtkCList", obj);
     }
 
   gtk_clist_get_selection_info (GTK_CLIST (XGTK_OBJECT (obj)->object),
@@ -221,7 +221,7 @@
 
   if (!GTK_IS_CLIST (XGTK_OBJECT (clist)->object))
     {
-      signal_simple_error ("Object is not a GtkCList", clist);
+      wtaerror ("Object is not a GtkCList", clist);
     }
 
   gtk_clist_get_pixmap (GTK_CLIST (XGTK_OBJECT (clist)->object),
@@ -248,7 +248,7 @@
 
   if (!GTK_IS_CLIST (XGTK_OBJECT (clist)->object))
     {
-      signal_simple_error ("Object is not a GtkCList", clist);
+      wtaerror ("Object is not a GtkCList", clist);
     }
 
   gtk_clist_get_pixtext (GTK_CLIST (XGTK_OBJECT (clist)->object),
@@ -272,7 +272,7 @@
 
   if (!GTK_IS_COLOR_SELECTION (XGTK_OBJECT (object)->object))
     {
-      signal_simple_error ("Object is not a GtkColorSelection", object);
+      wtaerror ("Object is not a GtkColorSelection", object);
     }
 
   gtk_color_selection_get_color (GTK_COLOR_SELECTION (XGTK_OBJECT (object)), rgba);
@@ -300,7 +300,7 @@
 
   if (!GTK_IS_EDITABLE (XGTK_OBJECT (obj)->object))
     {
-      signal_simple_error ("Object is not a GtkEditable", obj);
+      wtaerror ("Object is not a GtkEditable", obj);
     }
 
   gtk_editable_insert_text (GTK_EDITABLE (XGTK_OBJECT (obj)->object),
@@ -322,7 +322,7 @@
 
   if (!GTK_IS_PIXMAP (XGTK_OBJECT (object)->object))
     {
-      signal_simple_error ("Object is not a GtkPixmap", object);
+      wtaerror ("Object is not a GtkPixmap", object);
     }
 
   gtk_pixmap_get (GTK_PIXMAP (XGTK_OBJECT (object)->object), &pixmap, &mask);
@@ -345,7 +345,7 @@
 
   if (!GTK_IS_CURVE (XGTK_OBJECT (curve)->object))
     {
-      signal_simple_error ("Object is not a GtkCurve", curve);
+      wtaerror ("Object is not a GtkCurve", curve);
     }
 
   vector = (gfloat *) alloca (sizeof (gfloat) * XINT (length));
@@ -377,7 +377,7 @@
 
   if (!GTK_IS_CURVE (XGTK_OBJECT (curve)->object))
     {
-      signal_simple_error ("Object is not a GtkCurve", curve);
+      wtaerror ("Object is not a GtkCurve", curve);
     }
 
   c_vector = (gfloat *) alloca (sizeof (gfloat) * vec_length);
@@ -403,7 +403,7 @@
 
   if (!GTK_IS_LABEL (XGTK_OBJECT (label)->object))
     {
-      signal_simple_error ("Object is not a GtkLabel", label);
+      wtaerror ("Object is not a GtkLabel", label);
     }
 
   gtk_label_get (GTK_LABEL (XGTK_OBJECT (label)->object), &string);
@@ -424,12 +424,12 @@
 
   if (!GTK_IS_NOTEBOOK (XGTK_OBJECT (notebook)->object))
     {
-      signal_simple_error ("Object is not a GtkLabel", notebook);
+      wtaerror ("Object is not a GtkLabel", notebook);
     }
 
   if (!GTK_IS_WIDGET (XGTK_OBJECT (child)->object))
     {
-      signal_simple_error ("Object is not a GtkWidget", child);
+      wtaerror ("Object is not a GtkWidget", child);
     }
 
   gtk_notebook_query_tab_label_packing (GTK_NOTEBOOK (XGTK_OBJECT (notebook)->object),
@@ -449,7 +449,7 @@
 
   if (!GTK_IS_WIDGET (XGTK_OBJECT (widget)->object))
     {
-      signal_simple_error ("Object is not a GtkWidget", widget);
+      wtaerror ("Object is not a GtkWidget", widget);
     }
 
   gtk_widget_get_pointer (GTK_WIDGET (XGTK_OBJECT (widget)->object), &x, &y);
@@ -503,17 +503,17 @@
 
   if (!SYMBOLP (callback) && !LISTP (callback))
     {
-      signal_simple_error ("Callback must be symbol or eval-able form", callback);
+      wtaerror ("Callback must be symbol or eval-able form", callback);
     }
 
   if (!GTK_IS_TOOLBAR (XGTK_OBJECT (toolbar)->object))
     {
-      signal_simple_error ("Object is not a GtkToolbar", toolbar);
+      wtaerror ("Object is not a GtkToolbar", toolbar);
     }
 
   if (!GTK_IS_WIDGET (XGTK_OBJECT (icon)->object))
     {
-      signal_simple_error ("Object is not a GtkWidget", icon);
+      wtaerror ("Object is not a GtkWidget", icon);
     }
 
   callback = Fcons (data, callback);