Can't compile this release:

gtkspellmodule.c: In function `_wrap_gtkspell_set_language':
gtkspellmodule.c:55: warning: control reaches end of non-void function
gtkspellmodule.c: In function `_wrap_gtkspell_get_from_text_view':
gtkspellmodule.c:76: request for member `obj' in something not a
structure or union
make[2]: *** [gtkspellmodule.lo] Error 1

  Patch in attachment fixes it.  Nice work on the configure/make stuff,
though.


A Seg, 2004-02-23 �s 05:10, John (J5) Palmieri escreveu:
> As requested, a better packaged, super charged, highly descriptive
> GtkSpell Python binding.  GtkSpell[1] is a easy to use library that
> works in conjunction with the GtkTextView widget to give programs spell
> checking capabilities with only a few lines of code.
> 
> To obtain a copy of PyGtkSpell, the GtkSpell Python Binding please point
> your browser to:
> http://martianrock.com/dropzone/pygtkspell-0.2.tar.gz
> 
> This release moves the build to a standard GNU autotools format so it
> should be much easier to compile and use.  Please send bug reports
> directly to me for now at [EMAIL PROTECTED]
> 
> In order to compile you will need GtkSpell and PyGTK[2] development
> packages installed on your system.  Refer to test.py in the examples
> directory to see how to use this library.
> 
> [1] http://gtkspell.sourceforge.net
> [2] http://pygtk.org
> 
> --
> J5
> 
> _______________________________________________
> pygtk mailing list   [EMAIL PROTECTED]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo Jo�o Alves Marques Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
The universe is always one step beyond logic.
--- pygtkspell-0.2/src/gtkspellmodule.c	2004-02-23 04:45:14.000000000 +0000
+++ pygtkspell-0.2-gjc/src/gtkspellmodule.c	2004-02-23 11:07:40.000000000 +0000
@@ -51,7 +51,8 @@ _wrap_gtkspell_new_attach (PyTypeObject 
 PyObject *
 _wrap_gtkspell_set_language (gtkspell_SpellObject *self, PyObject *args, PyObject *kwds)
 {
-	
+        PyErr_SetString(PyExc_RuntimeError, "not implemented");
+	return NULL;
 }
 
 PyObject *
@@ -73,7 +74,7 @@ _wrap_gtkspell_get_from_text_view (PyObj
                          
         PyArg_ParseTuple (args, "O", &pytextview);
 
-        textview = GTK_TEXT_VIEW(pytextview.obj);
+        textview = GTK_TEXT_VIEW(((PyGObject *)pytextview)->obj);
 
 	self = (gtkspell_SpellObject *)PyType_GenericAlloc((PyTypeObject *)&gtkspell_SpellType, 1);
         if (self != NULL) {
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to