diff options
author | James Henstridge <james@daa.com.au> | 2000-03-13 09:14:24 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2000-03-13 09:14:24 +0000 |
commit | 7e2f6b8cd1370ef7ec7c6f60534e54b2f1ab2cdf (patch) | |
tree | 15cf9747d1e7b2a940b603ceff50cdb6e58d5217 | |
parent | 7e90f276bf64169dcedaf2ffeb3b7b4367902ac1 (diff) | |
download | pygtk-7e2f6b8cd1370ef7ec7c6f60534e54b2f1ab2cdf.tar.gz |
remove python-1.4 ni stuff, and put in a warning message that you shouldPYGTK_0_6_5GNOME_PYTHON_1_0_52
2000-03-13 James Henstridge <james@daa.com.au>
* pyglade/__init__.py: remove python-1.4 ni stuff, and put in a
warning message that you should think of switching over to libglade.
* pygtk.spec: incremented version number. Code gtk+ dependency into
spec file. Made auxillary packages depend on the pygtk package of
the same version.
* configure.in: incremented version number. Incremented minimum
required GTK+ so that when threading is compiled in we don't get
problems caused by using old buggy versions of GTK+.
* gtkmodule.c (PyGdkWindow_PropertyChange): fixed the 32 bit data
part of the case statement correctly this time :)
2000-03-13 James Henstridge <james@daa.com.au>
* pygnome/gnome/__init__.py: don't bother with the python-1.4
compatibility stuff -- gnome-python won't work with python-1.4 for
other reasons.
* configure.in: updated version. Require gtk+ >= 1.2.6 for same
reasons pygtk requires it.
* gnome-python.spec: incremented version numbers. Add requires
headers for gtk+ and gnome-libs so people don't annoy me with
problems caused by old versions. Also, require the matching version
of pygtk. Also, make pygnome-libglade require pygnome.
* pygnome/gettext.py (Catalog.__init__): check for msb encoded
catalogs as well.
-rw-r--r-- | ChangeLog | 16 | ||||
-rw-r--r-- | NEWS | 7 | ||||
-rw-r--r-- | README | 34 | ||||
-rw-r--r-- | configure.in | 8 | ||||
-rw-r--r-- | gtkmodule.c | 2 | ||||
-rw-r--r-- | pyglade/__init__.py | 9 | ||||
-rw-r--r-- | pygtk.spec | 9 |
7 files changed, 54 insertions, 31 deletions
@@ -1,3 +1,19 @@ +2000-03-13 James Henstridge <james@daa.com.au> + + * pyglade/__init__.py: remove python-1.4 ni stuff, and put in a + warning message that you should think of switching over to libglade. + + * pygtk.spec: incremented version number. Code gtk+ dependency into + spec file. Made auxillary packages depend on the pygtk package of + the same version. + + * configure.in: incremented version number. Incremented minimum + required GTK+ so that when threading is compiled in we don't get + problems caused by using old buggy versions of GTK+. + + * gtkmodule.c (PyGdkWindow_PropertyChange): fixed the 32 bit data + part of the case statement correctly this time :) + 2000-03-08 James Henstridge <james@daa.com.au> * gtkmodule.c (PyGdkWindow_PropertyChange): fixed up problem in @@ -1,3 +1,10 @@ +pygtk-0.6.5: 13-March-2000 + - more reference leaks fixed. + - crashes when changing window properties with 16 or 32 bit data + formats fixed. + - some libglade wrapper fixes. + - various other fixes. + pygtk-0.6.4: 16-February-2000 - gnome-python now requires python >= 1.5.2, as it uses the 'N' format tag for PyArg_ParseTuple. @@ -22,8 +22,8 @@ New Versions ============ New versions of this package can be found at: - ftp://ftp.daa.com.au/pub/james/python/ ftp://ftp.gtk.org/pub/gtk/python/ + ftp://ftp.daa.com.au/pub/james/python/ ftp://ftp.python.org/pub/contrib/Graphics/ @@ -49,7 +49,7 @@ Compilation This archive contains a single C module called gtkmodule. It contains an almost direct mapping of the functions in GTK including GTK signal handling, and the gtk_object_new/gtk_object_set commands. This -version REQUIRES gtk+-1.2.1 or later, as it includes support for +version REQUIRES gtk+-1.2.6 or later, as it includes support for features not found in previous versions, and there are incompatibilities between versions. Also if you want the GdkImlib extension, you must have Imlib version 1.8 or greater. I recommend @@ -68,12 +68,10 @@ should generate the Makefile from the file Makefile.in. Now you should be able to run "make" to compile the module. Now you should install the files. I have provided an install target to the -makefile, so you should be able to just type "make install". On -systems with Python 1.5 and later, it installs to the site-packages -directory (using prefix and exec_prefix where appropriate). For -Python 1.4, it installs the python code to $(prefix)/lib/python$(version), -and the libraries to $(excec_prefix)/lib/python$(version)/sharedmodules. -It also compiles .pyc files from the python code. +makefile, so you should be able to just type "make install". It +installs to the site-packages directory (using prefix and exec_prefix +where appropriate). It also compiles .pyc and .pyo files from the +python code. If you had a copy of gdk_imlib installed on your system (and configure could find it) when you built pygtk, a wrapper for it will have been @@ -89,7 +87,7 @@ is about. Upgrading ========= -Note that from version 0.5.0 up, pygtk uses GTK >= 1.1. Since there +Note that from version 0.5.0 up, pygtk uses GTK >= 1.2. Since there were some changes to the API, pygtk has changed accordingly. The main one that will cause problems is the GtkAcceleratorTable. In this version, it has been removed and replaced with the GtkAccelGroup. @@ -126,8 +124,13 @@ enough, after building gtkmodule) _gtkmodule and GTK.py ==================== +Using the non object oriented interfaces of pygtk is not really +supported and the interfaces will disapear with the 0.7.x series, as I +am switching over to using ExtensionClass, so the C wrappers will be +object oriented without the python class wrappers. + This module contains an almost complete translation of the functions -in the gtk library. To start up, put in the command "from gtk import +in the gtk library. To start up, put in the command "from _gtk import *". If you want to use any of the constants, type "from GTK import *". The constants all have the "GTK_" removed from the start. Before creating any GtkObjects, you should execute the command "gtk_init()". @@ -201,11 +204,8 @@ python, read the file MAPPING that is distributed with this package. Should I Use _gtkmodule or gtk.py? =================================== -The gtk.py module allows faster prototyping of interfaces, and is easy -to convert to C. It also uses object oriented ideas familiar to most -Python users. On the other hand, if you want something as close to C -as possible, go with _gtkmodule. - +For any new programs, use the interfaces in gtk.py. The function +based interface will be disapearing in a later release. Contacting the Author ===================== @@ -213,6 +213,6 @@ Contacting the Author You can contact me at the email address <james@daa.com.au>. I try to answer my email quickly, but occasionally there will be a bit of a delay. If you have an idea for a way to extend GTK, have found a -problem with the code (I don't think there are many bugs anymore), or -would like to contribute some code, please feel free to contact me. +problem with the code, or would like to contribute some code, please +feel free to contact me. diff --git a/configure.in b/configure.in index e6d2ebd7..cb2dfae7 100644 --- a/configure.in +++ b/configure.in @@ -1,15 +1,13 @@ -AC_INIT +AC_INIT(gtkmodule.c) -dnl for gnome-python: - -AM_INIT_AUTOMAKE(pygtk, 0.6.4) +AM_INIT_AUTOMAKE(pygtk, 0.6.5) AM_PATH_PYTHON AM_INIT_PYEXEC_MOD AM_CHECK_PYMOD(thread,,extra_mods=gthread,extra_mods=) -AM_PATH_GTK(1.2.1,,,$extra_mods) +AM_PATH_GTK(1.2.6,,,$extra_mods) AM_PATH_GDK_IMLIB(1.8, build_imlib=true, build_imlib=false) AM_CONDITIONAL(BUILD_IMLIB, $build_imlib) diff --git a/gtkmodule.c b/gtkmodule.c index afa1405e..7be610e8 100644 --- a/gtkmodule.c +++ b/gtkmodule.c @@ -1579,7 +1579,7 @@ static PyObject *PyGdkWindow_PropertyChange(PyGdkWindow_Object *self, } nelements = PySequence_Length(pdata); data32 = g_new(guint32, nelements); - data = (guchar *)data16; + data = (guchar *)data32; for (i = 0; i < nelements; i++) { PyObject *item = PySequence_GetItem(pdata, i); Py_DECREF(item); diff --git a/pyglade/__init__.py b/pyglade/__init__.py index 7e5267c4..bd22b6e9 100644 --- a/pyglade/__init__.py +++ b/pyglade/__init__.py @@ -7,8 +7,7 @@ def construct(filename): tree.destroy() return wtree -# for ni ... -try: - __.__dict__['construct'] = construct -except NameError: - pass +import sys +sys.stderr.write( + '*** You should really think about switching over to libglade\n') +del sys @@ -1,7 +1,7 @@ %define py_prefix /usr # py_ver should only be 3 characters (1.5.1 == 1.5) %define py_ver 1.5 -%define ver 0.6.4 +%define ver 0.6.5 # you may want to remove some of the sub packages depending on what you # have installed on your system when building this package. @@ -12,10 +12,11 @@ Version: %ver Release: 1 Copyright: GPL Group: Development/Languages -Source: ftp://ftp.daa.com.au/pub/james/python/pygtk-%{ver}.tar.gz +Source: ftp://ftp.gtk.org/pub/gtk/python/pygtk-%{ver}.tar.gz BuildRoot: /var/tmp/pygtk-root Packager: James Henstridge <james@daa.com.au> -Requires: gtk+ imlib +Requires: gtk+ >= 1.2.6 +Requires: imlib Requires: python >= 1.5.2 %description @@ -26,6 +27,7 @@ in python with PyGTK (within reason), but with all of python's benefits. %package glarea Summary: A wrapper for the GtkGLArea widget for use with PyGTK Group: Development/Languages +Requires: pygtk = %{ver} %description glarea This module contains a wrapper for the GtkGLArea widget, which allows you @@ -35,6 +37,7 @@ Python OpenGL bindings such as PyOpenGL to actually do any OpenGL rendering. %package libglade Summary: A wrapper for the libglade library for use with PyGTK Group: Development/Languages +Requires: pygtk = %{ver} %description libglade This module contains a wrapper for the libglade library. Libglade is a |