Permalink
Switch branches/tags
Commits on Nov 19, 2001
  1. fixed think-o, don't store a pointer to the function pointer, just store

    2001-11-19  Matt Wilson  <msw@redhat.com>
    
    	* gobjectmodule.c (pyg_fatal_exceptions_notify_{add,remove}):
    	fixed think-o, don't store a pointer to the function pointer, just
    	store the function pointer.
    Matt Wilson committed with Matt Wilson Nov 19, 2001
Commits on Nov 16, 2001
  1. s/g_param_get_{name,nick,blurb}/g_param_spec_get_{name,nick,blurb}/g

    2001-11-16  Matt Wilson  <msw@redhat.com>
    
    	* gobjectmodule.c (pyg_param_spec_getattr, pyg_param_spec_repr):
    	s/g_param_get_{name,nick,blurb}/g_param_spec_get_{name,nick,blurb}/g
    	(pyg_fatal_exceptions_notify_remove): use the right type.
    Matt Wilson committed with Matt Wilson Nov 16, 2001
Commits on Nov 15, 2001
  1. added PyGFatalExceptionFunc typedef, API wrapper for

    2001-11-15  Matt Wilson  <msw@redhat.com>
    
    	* pygobject.h: added PyGFatalExceptionFunc typedef, API wrapper
    	for pyg_fatal_exceptions_{add,remove}.
    
    	* gobjectmodule.c (pyg_boxed_new): return NULL on assertion
    	failures, #62814
    	(pyg_closure_new): actually assign swap_data to the closure.
    	(pyg_fatal_exceptions_notify, pyg_fatal_exceptions_notify_add,
    	pyg_fatal_exceptions_remove): added mechanism for gobjectmodule using
    	modules to get a function called when a fatal exception happens in
    	closures, etc.
    	(pyg_closure_marshal, pyg_signal_class_closure_marshal): return
    	NULL if a gobjectmodule using module registered a fatal exception
    	function.
    
    	* gtk/pygtk-private.h: added declarations for
    	pygtk_custom_destroy_notify, pygtk_tree_selection_marshal,
    	pygtk_tree_foreach_marshal.  Added typedef for
    	PyGtkCustomNotify. #62814
    
    	* gtk/gtkmodule.c (init_gtk): register stock items, #62814.  Set
    	up fatal exception stuff if PYGTK_FATAL_EXCEPTIONS is set.  This
    	isn't 100% done yet, gtk mainloop specific functions still need
    	work.
    
    	* gtk/gtkobject-support.c (pygtk_tree_selection_marshal): added,
    	#62814
    	(pygtk_tree_foreach_marshal): added, #62814
    	(pygtk_custom_destroy_notify): added, #62814
    
    	* gtk/gtk.override (_wrap_gtk_tree_selection_set_select_function):
    	added, #62814
    	(_wrap_gtk_tree_selection_selected_foreach): added, #62814
    Matt Wilson committed with Matt Wilson Nov 15, 2001
Commits on Oct 25, 2001
  1. include the module name in the typename. (PyGInterface_Type): same here.

    2001-10-25  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (PyGObject_Type): include the module name in the
    	typename.
    	(PyGInterface_Type): same here.
    	(PyGBoxed_Type): same here.
    	(pygobject_register_class): when working out what name to put into
    	the module dictionary, strip off everything before the last dot,
    	so the type name can include the module.
    
    	* configure.in (minver): require python 2.2b1
    
    	* gobjectmodule.c (initgobject): remove statements using
    	tp_defined (they are no longer needed).
    James Henstridge committed with James Henstridge Oct 25, 2001
