summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* init as module gtk._gtk. Using just _gtk doesn't seem to work with pythonJames Henstridge2000-10-301-1/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-30 James Henstridge <james@daa.com.au> * gtk/gtkmodule.c (init_gtk): init as module gtk._gtk. Using just _gtk doesn't seem to work with python 2.0 2000-10-29 James Henstridge <james@james.daa.com.au> * examples/ide/gtkcons.py: small changes to make example run. * gtk/gtk-types.c: add GtkTextIter.forward_search implementation. * gtk/gtk.override: more override functions. * gtk/gtkobject-support.c: remove some of the unused functions from this file. 2000-10-28 James Henstridge <james@james.daa.com.au> * gtk/gtk.override: override the functions used to initialise GtkTextIter objects so that they return the iterator rather than setting up an static GtkTextIter structure. * gtk/gtk.defs (TextMark): add missing GtkTextMark object. Don't know why h2defs missed it. ("gtk-extrafuncs.defs"): include gtk-extrafuncs.defs. * codegen/argtypes.py: add GdkDevice and GtkTextIter to list of recognised boxed types. * gtk/gtk-types.c: add skeleton implementation of GtkTextIter. * gtk/pygtk.h, gtk/pygtk-private.h: add prototypes for GtkTextIter wrapper. * gtk/gtk.override: ref and sink GtkObjects which have their constructors listed in the overrides file. This should get rid of the last few warnings on exit related to reference counting. * codegen/codegen.py: use the keyword module to check for method and argument names that conflict with the python keywords. By using this module, we shouldn't have problems with new keywords in future versions of python. 2000-10-27 James Henstridge <james@james.daa.com.au> * gobjectmodule.c (pygobject_emit): support for emiting signals on GObjects from python. * codegen/codegen.py (write_constructor): sink GtkObjects. This prevents us losing our reference to the object if it is sunk. * codegen/argtypes.py (ArgMatcher.object_is_a): function to check if one object type is another type. * codegen/codegen.py (register_types): pass the parent type when registering a new GObject type. * gtk/gtk-types.c (_pygtk_register_boxed_types): register marshalers for the various boxed types, so that they work as expected inside the signal handlers. * gobjectmodule.c (pygobject_repr): small change to match style of other repr functions in python. * gtk/gtkmodule.c (init_gtk): only call g_thread_init() if pygtk threading support is enabled. * configure.in (enable_thread): add configure checks so that threading support can be disabled even if python was compiled with it. It defaults to off for now because GSignal has some mutex deadlocks at the moment.
* remove gtk_signal_set_funcs call.James Henstridge2000-10-261-2/+166
| | | | | | | | | | | 2000-10-26 James Henstridge <james@daa.com.au> * gtk/gtkmodule.c (init_gtk): remove gtk_signal_set_funcs call. * gobjectmodule.c (pyg_value_from_pyobject): default to using CObject for unknown boxed values and pointer values. (pyg_value_as_pyobject): same here. (pygobject_connect*): Add signal connection functions.
* new function for registering functions to marshal boxed GValues to/fromJames Henstridge2000-10-262-10/+146
| | | | | | | | | | | | | | | | | | 2000-10-26 James Henstridge <james@daa.com.au> * gobjectmodule.c (pyg_boxed_register): new function for registering functions to marshal boxed GValues to/from their python wrappers. (pyg_value_from_pyobject): add boxed support. (pyg_value_as_pyobject): add boxed support. (pyg_closure_new): new function to create a python GClosure. (pyg_closure_destroy): cleanup function for a PyGClosure. (pyg_closure_marshal): marshaler for PyGClosure. (pyg_value_as_pyobject): add const to GValue argument. * pygobject.h: export a pyg_boxed_register function to register new boxed types for use with pyg_value_from_pyobject and pyg_value_as_pyobject.
* include <glib-object.h> rather than <gobject/...>James Henstridge2000-10-252-3/+1
|
* more updates.James Henstridge2000-10-251-1/+2
| | | | | | | | | 2000-10-25 James Henstridge <james@daa.com.au> * gtk/gtk.defs: more updates. * gobjectmodule.c (pygobject_getattro): return NULL on error. This fixes the segfault :)
* add a field just to test pygobject_getattro. It isn't working quiteJames Henstridge2000-10-251-7/+9
| | | | | | | | | | | | | | | | | | | | | | 2000-10-25 James Henstridge <james@daa.com.au> * gtk/gtk.defs (Bin): add a field just to test pygobject_getattro. It isn't working quite properly at the moment though :( * gobjectmodule.c (check_bases): class->bases is a tuple -- not a list. (check_bases): check if class->bases != NULL before using it :( * gtk/gtk.defs: comment out new tree widget stuff at hp and owen's suggestion. * gtk/__init__.py: import gobject here as well to prevent weirdness. * gtk/gtk.defs: more updates, adding (is-constructor-of ...) and (default "...") clauses. * gtk/gtk.override (_wrap_gtk_button_new): handle the accel_group argument, and try to create a stock button if possible.
* add support for GdkDevice and convert function names to lowercase.James Henstridge2000-10-241-12/+48
| | | | | | | | | | | | | | | | | | | | 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
* actually initialise the gobject stuff for gtk._gtk.James Henstridge2000-07-031-2/+2
| | | | | | | | | | | 2000-07-03 James Henstridge <james@daa.com.au> * gtk/gtkmodule.c (init_gtk): actually initialise the gobject stuff for gtk._gtk. * pygobject.h (pygobject_check): call the correct ExtensionClass check macro. (init_pygobject): small fixup here.
* call the correct ExtensionClass check macro.James Henstridge2000-07-031-1/+1
| | | | | | | | | | | | 2000-07-03 James Henstridge <james@daa.com.au> * pygobject.h (pygobject_check): call the correct ExtensionClass check macro. * codegen/codegen.py (consttmpl): use pygobject_register_wrapper. (getattrtmpl): make the getattr function raise an exception on unhandled attributes. I will use a tp_getattro function to bind all the getattr functions of base classes together.
* use PyGObject rather than PyGtk_Object.James Henstridge2000-07-021-0/+1
| | | | | | | | | | 2000-07-03 James Henstridge <james@daa.com.au> * codegen/argtypes.py (ObjectArg.write_param): use PyGObject rather than PyGtk_Object. * pygobject.h (pygobject_check): add check function. Just a wrapper around ExtensionClassSubclassInstance.
* (pygobject_[gs]et_param): free the GValue afterwards so as not toJames Henstridge2000-06-291-1/+5
| | | | leak memory.
* use pygobject.h.James Henstridge2000-06-292-13/+86
| | | | | | | | 2000-06-29 James Henstridge <james@daa.com.au> * gobjectmodule.c: use pygobject.h. * pygobject.h: header for modules that want to use GObject.
* Added GObject.queue_param_changed methodJames Henstridge2000-06-281-0/+13
|
* add get_data / set_data methods. Add get_param / set_param methods.James Henstridge2000-06-281-1/+19
| | | | | | | | | | | 2000-06-28 James Henstridge <james@daa.com.au> * gobjectmodule.c: add get_data / set_data methods. Add get_param / set_param methods. (pygobject__init__): simple init function for GObjects. Doesn't handle params yet. (pygobject_register_wrapper): don't ref the GObject -- it isn't like GtkObjects where we ref/sink them.
* add get_data / set_data methods. Add get_param / set_param methods.James Henstridge2000-06-271-0/+85
| | | | | | | 2000-06-28 James Henstridge <james@daa.com.au> * gobjectmodule.c: add get_data / set_data methods. Add get_param / set_param methods.
* start of gobject wrapper.James Henstridge2000-06-271-0/+528
| | | | | | 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/+60