1. 03 Feb, 2014 1 commit
  2. 14 Jan, 2014 1 commit
  3. 24 Jul, 2013 1 commit
  4. 03 May, 2013 1 commit
  5. 14 Apr, 2013 1 commit
  6. 27 Feb, 2013 2 commits
  7. 08 Feb, 2013 1 commit
    • Simon Feltman's avatar
      Fix reference leaks with transient floating objects · 5efe2e5c
      Simon Feltman authored
      Unify and refactor caller and callee GObject argument marshalers.
      Combine code from the large switch statement used to marshal
      arguments to and from vfuncs/closures with the marshalers used
      for direct calls to gi functions. This fixes a reference leak
      when marshalling GObjects to Python with transfer=full due to
      the diverging code paths.
      Replace ability in gobject_new_full to optionally sink objects
      with ability to optionaly "steal" objects. This fits the premise
      that binding layers should always sink objects initially. The
      steal argument is then used for marshalling arguments which are
      transfer=full.
      Add hacks and comments to work around GTK+ bugs 693393 and 693400.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=687522
      5efe2e5c
  8. 22 Sep, 2011 1 commit
  9. 13 Sep, 2011 2 commits
  10. 01 Sep, 2011 1 commit
  11. 26 Aug, 2011 1 commit
  12. 11 Aug, 2011 1 commit
  13. 26 Jan, 2011 1 commit
  14. 18 Jan, 2011 1 commit
  15. 25 Oct, 2010 1 commit
  16. 16 Aug, 2010 1 commit
  17. 28 Jul, 2008 1 commit
  18. 27 Jul, 2008 2 commits
    • Johan Dahlin's avatar
      Use _PyLong macros. · 37fe32b7
      Johan Dahlin authored
      2008-07-27  Johan Dahlin  <johan@gnome.org>
      
          * gobject/gobjectmodule.c (pyg_param_spec_from_object),
          (add_properties), (pyg_signal_new), (pyg_signal_list_ids),
          (pyg_signal_lookup), (pyg_signal_query):
          * gobject/pygenum.c (pyg_enum_richcompare), (pyg_enum_new),
          (pyg_enum_from_gtype), (pyg_enum_add), (pyg_enum_reduce),
          (pygobject_enum_register_types):
          * gobject/pygflags.c (pyg_flags_richcompare), (pyg_flags_new),
          (pyg_flags_from_gtype), (pyg_flags_add), (pyg_flags_and),
          (pyg_flags_or), (pyg_flags_xor), (pygobject_flags_register_types):
          * gobject/pygobject-private.h:
          * gobject/pygobject.c (pygobject_disconnect_by_func),
          (pygobject_handler_block_by_func),
          (pygobject_handler_unblock_by_func), (pygobject_get_refcount):
          * gobject/pygparamspec.c (pyg_param_spec_getattr):
          * gobject/pygtype.c (_wrap_g_type_wrapper__get_depth),
          (pyg_type_from_object), (pyg_enum_get_value),
          (pyg_flags_get_value), (pyg_value_from_pyobject),
          (pyg_value_as_pyobject):
          Use _PyLong macros.
      
      
      svn path=/trunk/; revision=884
      37fe32b7
    • Johan Dahlin's avatar
      Use glib macros to define the module, update export regexp. · 826e4b1a
      Johan Dahlin authored
      2008-07-27  Johan Dahlin  <johan@gnome.org>
      
          * gobject/Makefile.am:
          * gobject/gobjectmodule.c (PYGLIB_MODULE_START):
          * gobject/pygobject-private.h:
          Use glib macros to define the module, update export regexp.
      
      
      svn path=/trunk/; revision=881
      826e4b1a
  19. 26 Jul, 2008 4 commits
    • Johan Dahlin's avatar
      Move off a bit more to separate functions, cleaning up the init_glib a bit · 6fafcbb5
      Johan Dahlin authored
      2008-07-27  Johan Dahlin  <johan@gnome.org>
      
          * gobject/Makefile.am:
          * gobject/gobjectmodule.c (pygobject_register_api),
          (pygobject_register_constants), (pygobject_register_features),
          (pygobject_register_version_tuples), (pygobject_register_warnings),
          (init_gobject):
          * gobject/pygobject-private.h:
          * gobject/pygobject.c (pyobject_copy), (pyobject_free),
          (pygobject_object_register_types):
          * gobject/pygtype.c (_pyg_strv_from_gvalue), (_pyg_strv_to_gvalue),
          (pygobject_type_register_types):
          * gobject/pygtype.h:
          Move off a bit more to separate functions, cleaning up the init_glib
          a bit more.
      
      
      svn path=/trunk/; revision=879
      6fafcbb5
    • Johan Dahlin's avatar
      Move paramspec registration to a separate file, add a header for the · c9078566
      Johan Dahlin authored
      2008-07-27  Johan Dahlin  <johan@gnome.org>
      
          * gobject/Makefile.am:
          * gobject/gobjectmodule.c (init_gobject):
          * gobject/pygobject-private.h:
          * gobject/pygobject.c:
          * gobject/pygparamspec.c (pygobject_paramspec_register_types):
          * gobject/pygparamspec.h:
          * gobject/pygtype.c:
          Move paramspec registration to a separate file, add a header
          for the internal API.
      
      
      svn path=/trunk/; revision=878
      c9078566
    • Johan Dahlin's avatar
      reviewed by: <delete if not using a buddy> · d2f53eb3
      Johan Dahlin authored
      2008-07-26  Johan Dahlin  <johan@gnome.org>
      
          reviewed by: <delete if not using a buddy>
      
          * glib/pyglib-python-compat.h:
          * glib/pyglib.h:
          Make a few macros public
      
          * gobject/Makefile.am:
          * gobject/gobjectmodule.c (init_gobject):
          * gobject/pyginterface.c (pyg_interface_init),
          (pyg_interface_free), (pyg_register_interface),
          (pyg_register_interface_info), (pyg_lookup_interface_info),
          (pygobject_interface_register_types):
          * gobject/pyginterface.h:
          * gobject/pygobject-private.h:
          * gobject/pygobject.c:
          Move GInterface wrapper into its own file
      
      
      svn path=/trunk/; revision=875
      d2f53eb3
    • Johan Dahlin's avatar
      Move option over from gobject to glib. · 59e8488b
      Johan Dahlin authored
      2008-07-26  Johan Dahlin  <johan@gnome.org>
      
          * glib/Makefile.am:
          * glib/glibmodule.c (pyglib_register_constants), (init_glib):
          * glib/option.py:
          * glib/pyglib.c (pyglib_init),
          (pyglib_option_group_transfer_group), (pyglib_option_group_new),
          (pyglib_option_context_new):
          * glib/pyglib.h:
          * glib/pygoptioncontext.c (pyg_option_context_parse),
          (pyg_option_context_set_main_group),
          (pyg_option_context_add_group),
          (pyglib_option_context_register_types):
          * glib/pygoptioncontext.h:
          * glib/pygoptiongroup.c (arg_func),
          (pyglib_option_group_register_types):
          * glib/pygoptiongroup.h:
          * gobject/Makefile.am:
          * gobject/__init__.py:
          * gobject/gobjectmodule.c (init_gobject):
          * gobject/option.py:
          * gobject/pygobject-private.h:
          * gobject/pygoptioncontext.c:
          * gobject/pygoptiongroup.c:
          Move option over from gobject to glib.
      
      
      svn path=/trunk/; revision=860
      59e8488b
  20. 25 Jul, 2008 1 commit
    • Johan Dahlin's avatar
      Remove private structures which moved to pyglib. · 487f1d50
      Johan Dahlin authored
      2008-07-25  Johan Dahlin  <johan@gnome.org>
      
          * gobject/gobjectmodule.c (init_gobject):
          * gobject/pygobject-private.h:
          Remove private structures which moved to pyglib.
      
      
      svn path=/trunk/; revision=853
      487f1d50
  21. 21 Jul, 2008 1 commit
    • Johan Dahlin's avatar
      Move over Source, IOChannel, Idle, Timeout and PollFD to glib from · bf49647a
      Johan Dahlin authored
      2008-07-21  Johan Dahlin  <johan@gnome.org>
      
              * glib/Makefile.am:
              * glib/glibmodule.c (pyg_idle_add), (pyg_timeout_add),
              (pyg_timeout_add_seconds), (pyg_io_add_watch),
              (pyglib_register_api), (pyglib_register_error),
              (pyglib_register_version_tuples), (init_glib):
              * glib/pygiochannel.c (py_io_channel_next),
              (py_io_channel_shutdown), (py_io_channel_set_encoding),
              (py_io_channel_read_chars), (py_io_channel_write_chars),
              (py_io_channel_write_lines), (py_io_channel_flush),
              (py_io_channel_set_flags), (py_io_channel_read_line),
              (py_io_channel_read_lines), (py_io_channel_seek),
              (py_io_channel_init), (pyglib_iochannel_register_types):
              * glib/pygiochannel.h:
              * glib/pyglib-private.h:
              * glib/pyglib.c (pyglib_threads_enabled),
              (pyglib_gil_state_ensure), (pyglib_gil_state_release),
              (pyglib_enable_threads), (pyglib_block_threads),
              (pyglib_unblock_threads), (pyglib_set_thread_block_funcs),
              (pyglib_handler_marshal), (pyglib_destroy_notify):
              * glib/pyglib.h:
              * glib/pygsource.c (pyg_source_set_callback),
              (pyglib_source_register_types):
              * glib/pygsource.h:
              * glib/pygspawn.c (pyglib_spawn_register_types):
              * glib/pygspawn.h:
              * gobject/Makefile.am:
              * gobject/__init__.py:
              * gobject/gobjectmodule.c (pyg_set_thread_block_funcs),
              (init_gobject):
              * gobject/pygiochannel.c:
              * gobject/pygobject-private.h:
              * gobject/pygsource.c:
              Move over Source, IOChannel, Idle, Timeout and PollFD to glib from
              gobject.
              Clean up and add a bit of new api for glib.
      
      
      svn path=/trunk/; revision=846
      bf49647a
  22. 20 Jul, 2008 1 commit
    • Johan Dahlin's avatar
      Move maincontext and mainloop over to glib. Update the threadstate api to · 45ccf5f6
      Johan Dahlin authored
      2008-07-20  Johan Dahlin  <johan@gnome.org>
      
      	* glib/Makefile.am:
      	* glib/glibmodule.c (pyglib_main_context_default), (init_glib):
      	* glib/pyglib.c (pyglib_init), (pyglib_threads_enabled),
      	(pyglib_main_context_new):
      	* glib/pyglib.h:
      	* glib/pygmaincontext.c (_wrap_g_main_context_iteration),
      	(pyglib_maincontext_register_types):
      	* glib/pygmaincontext.h:
      	* glib/pygmainloop.c (pyg_signal_watch_prepare),
      	(pyg_signal_watch_check), (pyg_main_loop_new),
      	(_wrap_g_main_loop_get_context), (_wrap_g_main_loop_run),
      	(pyglib_mainloop_register_types):
      	* glib/pygmainloop.h:
      	* gobject/Makefile.am:
      	* gobject/__init__.py:
      	* gobject/gobjectmodule.c (pyg_destroy_notify), (pyobject_free),
      	(pyg_object_set_property), (pyg_object_get_property),
      	(_pyg_signal_accumulator), (pygobject__g_instance_init),
      	(pyg_handler_marshal), (pygobject_gil_state_ensure),
      	(pygobject_gil_state_release), (marshal_emission_hook),
      	(_log_func), (init_gobject):
      	* gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_new):
      	* gobject/pygenum.c (pyg_enum_add):
      	* gobject/pygflags.c (pyg_flags_add):
      	* gobject/pygiochannel.c (pyg_iowatch_marshal):
      	* gobject/pygmaincontext.c:
      	* gobject/pygmainloop.c:
      	* gobject/pygobject-private.h:
      	* gobject/pygobject.c (pygobject_data_free), (pyg_toggle_notify),
      	(pygobject_new_with_interfaces), (pygobject_weak_ref_notify):
      	* gobject/pygobject.h:
      	* gobject/pygoptiongroup.c (destroy_g_group), (arg_func):
      	* gobject/pygpointer.c (pyg_pointer_new):
      	* gobject/pygsource.c (pyg_source_get_context),
      	(pyg_source_prepare), (pyg_source_check), (pyg_source_dispatch),
      	(pyg_source_finalize):
      	* gobject/pygtype.c (pyg_closure_invalidate),
      	(pyg_closure_marshal), (pyg_signal_class_closure_marshal):
      	* tests/common.py:
      
      	Move maincontext and mainloop over to glib.
      	Update the threadstate api to use the variant in glib.
      
      svn path=/trunk/; revision=843
      45ccf5f6
  23. 07 Jul, 2007 1 commit
  24. 14 Apr, 2007 1 commit
  25. 03 Oct, 2006 2 commits
  26. 15 Aug, 2006 1 commit
    • Murray Cumming's avatar
      Replace uses of typename with type_name, because that is a reserved C++ · a181cb3b
      Murray Cumming authored
      2006-08-15  Murray Cumming  <murrayc@murrayc.com>
      
              * gobject/pygobject-private.h:
              * gobject/pygobject.h:
              Replace uses of typename with type_name, because that is a
              reserved C++ keyword. This was breaking compilation of Glom
              due its use in the new type_register_custom function pointer in
              pygobject.h.
      a181cb3b
  27. 13 Jul, 2006 1 commit
    • Johan Dahlin's avatar
      Add infrastructure for lazy type registration, fixes # · e26921db
      Johan Dahlin authored
          * gobject/gobjectmodule.c: (pyg_type_from_name),
          (get_type_name_for_class):
          * gobject/pygobject-private.h:
          * gobject/pygobject.c: (pygobject_new_with_interfaces),
          (pygobject_lookup_class), (pygobject_emit):
          * gobject/pygobject.h:
          * gobject/pygtype.c: (_wrap_g_type_from_name),
          (pyg_type_from_object), (pyg_type_register_custom_callback),
          (pyg_type_get_custom), (_pyg_type_from_name):
          Add infrastructure for lazy type registration, fixes #
      e26921db
  28. 24 Jun, 2006 1 commit
  29. 05 Jun, 2006 1 commit
  30. 28 May, 2006 1 commit
  31. 29 Apr, 2006 2 commits
    • Johannes H枚lzl's avatar
      reviewed by: Johan Dahlin <jdahlin@async.com.br> · 6896d504
      Johannes H枚lzl authored
      2006-04-29  Johannes H枚lzl <johannes.hoelzl@gmx.de>
      
          reviewed by: Johan Dahlin  <jdahlin@async.com.br>
      
          * examples/Makefile.am:
          * examples/option.py:
          * gobject/Makefile.am:
          * gobject/gobjectmodule.c: (init_gobject):
          * gobject/option.py:
          * gobject/pygobject-private.h:
          * gobject/pygoptioncontext.c: (pyg_option_context_init),
          (pyg_option_context_dealloc), (pyg_option_context_parse),
          (pyg_option_context_set_help_enabled),
          (pyg_option_context_get_help_enabled),
          (pyg_option_context_set_ignore_unknown_options),
          (pyg_option_context_get_ignore_unknown_options),
          (pyg_option_context_set_main_group),
          (pyg_option_context_get_main_group),
          (pyg_option_context_add_group), (pyg_option_context_compare),
          (pyg_option_context_new):
          * gobject/pygoptiongroup.c: (check_if_owned), (destroy_g_group),
          (pyg_option_group_init), (pyg_option_group_dealloc), (arg_func),
          (pyg_option_group_add_entries),
          (pyg_option_group_set_translation_domain),
          (pyg_option_group_compare), (pyg_option_group_transfer_group),
          (pyg_option_group_new):
          * tests/test_option.py:
      
          Add support for GOption, fixes #163645
      6896d504
    • Johan Dahlin's avatar
      Forgot this · cd01d8f0
      Johan Dahlin authored
      cd01d8f0
  32. 11 Apr, 2006 1 commit