public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
* gdk-1.2.defs loses on gdk_draw_text, gdk_draw_points
@ 2000-11-16  9:16 Greg Troxel
  2000-11-19 14:36 ` Marius Vollmer
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Troxel @ 2000-11-16  9:16 UTC (permalink / raw)
  To: guile-gtk

I am using guile from cvs (yesterday) and gnome-guile from cvs
(today) on FreeBSD 3.3 i386 with glib-1.2.8 and gtk-1.2.8.  Both are
from the FreeBSD ports collection, and hence are named with 12 in
them, but that doesn't seem to cause the problems below.

After fixing the string-append problem, I had two more problems.

One was that gdk_draw_text was said to have wrong args.  In
gdk-1.2.defs, I don't see where the text argument is defined.

Another was gdk_draw_points, which depends on GdkPoint.
GdkPoint seems to be commented out.  I uncommented it and got
gdk-glue.c:371: `gdk_point_copy' undeclared here (not in a function)
gdk-glue.c:371: initializer element for `sgtk_gdk_point_info.copy' is not constant
gdk-glue.c:372: `gdk_point_destroy' undeclared here (not in a function)
gdk-glue.c:372: initializer element for `sgtk_gdk_point_info.destroy' is not constant

So I commend out gdk_draw_points, since I don't need it.
(in retrospect, manually downgrading to 1.20 from 1.21 of gdk-1.2.defs...)


        Greg Troxel <gdt@ir.bbn.com>

Index: gdk-1.2.defs
===================================================================
RCS file: /IR-CVS/guile-gtk/gdk-1.2.defs,v
retrieving revision 1.1.1.4
diff -u -u -r1.1.1.4 gdk-1.2.defs
--- gdk-1.2.defs	2000/11/16 14:30:16	1.1.1.4
+++ gdk-1.2.defs	2000/11/16 17:05:25
@@ -417,20 +417,20 @@
    (int y)
    (string string)))
 
-(define-func gdk_draw_text
-  none
-  ((GdkWindow window)
-   (GdkFont font)
-   (GdkGC gc)
-   (int x)
-   (int y)))
+; (define-func gdk_draw_text
+;   none
+;   ((GdkWindow window)
+;    (GdkFont font)
+;    (GdkGC gc)
+;    (int x)
+;    (int y)))
 
-(define-func gdk_draw_points
-  none
-  ((GdkWindow window)
-   (GdkGC gc)
-   (GdkPoint points)
-   (int npoints)))
+; (define-func gdk_draw_points
+;   none
+;   ((GdkWindow window)
+;    (GdkGC gc)
+;    (GdkPoint points)
+;    (int npoints)))
 
 (define-func gdk_string_width
   int

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gdk-1.2.defs loses on gdk_draw_text, gdk_draw_points
  2000-11-16  9:16 gdk-1.2.defs loses on gdk_draw_text, gdk_draw_points Greg Troxel
@ 2000-11-19 14:36 ` Marius Vollmer
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Vollmer @ 2000-11-19 14:36 UTC (permalink / raw)
  To: Greg Troxel; +Cc: guile-gtk

Greg Troxel <gdt@fnord.ir.bbn.com> writes:

> After fixing the string-append problem, I had two more problems.

Fixed!  (I had the change sitting in my sources, but I forgot to
commit it...)
 
> One was that gdk_draw_text was said to have wrong args.  In
> gdk-1.2.defs, I don't see where the text argument is defined.

Fixed!
 
> Another was gdk_draw_points, which depends on GdkPoint.

Fixed!  There is no GdkPoint type, I used `(cvecr point)' instead.

> GdkPoint seems to be commented out.

The GdkPoint definition is bogus.  Hmm, I should remove it...

Thanks for reporting this!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-11-19 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-16  9:16 gdk-1.2.defs loses on gdk_draw_text, gdk_draw_points Greg Troxel
2000-11-19 14:36 ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).