summaryrefslogtreecommitdiff
path: root/gtk/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* don't install the GTK.py header.James Henstridge2001-09-151-1/+1
| | | | | | | | | | | | | | | | 2001-09-15 James Henstridge <james@daa.com.au> * gtk/Makefile.am (pygtk_PYTHON): don't install the GTK.py header. * pygtk.spec: update spec file, and add -devel sub package. * configure.in: use AC_HELP_STRING to format help strings, update version number. * acinclude.m4: remove the AM_PATH_PYTHON macro, as it is in automake 1.5. * Makefile.am: require automake 1.5 to build.
* merge from short-class-names-branchJames Henstridge2001-09-141-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-14 James Henstridge <james@daa.com.au> merge from short-class-names-branch 2001-09-12 James Henstridge <james@daa.com.au> * codegen/codegen.py (write_class, write_interface): set the short name as the class name here. * gobjectmodule.c (pygobject_register_class): pass ec->tp_name as the name for the class passed to PyExtensionClass_Export*. * codegen/codegen.py (write_source): pass the C name to pygobject_register_class again. 2001-09-11 James Henstridge <james@daa.com.au> * gtk/__init__.py (create_pixmap): few fixups to get things to import correctly. * gtk/gtkmodule.c (init_gtk): there is no _pygdk_register_boxed(). * gtk/libglade.override (init): same here. * gtk/gtk.override (init): same here. * gtk/gdk.override (init): use short class names here. * gtk/gtkmodule.c (init_gtk): initialise both the gtk._gtk and gtk.gdk modules. * gtk/gtk.defs: don't include gdk.defs * gtk/gtk.override: remove all GDK override wrappers. * gtk/gdk.override: new file taking the overrides for GDK functions. * codegen/codegen.py (write_source): register only the short name of the GObject, interface or boxed type.
* add checks for libglade.James Henstridge2001-08-211-13/+36
| | | | | | | | 2001-08-21 James Henstridge <james@daa.com.au> * configure.in (build_libglade): add checks for libglade. * gtk/libglade*: add the libglade module to the build
* add pygtk-codegen-2.0 to list of files to be processed.James Henstridge2001-07-031-21/+10
| | | | | | | | | | | | | | | 2001-07-03 James Henstridge <james@daa.com.au> * configure.in (AC_OUTPUT): add pygtk-codegen-2.0 to list of files to be processed. * codegen/codegen.py (register_types): fix typo s/parser/defsparser/ * gtk/Makefile.am ($(srcdir)/gtk.c): register types from pango.defs. * gtk/gtk.override (init): import the PangoContext and PangoLayout classes from the pango module.
* install the code generatorJames Henstridge2001-05-291-19/+2
| | | | | | | | | | | | | 2001-05-29 James Henstridge <james@daa.com.au> * codegen/Makefile.am: install the code generator * gtk/Makefile.am: install the pygtk.h header * Makefile.am: install the pygobject.h header * gtk/gdk.defs, gtk/gtk.defs, gtk/gtk-types.c: changes to make things compile.
* limit the symbols exported by the various modules to just their moduleJames Henstridge2001-04-281-1/+1
| | | | | | | 2001-04-28 James Henstridge <james@daa.com.au> * Makefile.am, pygtk/Makefile.am: limit the symbols exported by the various modules to just their module init function.
* moved rewritten testgtk demo hereJames Henstridge2001-03-301-13/+4
| | | | | | | | | | | | | | | | | | | | 2001-03-30 James Henstridge <james@daa.com.au> * examples/pygtk-demo: moved rewritten testgtk demo here * gobjectmodule.c (pygobject_set_property): initialise the GValue to { 0, }, so set_property actually works. (pygobject_get_property): same here. * gtk/gtk.defs: updated enum/flag defs. * gtk/gdk.defs: updated enum/flag defs. * examples/gobject/signal.py (D.do_my_signal): add small example of overriding class closure for a signal introduced from python code. * codegen/h2def.py: add --onlyenums flag to only output enum defs.
* fix PyObject_CallMethod calls to add parentheses around argument typeJames Henstridge2000-12-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-12-06 James Henstridge <james@daa.com.au> * gtk/pygtktreemodel.c: fix PyObject_CallMethod calls to add parentheses around argument type list. (pygtk_tree_model_get_flags): decref py_ret -- not Py_None (pygtk_tree_model_get_n_columns): same here. (pygtk_tree_model_get_column_type): same here. (*): conditionally print out debugging messages. * examples/testgtk/demos/treemodel.py: simple test of PyGtkTreeModel. * gtk/pygtktreemodel.c: set iter->tree_node to NULL when returning FALSE, as GTK sometimes ignores the return value :( * codegen/codegen.py (interfacetypetmpl): don't set the interface type as having an instance dictionary. (write_interface): actually use interfacetypetmpl when writing out the interface type def. * codegen/argtypes.py (_conv_special_cases): add a special case for the underscore version of PyGtkTreeModel. * gtk/gtk.override: include pygtktreemodel.h * gtk/__init__.py: don't error out if we can't import ltihooks. * gtk/gtk-extrafuncs.defs: include defs for PyGtkTreeModel type. * gtk/Makefile.am (_gtkmodule_la_SOURCES): compile PyGtkTreeModel into pygtk. * gtk/pygtktreemodel.c: fix errors.
* fix bug where mod.__file__ is the .pyc file rather than the .py file.James Henstridge2000-11-291-2/+2
| | | | | | | | | | | | | 2000-11-29 James Henstridge <james@daa.com.au> * examples/testgtk/testgtk.py (load_module): fix bug where mod.__file__ is the .pyc file rather than the .py file. * gtk/gtk.defs: change parent type for some classes to GtkDialog to match changes in gtk+. * gtk/Makefile.am (pysitedir, pyexecdir): fix up directory names. It wasn't installing these files in a gtk/ subdirectory :(
* add support for GdkDevice and convert function names to lowercase.James Henstridge2000-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | 2000-10-24 James Henstridge <james@daa.com.au> * gtk/gtk-types.c: add support for GdkDevice and convert function names to lowercase. * gtk/gtkmodule.c: add GdkDevice stuff to PyGtk_API. * gtk/pygtk.h, gtk/pygtk-private.h: add GdkDevice to list of boxed types. 2000-10-23 James Henstridge <james@daa.com.au> * gobjectmodule.c: don't set the getattr method on objects if it isn't already set. Also, install a getattro handler that will perform the usual method/attribute lookup and then call the getattr method for all base classes to allow specifying of class specific attributes
* handle the null constructor better.James Henstridge2000-07-031-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-07-03 James Henstridge <james@daa.com.au> * codegen/codegen.py (noconstructor): handle the null constructor better. * gtk/gtk-types.c (_pygtk_register_boxed_types): commented out the object implementations for types that have been converted to GObjects. * gtk/gtkobject-support.c: commented out some of this code to get it to compile again. Also converted some functions over to GObject. * codegen/argtypes.py (EnumArg,FlagsArg): use the version from gobject. * gtk/gtkmodule.c: update * gtk/gtk.override: fix up the overrides for the new gdk.defs stuff. (GTK_TYPE_GDK_*): add some dummy defines to make things compile until the gdk-pixbuf enums are added to * codegen/argtypes.py (ObjectArg.write_param): use PyGObject rather than PyGtk_Object. * pygobject.h (pygobject_check): add check function. Just a wrapper around ExtensionClassSubclassInstance. * codegen/codegen.py: updated to use PyGObject rather than PyGtk_Object. * gtk/gtk.defs: removed most of the stuff here so I can test out the gdk stuff.
* start of gobject wrapper.James Henstridge2000-06-271-35/+35
| | | | | | 2000-06-27 James Henstridge <james@daa.com.au> * gobjectmodule.c (pygobject_dealloc): start of gobject wrapper.
* pull more stuff from extension-class-branchJames Henstridge2000-06-261-0/+79