Permalink
Switch branches/tags
Commits on Aug 2, 2004
  1. Call PyEval_InitThreads. Perhaps its something that always should be

    	* gobject/gobjectmodule.c (initgobject): Call
    	PyEval_InitThreads. Perhaps its something that always should be
    	called.
    
    	* README (Author): Add a requirements section
    
    	* configure.in: Require Python 2.3
    
    	* setup.py (version): Ditto
    
    	* gobject/pygtype.c, gobject/pygobject.h: Remove 2.2 compat.
    
    	* All over the place: Add support for PyGILState.
    Johan Dahlin committed Aug 2, 2004
Commits on Jul 29, 2004
  1. Added small PYTHONPATH note

    Johan Dahlin committed Jul 29, 2004
  2. Use gobject.type_name,type_from_name for testing instead of GtkListSt…

    …ore.
    
    	* tests/gtype.py (GTypeTest.checkType): Use
    	gobject.type_name,type_from_name for testing instead of GtkListStore.
    Johan Dahlin committed Jul 29, 2004
Commits on Jul 28, 2004
  1. s/e/enum

    Johan Dahlin committed Jul 28, 2004
  2. Reverse operator

    	* gobject/pygenum.c (pyg_enum_compare):
    	* gobject/pygflags.c (pyg_flags_compare): Reverse operator
    
    	* tests/enum.py (FlagsTest.testComparision)
    	(FlagsTest.testComparision): New tests
    Johan Dahlin committed Jul 28, 2004
  3. Test various other types aswell

    Johan Dahlin committed Jul 28, 2004
  4. If we're on python 2.3, also check for PyBool_Type.

    	* gobject/pygtype.c (pyg_type_from_object): If we're on python
    	2.3, also check for PyBool_Type.
    
    	* tests/gtype.py (GTypeTest.testBoolType): New test
    Johan Dahlin committed Jul 28, 2004
Commits on Jul 21, 2004
  1. Add, so Lorenzo can introspect flags properly too

    	* gobject/pygflags.c (pyg_flags_get_first_value_name)
    	(pyg_flags_get_first_value_nick): Add, so Lorenzo can introspect
    	flags properly too
    	(pyg_flags_get_value_names, pyg_flags_get_value_nicks): Make this
    	a little bit more useful. All values can still be fetch
    	through __flags_values__
    
    	* tests/enum.py: Improve and extend to test most enum/flags operations
    Johan Dahlin committed Jul 21, 2004
Commits on Jul 20, 2004
  1. Simplify, fix name in exceptions and remove warning.

    	* gtk/gtk.override (_wrap_gtk_file_chooser_dialog_new): Simplify,
    	fix name in exceptions and remove warning.
    
    	* gobject/pygenum.c (pyg_enum_from_gtype): Fall back to int for
    	unregistered enums.
    
    	* gobject/pygflags.c (pyg_flags_from_gtype): Ditto
    
    	* gobject/gobjectmodule.c (initgobject): Rename back to MainLoop, MainContext
    Johan Dahlin committed Jul 20, 2004
Commits on Jul 19, 2004
  1. s/flag/flags in tp_repr

    Johan Dahlin committed Jul 19, 2004
  2. Fix, a window is really WITHDRAWN if it's not SHOWN and not ICONIFIED...

    	* tests/enum.py (EnumTest.testWindowGetState): Fix, a window is
    	really WITHDRAWN if it's not SHOWN and not ICONIFIED...
    
    	* tests/common.py: Add .. and ../gobject when distcheck isn't ran
    
    	* gobject/pygenum.c: Use a dict instead of a tuple for
    	__enum_values__, so we can handle negative enum values (eg: GDK_NOTHING)
    
    	* gobject/pyflags.c: Ditto for __flag_values__
    
    	* gobject/pygparamspec.c (pyg_param_spec_getattr): reference count fixing
    Johan Dahlin committed Jul 19, 2004
  3. Update, why do I even bother to update 3 different build systems?

    	* gobject/Makefile.am:
    	* setup.py:
    	* makefile.msc: Update, why do I even bother to update 3 different
    	build systems?
    
    	* gobject/: Split out GParamSpec, GMainLoop, GMainContext and
    	GPointer to separate files. Also remove *.h files and go back to
    	the old scheme (everything in pygobject.h)
    Johan Dahlin committed Jul 19, 2004
  4. Remove, out of date since 0.6.x!

    	* description.py: Remove, out of date since 0.6.x!
    
    	* tests/Makefile.am, tests/common.py: Make distcheck pass
    Johan Dahlin committed Jul 19, 2004
  5. Remove references to &PyInt_Type from static type struct initialization

    	* gobject/pygflags.c, gobject/pygenum.c, gobject/gobjectmodule.c
    	(initgobject): Remove references to &PyInt_Type from static type
    	struct initialization and manually set it before PyType_Ready calls
    	
    	* makefile.msc, gtk/makefile.msc, gobject/makefile.msc: VC++ makefile
    	changes for new directory layout
    John Ehresman committed Jul 19, 2004
Commits on Jul 18, 2004
  1. New getters

    	* gobject/pygflags.c (pyg_flags_get_value_nicks)
    	(pyg_flags_get_value_names): New getters
    
    	* gobject/pygenum.c (pyg_enum_get_value_nick)
    	(pyg_enum_get_value_name): New getters
    
    	* gobject/gobjectmodule.c (pyg_param_spec_getattr): add enum_class
    	and flags_class properties.
    Johan Dahlin committed Jul 18, 2004
