Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: PYGTK_2_3_96
Commits on Aug 6, 2004
  1. Don't comment out the fallback, it break the test. (Wow, the testsuite

    Johan Dahlin authored
    	* gobject/pygflags.c (pyg_flags_from_gtype): Don't comment out the
    	fallback, it break the test. (Wow, the testsuite caught another bug!)
    
    	* tests/enum.py: Additional tests.
    
    	* gobject/pygenum.c (pyg_enum_repr): Don't use g_enum_get_value,
    	use enum_class->values[n].value_name instead. Also check if the
    	value is NULL or not. This makes gtk.icon_size_register work a
    	little bit better.
  2. Use methflags argument for defines instead of discarding it

    Johan Dahlin authored
    	* codegen/codegen.py (Wrapper.write_methods): Use methflags
    	argument for defines instead of discarding it
Commits on Aug 4, 2004
  1. New test.

    Johan Dahlin authored
    	* tests/enum.py (EnumTest.testOutofBounds): New test.
    
    	* gobject/pygflags.c (pyg_flags_from_gtype):
    	* gobject/pygenum.c (pyg_enum_from_gtype): Don't segfault on
    	unknown values.
  2. make threading runtime optional

    Gustavo J. A. M. Carneiro authored
  3. GdkModifierType is flags not an enum.

    Johan Dahlin authored
    	* gtk/gtk.override (_wrap_gtk_accel_map_lookup_entry):
    	GdkModifierType is flags not an enum.
    
    	* gobject/pygenum.c (pyg_enum_from_gtype): Don't crash if its not
    	an enum
    
    	* gobject/pygflags.c (pyg_flags_from_gtype): Don't crash if its
    	not flags
Commits on Aug 3, 2004
  1. Urgh. more threading 'fixes'

    Johan Dahlin authored
  2. remove unused variable

    Gustavo J. A. M. Carneiro authored
  3. More minor threading fixes

    Johan Dahlin authored
  4. Create a new GType on the fly if there isn't one for the GType.

    Johan Dahlin authored
    	* gobject/pygenum.c (pyg_enum_from_gtype): Create a new GType on
    	the fly if there isn't one for the GType.
    	(pyg_enum_add): Allow module to be NULL.
  5. Add better support for boolean type now when we can require 2.3. Fixe…

    Johan Dahlin authored
    …s bug
    
            * codegen/argtypes.py:
            * gobject/gobjectmodule.c: (pyg_source_remove):
            * gobject/pygmaincontext.c: (_wrap_g_main_context_iteration),
            (_wrap_g_main_context_pending):
            * gobject/pygmainloop.c: (_wrap_g_main_loop_is_running):
            * gobject/pygobject.c: (pygobject_handler_is_connected):
            * gobject/pygparamspec.c: (pyg_param_spec_getattr):
            * gobject/pygtype.c: (pyg_value_as_pyobject):
            * gtk/gdk.override:
            * gtk/gtk.override:
            * gtk/gtktextview.override:
            * gtk/gtkwidget.override:
            * pango.override: Add better support for boolean type now when
            we can require 2.3. Fixes bug 149121
  6. Clean up most functions here to have only one return path.

    Johan Dahlin authored
    	* gtk/pygtktreemodel.c: Clean up most functions here to have only
    	one return path.
    
    	* gobject/pygobject.c (pygobject_emit): Protect g_value_unset by
    	UNBLOCK/BLOCK_THREADS since it might call pygobject_free which
    	will result in a deadlock.
    
    	* gobject/gobjectmodule.c (pyg_thread_init): New function, move
    	thread initalization stuff in here.
    
    	* All over the place: Kill pyg_block/unblock_threads and use
    	PyGILState and Py_BEGIN/END_ALLOW_THREADS.
    
    	unblock [code] block calls are replaced by Py_BEGIN/END and
    	block [code] unblock calls are replaced by PyGILState.
Commits on Aug 2, 2004
  1. Call PyEval_InitThreads. Perhaps its something that always should be

    Johan Dahlin authored
    	* 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.
Commits on Jul 29, 2004
  1. Added small PYTHONPATH note

    Johan Dahlin authored
  2. Use gobject.type_name,type_from_name for testing instead of GtkListSt…

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

    Johan Dahlin authored
  2. Reverse operator

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

    Johan Dahlin authored
  4. If we're on python 2.3, also check for PyBool_Type.

    Johan Dahlin authored
    	* 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
Commits on Jul 21, 2004
  1. Add, so Lorenzo can introspect flags properly too

    Johan Dahlin authored
    	* 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
Commits on Jul 20, 2004
  1. Simplify, fix name in exceptions and remove warning.

    Johan Dahlin authored
    	* 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
Commits on Jul 19, 2004
  1. s/flag/flags in tp_repr

    Johan Dahlin authored
  2. Fix, a window is really WITHDRAWN if it's not SHOWN and not ICONIFIED...

    Johan Dahlin authored
    	* 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
  3. Update, why do I even bother to update 3 different build systems?

    Johan Dahlin authored
    	* 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)
  4. Remove, out of date since 0.6.x!

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

    John Ehresman authored
    	* 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
Commits on Jul 18, 2004
  1. New getters

    Johan Dahlin authored
    	* 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.
Commits on Jul 17, 2004
  1. add, forgot it in last commit

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

    Johan Dahlin authored
    	* 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
Commits on Jul 10, 2004
  1. New script to run all tests in one take

    Johan Dahlin authored
    	* 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
Commits on Jul 6, 2004
Commits on Jul 5, 2004
  1. New conversion functions that use GParamSpec's declarations of new param

    John Ehresman authored
    	* 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
Commits on Jul 4, 2004
  1. property based constructors

    Gustavo J. A. M. Carneiro authored
  2. tests directory: unit tests

    John Ehresman authored
  3. John Ehresman's patch to improve gunichar parameter handling

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

    Gustavo J. A. M. Carneiro authored
Something went wrong with that request. Please try again.