Skip to content
Commits on Dec 14, 2000
  1. destroy window on button's clicked signal rather than destroy signal.

    James Henstridge committed with James Henstridge Dec 14, 2000
    2000-12-14  James Henstridge  <james@daa.com.au>
    
    	* examples/testgtk/demos/menu.py (main): destroy window on
    	button's clicked signal rather than destroy signal.
    
    	* gtk/gtk.defs: remove gtk_object_default_construct and
    	gtk_object_constructed.
    
    	* gobjectmodule.c: change over to new notification functions.
    
    	* gtk/gtk-types.c: rename functions.
    
    	* gobjectmodule.c (pygobject_get_property):
    	(pygobject_set_property): change function names to match changes
    	in glib.
    	(...connect|emit): use g_signal_parse_name instead of
    	g_signal_lookup, so we can parse the detail out of the signal name
    	string.
Commits on Nov 11, 2000
  1. start of a revamped testgtk example, similar to the new one in gtk.

    James Henstridge committed with James Henstridge Nov 11, 2000
    2000-11-11  James Henstridge  <james@daa.com.au>
    
    	* examples/testgtk/testgtk.py: start of a revamped testgtk
    	example, similar to the new one in gtk.
    
    	* gtk/gtk-types.c (PyGdkEvent_New): guard against a NULL axes
    	member in the GdkEvent structure.
    
    	* gtk/gtk.override (_wrap_gtk_tree_view_get_path_at_pos):
    	implementation of this function.
    
    	* codegen/argtypes.py (GtkTreePathArg): add an arg matcher for
    	GtkTreePath objects, that represents them as tuples of integers.
    
    	* gtk/gtk-types.c (_pygtk_register_boxed_types): add marshalers
    	for GtkTreeIter and GtkTreePath so they can be used from signal
    	handlers now.
    
    	* gtk/gtk.override, gtk/gtk.defs: make name change for
    	GtkTreeStore constructor.
Commits on Nov 9, 2000
  1. change code generator to pass bases in as a tuple rather than a single

    James Henstridge committed with James Henstridge Nov 9, 2000
    2000-11-09  James Henstridge  <james@daa.com.au>
    
    	* codegen/codegen.py (write_source): change code generator to pass
    	bases in as a tuple rather than a single PyExtensionClass
    	structure.
    
    	* pygobject.h: change prototype.
    
    	* gobjectmodule.c (pygobject_register_class): allow for registerin
    	a type with multiple base classes.
Commits on Nov 8, 2000
  1. add a special case for converting GObject -> G_OBJECT.

    James Henstridge committed with James Henstridge Nov 8, 2000
    2000-11-08  James Henstridge  <james@daa.com.au>
    
    	* codegen/argtypes.py (_conv_special_cases): add a special case
    	for converting GObject -> G_OBJECT.
    
    	* gobjectmodule.c (pygobject_connect*): g_signal_connect_closure
    	renaming.
    
    	* codegen/argtypes.py (arg): add GtkTreeIter support.
    
    	* gtk/gtk-types.c, gtk/pygtk.h, gtk/pygtk-private.h: add a
    	skeleton for the GtkTreeIter wrapper.
Commits on Oct 30, 2000
  1. reorder parameters to make it work with latest glib. (pygobject_conne…

    James Henstridge committed with James Henstridge Oct 30, 2000
    …ct*):
    
    2000-10-30  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (pyg_closure_marshal): reorder parameters to
    	make it work with latest glib.
    	(pygobject_connect*): pass 0 for the new detail parameter.  Don't
    	know what it is for.
    	(pygobject_emit): pass 0 for detail parameter.
    	(pygobject_stop_emission): pass 0 for detail parameter.
  2. init as module gtk._gtk. Using just _gtk doesn't seem to work with py…

    James Henstridge committed with James Henstridge Oct 30, 2000
    …thon
    
    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.
Commits on Oct 26, 2000
  1. remove gtk_signal_set_funcs call.

    James Henstridge committed with James Henstridge Oct 26, 2000
    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.
  2. new function for registering functions to marshal boxed GValues to/from

    James Henstridge committed with James Henstridge Oct 26, 2000
    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.
Commits on Oct 25, 2000
  1. include <glib-object.h> rather than <gobject/...>

    James Henstridge committed Oct 25, 2000
  2. more updates.

    James Henstridge committed with James Henstridge Oct 25, 2000
    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 :)
  3. add a field just to test pygobject_getattro. It isn't working quite

    James Henstridge committed with James Henstridge Oct 25, 2000
    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.
Commits on Oct 24, 2000
  1. add support for GdkDevice and convert function names to lowercase.

    James Henstridge committed with James Henstridge Oct 24, 2000
    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
Commits on Jul 3, 2000
  1. actually initialise the gobject stuff for gtk._gtk.

    James Henstridge committed with James Henstridge Jul 3, 2000
    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.
  2. call the correct ExtensionClass check macro.

    James Henstridge committed with James Henstridge Jul 3, 2000
    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.
Commits on Jul 2, 2000
  1. use PyGObject rather than PyGtk_Object.

    James Henstridge committed with James Henstridge Jul 2, 2000
    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.
Commits on Jun 29, 2000
  1. (pygobject_[gs]et_param): free the GValue afterwards so as not to

    James Henstridge committed Jun 29, 2000
    	leak memory.
  2. use pygobject.h.

    James Henstridge committed with James Henstridge Jun 29, 2000
    2000-06-29  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c: use pygobject.h.
    
    	* pygobject.h: header for modules that want to use GObject.
Commits on Jun 28, 2000
  1. Added GObject.queue_param_changed method

    James Henstridge committed Jun 28, 2000
  2. add get_data / set_data methods. Add get_param / set_param methods.

    James Henstridge committed with James Henstridge Jun 28, 2000
    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.
Commits on Jun 27, 2000
  1. add get_data / set_data methods. Add get_param / set_param methods.

    James Henstridge committed with James Henstridge Jun 27, 2000
    2000-06-28  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c: add get_data / set_data methods.
    	Add get_param / set_param methods.
  2. start of gobject wrapper.

    James Henstridge committed with James Henstridge Jun 27, 2000
    2000-06-27  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (pygobject_dealloc): start of gobject wrapper.
Commits on Jun 26, 2000
  1. pull more stuff from extension-class-branch

    James Henstridge committed Jun 26, 2000
Something went wrong with that request. Please try again.