| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
| |
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 :)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
leak memory.
|
|
|
|
|
|
|
|
| |
2000-06-29 James Henstridge <james@daa.com.au>
* gobjectmodule.c: use pygobject.h.
* pygobject.h: header for modules that want to use GObject.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
2000-06-28 James Henstridge <james@daa.com.au>
* gobjectmodule.c: add get_data / set_data methods.
Add get_param / set_param methods.
|
|
|
|
|
|
| |
2000-06-27 James Henstridge <james@daa.com.au>
* gobjectmodule.c (pygobject_dealloc): start of gobject wrapper.
|
|
|