Commits on Oct 11, 2001
  1. also go set up the reflist if we're doing refcount debugging.

    2001-10-10  Matt Wilson  <msw@redhat.com>
    
    	* gobjectmodule.c (pygobject_dealloc): also go set up the reflist
    	if we're doing refcount debugging.
    Matt Wilson committed with Matt Wilson Oct 11, 2001
  2. if we are saving a reference to the wrapper during dealloc (which is

    2001-10-11  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (pygobject_dealloc): if we are saving a
    	reference to the wrapper during dealloc (which is probably bad),
    	check if it is a heap type, and if so, incref its type, so that
    	subtype_dealloc() doesn't decref the type out from under us.  This
    	problem was tracked down by Matt Wilson
    James Henstridge committed with James Henstridge Oct 11, 2001
Commits on Oct 5, 2001
  1. too many tuples.

    2001-10-05  Matt Wilson  <msw@redhat.com>
    
    	* gobjectmodule.c (pyg_closure_new): too many tuples.
    Matt Wilson committed with Matt Wilson Oct 5, 2001
  2. *** empty log message ***

    Johan Dahlin committed Oct 5, 2001
  3. mask out G_SIGNAL_TYPE_STATIC_SCOPE to fix signal emission.

    2001-10-05  Matt Wilson  <msw@redhat.com>
    
    	* gobjectmodule.c (pygobject_emit): mask out
    	G_SIGNAL_TYPE_STATIC_SCOPE to fix signal emission.
    Matt Wilson committed with Matt Wilson Oct 5, 2001
  4. Handle non-Tuple parameters.

    2001-10-05  Johan Dahlin  <zilch.am@home.se>
    
    	* gobjectmodule.c (pyg_closure_new): Handle non-Tuple parameters.
    
    	* gtk/gtk.override (_wrap_gtk_window_list_toplevels): Bound
    	(_wrap_gtk_toolbar_insert_stock): Bound.
    
    	* gtk/gtk.defs (binding_entry_clear): rename from gtk_bindings_entry_clear
    	(color_selection_palette_from_string): rename from gtk_color_selection_palette_from_string
    	(set_border_width): Added
    	(set_resize_mode): Added
    	(get_children): Added
    	(children): Mark as deprecated
    	(get_focus_chain): Added
    	(get_focus_vadjustment): Added
    	(get_focus_hadjustment): Added
    	(gtk_container_add_child_arg_type): Removed
    	(gtk_container_query_child_args): Removed
    	(gtk_containerchild_getv): Removed
    	(gtk_container_child_setv): Removed
    	(gtk_container_add_with_args): Removed
    	(gtk_container_addv): Removed
    	(gtk_container_add_set): Removed
    	(gtk_container_add_get): Removed
    	(GtkContainer.child_set): Added
    	(GtkContainer.child_get): Added
    	(gtk_container_child_args_collect): Removed
    	(gtk_container_child_arg_get_info): Removed
    	(GtkDrawingArea.size): Mark as deprecated
    	(GtkEditable.get_editable): Added
    	(GtkEntry.new_with_max_length): Mark as deprecated
    	(GtkEntry.get_visibility): Added
    	(GtkEntry.get_invisible_char): Added
    	(GtkEntry.get_max_length): Added
    	(GtkFontSelection.get_font): Mark as deprecated
    	(GtkFontSelectionDialog.get_font): Mark as deprecated
    	(GtkFrame.get_label_widget): Added
    	(GtkFrame.get_label_align): Added
    	(GtkFrame.get_shadow_type): Added
    	(GtkGC.gc_get): Added
    	(gtk.gc_release): Rename from gtk_gc_release
    	(GtkHandleBox.get_shadow_type): Added
    	(GtkHandleBox.get_handle_position): Added
    	(GtkHandleBox.get_snap_edge): Added
    	(GtkHscale.new_with_range): Added
    	(GtkLayout.freeze): Mark as deprecated
    	(GtkLayout.thaw): Mark as deprecated
    	(GtkListStore.new): Fix parameters
    	(GtkListStore.newv): Added (needed?)
    	(GtkListStore.set): Added
    	(GtkListStore.clear): Added
    	(gtk_init_abi_check): Remove
    	(gtk_init_check_abi_check): Remove
    	(gtk_exit): Remove
    	(gtk.get_current_event_state): Added
    	(GtkMenu.get_tearoff_state): Added
    	(GtkMenu.get_title): Added
    	(gtk_rc_*): Rename to rc_*
    	(GtkToolbar.insert_stock): Added
    	(GtkToolbar.set_icon_size): Added
    	(GtkToolbar.unset_style): Added
    	(GtkToolbar.unset_icon_size): Added
    	(GtkToolbar.get_orientation): Added
    	(GtkToolbar.get_style): Added
    	(GtkToolbar.get_icon_size): Added
    	(GtkToolbar.get_tooltips): Added
    	(gtk_type_unique): Remove
    	(gtk_type_class): Remove
    	(gtk_type_new): Remove
    	(gtk_enum_get_values): Remove
    	(gtk_flags_get_values): Remove
    	(gtk_enum_find_value): Remove
    	(gtk_flags_find_value): Remove
    	(GtkViewport.get_shadow_type): Added
    	(GtkVscale.new_with_range): Added
    Johan Dahlin committed with Johan Dahlin Oct 5, 2001
Commits on Oct 3, 2001
  1. tweak the repr such that calling it on an uninitialized PyGObject won't

    2001-10-03  Matt Wilson  <msw@redhat.com>
    
    	* gobjectmodule.c (pygobject_repr): tweak the repr such that
    	calling it on an uninitialized PyGObject won't segfault.  Also
    	print the python class name.
    Matt Wilson committed with Matt Wilson Oct 3, 2001
Commits on Oct 2, 2001
  1. remove debugging message James checked in.

    2001-10-02  Matt Wilson  <msw@redhat.com>
    
    	* gobjectmodule.c (pygobject_dealloc): remove debugging message
    	James checked in.
    
    	* gtk/gtk.override (_wrap_gtk_text_buffer_set_text): override
    	GtkBuffer.set_text so that you don't have to pass in the length.
    Matt Wilson committed with Matt Wilson Oct 2, 2001
  2. (pyg_object_new): rewrote function to use g_object_newv and instantiate

    2001-10-02  Matt Wilson  <msw@redhat.com>
    
    	(pyg_object_new): rewrote function to use g_object_newv and
    	instantiate the object after we check to make sure the class
    	handles all the properties passed.  This solves the problem of
    	trying to destroy a GtkObject after creating it, which can be a
    	little tricky.
    Matt Wilson committed with Matt Wilson Oct 2, 2001
  3. added a new gobject.new function to create an object of any registered

    2001-10-02  Matt Wilson  <msw@redhat.com>
    
    	* gobjectmodule.c (pyg_object_new): added a new gobject.new
    	function to create an object of any registered type with kwargs
    	property setting.
    Matt Wilson committed with Matt Wilson Oct 2, 2001
  4. fix bug where we were INCREFing the saved widget even in the hasref case

    2001-10-02  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (pygobject_new): fix bug where we were INCREFing
    	the saved widget even in the hasref case (where we should be
    	passing ownership of the last reference).
    James Henstridge committed with James Henstridge Oct 2, 2001
Commits on Sep 30, 2001
  1. (pygobject_new): GC track wrappers created through pygobject_new.

    2001-09-30  James Henstridge  <james@daa.com.au>
    
    	(pygobject_new): GC track wrappers created through pygobject_new.
    James Henstridge committed with James Henstridge Sep 30, 2001
  2. use plain old PyObject_GC_Del, as the overridden tp_free seems to ignore

    2001-09-30  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (pygobject_dealloc): use plain old
    	PyObject_GC_Del, as the overridden tp_free seems to ignore the GC
    	header.
    James Henstridge committed with James Henstridge Sep 30, 2001
  3. increment version number, and require gtk 1.3.9 (we already required it

    2001-09-30  James Henstridge  <james@daa.com.au>
    
    	* configure.in: increment version number, and require gtk 1.3.9
    	(we already required it before).
    
    	* gobjectmodule.c (pygobject_new): initialise extra members.
    	Problem found by msw.
    James Henstridge committed with James Henstridge Sep 30, 2001
Commits on Sep 29, 2001
  1. small typo

    James Henstridge committed Sep 29, 2001
  2. add a wrapper for a GParamSpec. Currently it only exposes the base

    2001-09-29  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (pyg_param_spec_new): add a wrapper for a
    	GParamSpec.  Currently it only exposes the base parameter info;
    	none of the extra info provided by derived param specs.
    	(pyg_object_class_list_properties): return a list of GParamSpec
    	objects, rather than just strings.
    	(pyg_value_as_pyobject): catch NULL strings.
    James Henstridge committed with James Henstridge Sep 29, 2001
Commits on Sep 28, 2001
  1. use pyg_type_from_object instead. Based on patch from Elliot.

    2001-09-29  James Henstridge  <james@daa.com.au>
    
    	* gtk/pygtktreemodel.c (pygtk_tree_model_get_column_type): use
    	pyg_type_from_object instead.  Based on patch from Elliot.
    
    	* gtk/gtk.override (_wrap_gtk_selection_data__get_data): convert
    	getter to a function to match codegen changes.
    
    	* : merge in python22-branch (see changelog entries below).
    James Henstridge committed with James Henstridge Sep 28, 2001
Commits on Sep 20, 2001
  1. uncomment this now it has a boxed type.

    2001-09-20  James Henstridge  <james@daa.com.au>
    
    	* pango.defs (FontMetrics): uncomment this now it has a boxed type.
    
    	* gtk/Makefile.am (EXTRA_DIST): add gdk.override to dist.
    
    	* configure.in: update version number.
    James Henstridge committed with James Henstridge Sep 20, 2001
  2. rename from new, so that the header is includable in C++ programs.

    2001-09-20  James Henstridge  <james@daa.com.au>
    
    	* pygobject.h (_PyGObject_Functions.newgobj): rename from new, so
    	that the header is includable in C++ programs.
    James Henstridge committed with James Henstridge Sep 20, 2001
Commits on Sep 18, 2001
  1. rename to gobject.list_properties.

    2001-09-18  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (pyg_object_class_list_properties): rename to
    	gobject.list_properties.
    James Henstridge committed with James Henstridge Sep 18, 2001
  2. export this function.

    2001-09-18  James Henstridge  <james@daa.com.au>
    
    	* pygobject.h (pyg_type_wrapper_new): export this function.
    
    	* codegen/argtypes.py (GTypeArg.write_return): wrap GType return
    	values as PyGTypeWrappers rather than ints.
    
    	* codegen/codegen.py (write_source): pass the typecode macros to
    	pygobject_register_class and pyg_register_interface rather than
    	references to the get_type functions.
    
    	* pygobject.h (_PyGObject_Functions): fix up prototypes.
    
    	* gobjectmodule.c (check_bases): check if the base class is an
    	extensionclass before poking around in class->bases.
    	(pyg_type_*): don't bother storing the _get_type() function for
    	lazy initialisation.  Instead, just store the GType.  Also, remove
    	code for coercing them into numbers.
    	(pygobject_register_class): take the type, rather that get_type
    	routine as an argument.
    	(pyg_register_interface): same here.
    	(pyg_type_from_object): don't accept types that convert to ints as
    	being equivalent to GTypes.
    	(pyg_register_boxed): set the __gtype__ attribute to a
    	PyGTypeWrapper.
    	(pyg_type_register): set __gtype__ to a PyGTypeWrapper.
    	(pyg_type_name): use pyg_type_from_name
    	(pyg_type_from_name): return a PyGTypeWrapper object.
    	(pyg_type_parent): update.
    	(pyg_type_is_a): update.
    	(pyg_type_children): update.
    	(pyg_type_interfaces): update.
    	(initgobject): set __gtype__ attributes to PyGTypeWrapper objects.
    	(initgobject): make type constants PyGTypeWrapper objects.
    James Henstridge committed with James Henstridge Sep 18, 2001
  3. check if the base class is an extensionclass before poking around in

    2001-09-18  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (check_bases): check if the base class is an
    	extensionclass before poking around in class->bases.
    James Henstridge committed with James Henstridge Sep 18, 2001
Commits on Sep 15, 2001
  1. allow '_' as start of constant name. (pyg_flags_add_constants): same …

    …here.
    
    2001-09-15  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (pyg_enum_add_constants): allow '_' as start of
    	constant name.
    	(pyg_flags_add_constants): same here.
    James Henstridge committed with James Henstridge Sep 15, 2001
  2. don't import GTK.

    2001-09-15  James Henstridge  <james@daa.com.au>
    
    	* gtk/__init__.py (TRUE): don't import GTK.
    
    	* gtk/gtkmodule.c (init_gtk): same here.
    
    	* pangomodule.c (initpango): add constants to the pango module.
    
    	* codegen/codegen.py (write_enums): new function that writes a
    	function to add constants for all the enums and flags in the
    	parser.
    	(write_source): call write_enums().
    James Henstridge committed with James Henstridge Sep 15, 2001
Commits on Sep 14, 2001
  1. add test use of add_constants.

    2001-09-15  James Henstridge  <james@daa.com.au>
    
    	* gtk/gtkmodule.c (init_gtk): add test use of add_constants.
    
    	* pygobject.h (_PyGObject_Functions): add new functions to header.
    
    	* gobjectmodule.c (pyg_enum_add_constants): new function for
    	adding constants to a module dictionary from a particular GType.
    	(pyg_flags_add_constants): similar for flag types.
    	(functions): add to export function vtable.
    James Henstridge committed with James Henstridge Sep 14, 2001
  2. same change.

    2001-09-14  James Henstridge  <james@daa.com.au>
    
    	* pygobject.h (pyg_register_boxed_custom): same change.
    
    	* gobjectmodule.c (pyg_register_boxed_custom): rename from
    	pyg_boxed_register to avoid confusion.
    James Henstridge committed with James Henstridge Sep 14, 2001
  3. merge from short-class-names-branch

    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.
    James Henstridge committed with James Henstridge Sep 14, 2001
Commits on Sep 13, 2001
  1. removed. (gtk_cell_renderer_text_pixbuf_get_type): removed.

    2001-09-13  Johan Dahlin  <zilch.am@home.se>
    
    	* gtk/gtk.defs (CellRendererTextPixbuf): removed.
    	(gtk_cell_renderer_text_pixbuf_get_type): removed.
    	(gtk_cell_renderer_text_pixbuf_new): removed.
    	(gtk_cell_renderer_text_iter_spew): removed.
    	(row_changed): Renamed.
    	(row_inserted): Renamed.
    	(row_has_child_toggled): Renamed.
    	(row_deleted): Renamed.
    	(rows_reordered): Renamed, and fixed.
    	(set_fixed_width): Renamed.
    	(get_fixed_width): Added.
    
    	* gobjectmodule.c (initgobject): Adjust
    	g_boxed_type_register_static to compile under latest cvs.
    Johan Dahlin committed with Johan Dahlin Sep 13, 2001
Commits on Sep 6, 2001
  1. fix up enums.

    2001-09-06  James Henstridge  <james@daa.com.au>
    
    	* gtk/GTK.py: fix up enums.
    
    	* gobjectmodule.c (pyg_closure_marshal): if return_value is NULL,
    	don't set it.
    	(pyg_signal_class_closure_marshal): same here.
    James Henstridge committed with James Henstridge Sep 6, 2001
  2. various updates to make it compile.

    2001-09-06  James Henstridge  <james@daa.com.au>
    
    	* gtk/gtk.defs: various updates to make it compile.
    
    	* gtk/gtk-types.c (pygdk_atom_str): fallback to returning the repr
    	of the atom if we can't resolve its name, rather than returning
    	NULL.  Patch from Skip.
    
    	* gobjectmodule.c (pyg_value_from_pyobject): look at the
    	fundamental type in this function so we can use a switch statement
    	that catches the fundamental types easily, reducing the number of
    	type checks.
    	(pyg_value_as_pyobject): similar here.  Also handle boolean types
    	using patch from Skip.
    
    	* gtk/GDK.py: add extra constants from Skip.
    James Henstridge committed with James Henstridge Sep 6, 2001
Commits on Aug 21, 2001
  1. update for autoconf 2.52

    2001-08-21  James Henstridge  <james@daa.com.au>
    
    	* configure.in: update for autoconf 2.52
    
    	* gtk/gtk.defs: make GtkAccelGroup a GObject rather than a boxed
    	type.  remove the gtk_tree_model_get_first function.
    
    2001-07-09  James Henstridge  <james@daa.com.au>
    
    	* gobjectmodule.c (initgobject): add a gobject.TYPE_PYOBJECT
    	constant for the PyObject boxed typecode.
    James Henstridge committed with James Henstridge Aug 21, 2001