Commits on Jul 17, 2004
  1. add, forgot it in last commit

    	* tests/enum.py: add, forgot it in last commit
    
    	* gobject/: Move gobject source files in here.
    Johan Dahlin committed Jul 17, 2004
  2. gtk/*.override

    	* gtk/*.override
    	* codegen/codegen.py:
    	* codegen/argtypes.py: Update for enums
    
    	* pygtype.c (pyg_value_as_pyobject): Use new enum/flag functions
    
    	* pygenum.[ch]: Handle GFlag
    
    	* pygflags.[ch]: Handle GFlag
    
    	* atk-types.defs: Fix gtype-id for all enums
    
    	* gobjectmodule.c (initgobject): Clean up and add convinience macros
    
    	* tests/enum.py: New file
    
    	* tests/common.py: New file, also stole from gst-python
    Johan Dahlin committed Jul 17, 2004
Commits on Jul 10, 2004
  1. New script to run all tests in one take

    	* tests/runtests.py: New script to run all tests in one take
    
    	* tests/Makefile.am: autotoolify
    
    	* tests/signal.py: New simple test taken from
    	examples/gobject/signal.py
    Johan Dahlin committed Jul 10, 2004
Commits on Jul 6, 2004
Commits on Jul 5, 2004
  1. New conversion functions that use GParamSpec's declarations of new param

    	* pygtype.c (pyg_param_gvalue_from_pyobject,
    	pyg_param_gvalue_as_pyobject): New conversion functions that use
    	GParamSpec's
    	
    	* pygobject.h, pygobject-private.h: declarations of new param
    	conversion functions
    	
    	* pygobject.c (pygobject_get_property, pygobject_set_property):
    	Use param conversion functions
    	
    	* gobjectmodule.c (pyg_parse_constructor_args): reorder local variable
    	declaration so it will compile with VC++
    	
    	* tests/testconversion.py: tests for above
    John Ehresman committed Jul 5, 2004
Commits on Jul 4, 2004
  1. property based constructors

    Gustavo J. A. M. Carneiro committed Jul 4, 2004
  2. tests directory: unit tests

    John Ehresman committed Jul 4, 2004
  3. John Ehresman's patch to improve gunichar parameter handling

    Gustavo J. A. M. Carneiro committed Jul 4, 2004
Commits on Jun 20, 2004
  1. fix bug #144135 (gtk.gdk.GC attributes not working)

    Gustavo J. A. M. Carneiro committed Jun 20, 2004
Commits on Jun 4, 2004
  1. Add support for paramspec.default_value for GParamSpec types that sup…

    …port
    
    	* gobjectmodule.c (pyg_param_spec_getattr): Add support for
    	paramspec.default_value for GParamSpec types that support it
    Johan Dahlin committed Jun 4, 2004
  2. added gobject.TYPE_UNICHAR

    2004-06-04  Lorenzo Gil Sanchez  <lgst@cvs.gnome.org>
    
    	* gobjectmodule.c (initgobject): added gobject.TYPE_UNICHAR
    Lorenzo Gil Sanchez committed with Lorenzo Gil Sanchez Jun 4, 2004
  3. Impl

    	* gtk/gtkwidget.override (_wrap_gtk_widget_class_install_style_property): Impl
    
    	* gtk/gtkcontainer.override
    	(_wrap_gtk_container_class_list_child_properties): Rename first
    	kwlist argument to klass (from widget), class should be a
    	GObjectClass and not a GtkWidgetClass
    	(_wrap_gtk_container_class_install_child_property): Impl.
    
    	* gtk/gtk.defs: Change a couple of methods to functions and set
    	correct class
    
    	* pygobject.h: Add pyg_param_spec_from_object
    
    	* gobjectmodule.c (create_property): Don't install the property
    	here, return it instead. And don't require a GObjectClass as argument
    	(pyg_param_spec_from_object): New function
    	(add_properties): Update to new create_property
    	(pygobject_api_functions): Export pyg_param_spec_from_object
    Johan Dahlin committed Jun 4, 2004
  4. Add a new example of subclassing a GtkWidget.

    	* examples/gtk/widget.py: Add a new example of subclassing a GtkWidget.
    
    	* Makefile.am (EXTRA_DIST): Add widget.py
    
    	* pygobject.c (pygobject_new): guard object_ref call
    Johan Dahlin committed Jun 4, 2004
Commits on May 21, 2004
  1. Add gobject.pygtk_version (_wrap_g_main_context_iteration): block/unb…

    …lock
    
    	* gobjectmodule.c (initgobject): Add gobject.pygtk_version
    	(_wrap_g_main_context_iteration): block/unblock
    	(_wrap_g_main_loop_run): ditto
    Johan Dahlin committed May 21, 2004
Commits on May 18, 2004
  1. pygobject.c (pygobject_new_with_interfaces) Add new type to the module

    	* pygobject.c (pygobject_new_with_interfaces) Add new type to the
    	module dict as is done for built-in types.
    John Finlay committed May 18, 2004
  2. pygobject.c (pygobject_new) Bump refcount of types created by

    	* pygobject.c (pygobject_new) Bump refcount of types created by
    	pygobject_new_with_interfaces. Fixes #141042
    John Finlay committed May 18, 2004
Commits on Apr 18, 2004
  1. allow registering multiple GObject classes with same name

    Gustavo J. A. M. Carneiro committed Apr 18, 2004
Commits on Apr 15, 2004
  1. Prevent warnings in Python 2.3

    Gustavo J. A. M. Carneiro committed Apr 15, 2004
Commits on Apr 13, 2004
  1. Move quark_to_string to initgobject

    	* gobjectmodule.c (pyg_register_interface): Move quark_to_string
    	to initgobject
    Johan Dahlin committed Apr 13, 2004