ChangeLog.pre-2.18 112 KB
Newer Older
1 2
=== ChangeLog discontinued ===

3 4 5 6 7 8 9 10
2009-05-04  Siavash Safi  <siavash@siavashs.org>

	Bug 579275  Patch which removes dll api in headers and adds
	a namespace option

	* codegen/h2def.py: Add -n --namespace option and the code to remove
	dll API in headers, Added documentation

11 12 13 14 15 16 17
2009-04-17  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 568499  CellRendererPixbuf stock-size property has wrong type

	* gobject/pygtype.c (pyg_enum_get_value): Also accept long
	integers.

18 19 20 21 22 23 24 25 26
2009-04-15  Gtz Waschk  <waschk@mandriva.org>

	Bug 550231  missing dep on libffi in pygobject-2.0.pc

	* configure.ac: Define `LIBFFI_PC' subst.

	* pygobject-2.0.pc.in:
	* pygobject-2.0-uninstalled.pc.in: Use it.

27 28 29 30 31 32 33
2009-04-15  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 555613 鈥 gio.VolumeMonitor segfaults

	* gio/gvolumemonitor.override (_wrap_g_volume_monitor_tp_new): New
	function, return the singleton object.

34 35 36 37 38 39 40
2009-04-14  James Westby  <jw+debian@jameswestby.net>

	Bug 573753 鈥 DeprecationWarning under python 2.6

	* codegen/definitions.py (ReturnType.__init__): Don't pass
	'type_name' argument to super __init__.

41 42 43 44 45 46 47 48
2009-04-14  Krzesimir Nowak  <krnowak@svn.gnome.org>

	Bug 576566  several scripts from codegen directory are not
	distributed

	* codegen/Makefile.am (codegen_PYTHON): List several missing
	scripts.

49 50 51 52 53
2009-04-14  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override: (_wrap_g_file_copy_async) change argument order
	to keep it consistent with the other methods.

54 55 56 57 58 59 60 61 62 63 64 65 66
2009-04-13  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 578870  memory leak in gio.File.copy_async

	* gio/gio.override (PyGIONotify): Add 'slaves' field.
	(pygio_notify_new_slave): New function.
	(pygio_notify_reference_callback): Recurse for slaves, if any.
	(pygio_notify_free): Likewise.

	* gio/gfile.override (file_progress_callback_marshal): Use new
	chaining functionality to avoid leaking the second PyGIONotify
	structure.  Rename 'callback' as 'progress_callback' for clarity.

67 68 69 70 71
2009-04-12  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gio.defs: (g_file_monitor) should accept None
	for cancellable and set the default flag to G_FILE_MONITOR_NONE.

72 73 74 75 76 77 78 79
2009-04-09  Jonathan Matthew  <jonathan@d14n.org>

	Bug 575781  pyg_notify_free needs to ensure it has GIL before calling
	Py_XDECREF

	* gio/gio.override:  Ensure we're holding the GIL before potentially
	destroying the callback and data.

80 81 82 83 84 85 86
2009-04-05  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override:
	(_wrap_g_file_set_display_name_async) Wrap new GFile method.
	
	* tests/test_gio.py: Test the above methods.

87 88 89 90 91 92 93 94 95
2009-04-05  Tristan Hill  <stan@saticed.me.uk>

	reviewed by: Gustavo J. A. M. Carneiro.

	* glib/pygoptioncontext.c (pyg_option_get_context): Add a
	semi-private method to return the option context C object from an
	option context wrapper.  Used in gnome-python for fixing Bug
	#507174.

96 97 98 99 100 101
2009-04-05  Gustavo J. A. M. Carneiro  <gjc@gnome.org>

	* gobject/pygtype.c (pyg_value_from_pyobject): Bug 577999 鈥
	converting a negative long Python value to a GUINT64 GValue
	doesn't error out as it should.

102 103 104 105 106 107 108 109
2009-04-04  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override:
	(_wrap_g_file_set_attributes_async)
	(_wrap_g_file_set_attributes_finish) Wrap new GFile methods.
	
	* tests/test_gio.py: Test the above methods.

Gian Mario Tagliaretti's avatar
Gian Mario Tagliaretti committed
110 111 112 113 114
2009-03-31  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override:
	(_wrap_g_file_query_filesystem_info_async) Fix a typo.

115 116 117 118 119
2009-03-31  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override:
	(_wrap_g_file_query_filesystem_info_async) Wrap new GFile method.

120 121 122 123 124
2009-03-31  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gio.defs: Add missing g_file_query_filesystem_info_async and
	g_file_query_filesystem_info_finish

125 126 127 128 129
2009-03-30  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override: (_wrap_g_file_mount_mountable)
	Swap kwargs names to reflect the code.

130 131 132 133 134
2009-03-30  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override: (_wrap_g_file_mount_enclosing_volume)
	Swap kwargs names to reflect the code.

135 136 137 138 139
2009-03-30  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override:
	(_wrap_g_file_find_enclosing_mount_async) Wrap new GFile method.

140 141 142 143 144
2009-03-30  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override:
	(_wrap_g_file_eject_mountable) Wrap new GFile method.

145 146 147 148
2009-03-30  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override: (_wrap_g_file_copy) revert previous commit.

149 150 151 152
2009-03-30  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override: (_wrap_g_file_copy) callback cannot be optional.

153 154 155 156 157
2009-03-29  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gvolume.override: (_wrap_g_volume_mount) should accept None
	for mount_operation.

158 159 160 161
2009-03-29  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gvolume.override: Swap kwargs names to reflect the code.

162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229
2009-03-29  Tobias Mueller  <tobiasmue@gnome.org>

	* ltihooks.py:
	* pygtk.py:
	* COPYING:
	* gobject/pygparamspec.h:
	* gobject/pygpointer.c:
	* gobject/ffi-marshaller.h:
	* gobject/pygtype.c:
	* gobject/__init__.py:
	* gobject/pygpointer.h:
	* gobject/pygtype.h:
	* gobject/pygflags.c:
	* gobject/pyginterface.c:
	* gobject/pygflags.h:
	* gobject/pygboxed.c:
	* gobject/gobjectmodule.c:
	* gobject/pygenum.c:
	* gobject/pyginterface.h:
	* gobject/pygboxed.h:
	* gobject/pygobject.c:
	* gobject/constants.py.in:
	* gobject/pygenum.h:
	* gobject/propertyhelper.py:
	* gobject/pygparamspec.c:
	* gobject/ffi-marshaller.c:
	* glib/pygmainloop.c:
	* glib/pygoptioncontext.h:
	* glib/pygmainloop.h:
	* glib/pyglib-private.h:
	* glib/__init__.py:
	* glib/pygoptiongroup.c:
	* glib/pygspawn.c:
	* glib/pygmaincontext.c:
	* glib/pygoptiongroup.h:
	* glib/pygspawn.h:
	* glib/pygmaincontext.h:
	* glib/option.py:
	* glib/pygsource.c:
	* glib/glibmodule.c:
	* glib/pygiochannel.h:
	* glib/pygsource.h:
	* glib/pyglib.c:
	* glib/pyglib.h:
	* glib/pyglib-python-compat.h:
	* glib/pygoptioncontext.c:
	* gio/gfileinfo.override:
	* gio/gappinfo.override:
	* gio/__init__.py:
	* gio/gfileattribute.override:
	* gio/gvolume.override:
	* gio/gio.override:
	* gio/ginputstream.override:
	* gio/goutputstream.override:
	* gio/unix.override:
	* gio/gfile.override:
	* gio/gvolumemonitor.override:
	* gio/gapplaunchcontext.override:
	* gio/giomodule.c:
	* gio/gfileenumerator.override:
	* gio/pygio-utils.c:
	* gio/unixmodule.c:
	* gio/pygio-utils.h:
	* gio/gicon.override:
	Update the address of the FSF, by replacing old bits of the address 
	with new ones.
	Fixes bug 577134

230 231 232 233
2009-03-29  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gio.defs: Add g_volume_should_automount

234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
2009-03-28  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/pygio-utils.[hc]: (strv_to_pylist) (pylist_to_strv) add a couple
	of convinence functions to convert from/to a python list and an array
	of strings.

	* gio/Makefile.am
	* gio/gdrive.override:
	* gio/gio.override: Strip GDrive overrides and
	wrap g_drive_enumerate_identifiers
	
	* tests/test_gio.py:
	* gio/gvolume.override: wrap g_volume_enumerate_identifiers

	* gio/gio.defs: add missing g_drive_get_identifier and
	g_drive_enumerate_identifiers

251 252 253 254 255 256 257 258 259 260 261 262 263
2009-03-22  Mark Lee  <marklee@svn.gnome.org>

	Bug 559001  Allow setting pytype wrapper class

	initial patch by: John Ehresman  <jpe@wingware.com>

	* gobject/pygtype.c (_wrap_g_type_wrapper__set_pytype): New function.

	* tests/test_gtype.py (GTypeTest.assertPyType),
	(GTypeTest.setInvalidPyType), (GTypeTest.testPyType),
	(GTypeTest.testInvalidPyType): Two new testcases to test the above,
	with accompanying helper methods.

264 265 266 267
2009-03-22  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gio.defs: Add g_file_enumerator_get_container, new in 2.18

268 269 270 271 272 273 274 275
2009-03-22  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfileenumerator.override (_wrap_g_file_enumerator_close_async)
	wrap new method.

	* tests/test_gio.py (TestGFileEnumerator.testCloseFilesAsync):
	Test the above.

276 277
2009-03-09  Gian Mario Tagliaretti  <gianmt@gnome.org>

278 279
	* docs/reference/Changelog: Create a dedicated Changelog for the docs
	and move the latest entries in there.
280

281 282 283 284 285
2009-02-20  James Henstridge  <james@jamesh.id.au>

	* ltihooks.py: pull in changes from pygtk (updating license header
	from GPL to LGPL).

286 287 288 289 290 291
2009-02-18  Andre Klapper  <a9016009@gmx.de>

	* gobject/pygobject.h:
	Change comment to avoid false positives when grep'ing for 
	deprecated gtk functions

292 293 294 295 296 297 298
2009-02-17  Gustavo J. A. M. Carneiro  <gjc@inescporto.pt>

	* gio/gfile.override, gio/gio.defs, gio/gio.override: Bug 556250
	again.  I screwed up and gave misinformation about how to fix it.
	It must be pyg_begin/end_allow_threads, pyg_block/unblock_threads
	is only to be used for async callbacks.

299 300 301 302 303 304 305 306 307
2009-02-10  Gian Mario Tagliaretti  <gianmt@gnome.org>

	Bug 556250 鈥 non-async functions don't release python locks before
	calling blocking C functions

	* gio/gio.override:
	* gio/gfile.override:
	* gio/gio.defs: release the thread lock.

Gian Mario Tagliaretti's avatar
Gian Mario Tagliaretti committed
308 309 310 311 312 313
2009-02-10  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gio.defs:
	* gio/gio-types.defs:
	* gio/unix.defs: Add 2.18 gio API.

314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332
2009-02-08  Gian Mario Tagliaretti  <gianmt@gnome.org>

	Bug 568427  "gio.Error: Too many open files" without too many
	open files
	
	* gobject/pygtype.c (_wrap_g_type_wrapper__get_name):
	* gobject/gobjectmodule.c (get_type_name_for_class):
	* gobject/pygobject.c (build_parameter_list), (PyGProps_length):
	* gio/gfileinfo.override (_wrap_g_file_info_list_attributes):
	* gio/gio.override (_wrap_g_content_type_guess):
	* gio/gfile.override (_wrap__file_init), (_wrap_g_file_load_contents)
	(_wrap_g_file_load_contents_finish): Remove some memory leaks.
	
	* gio/gio.defs: add (caller-owns-return #t) all over the place to
	prevent memory leaks.
	
	patch contributed by Paul Pogonyshev, Paolo Borelli and
	Gian Mario Tagliaretti.

333 334 335 336 337
2009-02-06  Murray Cumming  <murrayc@murrayc.com>

	* codegen/h2def.py DefsWriter::write_enum_defs(): Prevent an exception 
	when the prefix is empty.

338 339 340 341 342 343
2009-01-29  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 569350  Inconsistent use of tabs and spaces in pygtk.py

	* pygtk.py: Replace all tabs with spaces.

344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362
2009-01-29  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 567792  gio.InputStream.read_async can cause memory
	corruption

	* gio/gio.override (py_decref_callback): Remove (unused now).
	(pygio_notify_allocate_buffer, pygio_notify_attach_to_result)
	(pygio_notify_get_attached): New functions.
	(async_result_callback_marshal): Attach to the result object if
	asked and then don't free self.  Fix reference leak (spotted by
	Gustavo).

	* gio/ginputstream.override (async_result_callback_marshal_read):
	Remove.  Use new attachment functionality in
	async_result_callback_marshal() instead.
	(_wrap_g_input_stream_read_async): Use the new functions (also
	those mentioned in the cleanup log below).
	(_wrap_g_input_stream_read_finish): Use the new functions.

363 364 365 366 367 368
2009-01-27  Daniel Elstner  <danielk@openismus.com>

	* codegen/docextract_to_xml.py (escape_text): Do not escape the
	ampersand "&" in entity references (bug #568485).  Replace some
	unusual entity references in the output with their literal values.

369 370 371 372 373 374 375 376 377 378 379 380
2009-01-14  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 566571 鈥 gtk.Buildable interface method override is not
	recognized

	* gobject/gobjectmodule.c (pyg_type_add_interfaces): New function,
	break out code repetition out of pyg_type_register().

	* tests/test_subtype.py
	(TestSubType.test_gtk_buildable_virtual_method): New test
	case (inactive).

381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424
2009-01-14  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 566706 鈥 cleanup GIO overrides

	* gio/gio.override (pygio_notify_new)
	(pygio_notify_using_optional_callback)
	(pygio_notify_callback_is_valid_full)
	(pygio_notify_callback_is_valid)
	(pygio_notify_reference_callback): New functions.
	(pygio_notify_free): Rename from pygio_free_notify() and extend.
	(async_result_callback_marshal): Warn if new `referenced' field is
	not set (programming error).
	(_wrap_g_drive_eject, _wrap_g_drive_poll_for_media)
	(_wrap_g_mount_unmount, _wrap_g_mount_eject)
	(_wrap_g_mount_remount): Lots of cleanup: use new functions
	instead of repeating code, unify and fix error handling.

	* gio/gfile.override (_wrap_g_file_read_async)
	(_wrap_g_file_load_contents_async)
	(_wrap_g_file_enumerate_children_async)
	(_wrap_g_file_mount_mountable, _wrap_g_file_unmount_mountable)
	(_wrap_g_file_mount_enclosing_volume, _wrap_g_file_copy)
	(_wrap_g_file_copy_async, _wrap_g_file_move)
	(_wrap_g_file_append_to_async, _wrap_g_file_create_async)
	(_wrap_g_file_replace_async, _wrap_g_file_query_info_async)
	(_wrap_g_file_replace_contents_async): Similar cleanup.

	* gio/gfileenumerator.override
	(_wrap_g_file_enumerator_next_files_async): Similar cleanup.

	* gio/gicon.override (_wrap_g_loadable_icon_load_async): Similar
	cleanup.

	* gio/ginputstream.override (_wrap_g_input_stream_close_async):
	Similar cleanup.

	* gio/goutputstream.override (_wrap_g_output_stream_write_async)
	(_wrap_g_output_stream_close_async): Similar cleanup.

	* gio/gvolume.override (_wrap_g_volume_mount)
	(_wrap_g_volume_eject): Similar cleanup.

	* tests/test_gio.py (TestFile.test_copy_async): Fix the test.

425 426 427 428 429
2009-01-09  Gustavo J. A. M. Carneiro  <gjc@gnome.org>

	* gobject/gobjectmodule.c (pyg_type_register): Add a comment
	explaining why the two for loops for registering interfaces.

430 431 432 433 434 435 436 437
2009-01-07  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 566744  _wrap_g_input_stream_read_async() argument parsing
	has incorrect keyword args

	* gio/ginputstream.override (_wrap_g_input_stream_read_async): Fix
	keyword list to be in sync with positional arguments.

438 439 440 441 442 443 444 445 446 447
2009-01-06  Gian Mario Tagliaretti  <gianmt@gnome.org>

	Bug 566737  Bad -I ordering can break build

	* Makefile.am:
	* gobject/Makefile.am:
	* gio/Makefile.am:
	* tests/Makefile.am:
	Commit a patch from [dmacks at netspace dot org]

Mads Chr. Olesen's avatar
Mads Chr. Olesen committed
448 449 450 451 452 453 454 455 456
2009-01-04  Mads Chr. Olesen  <gnome-bugzilla@shiyee.dk>

	* gio/gio.defs (gio.File.copy_async, gio.File.copy_finish): Define
	methods.

	* gio/gfile.override (_wrap_g_file_copy_async): New function.

	* tests/test_gio.py (TestFile.test_copy_async): Test the methods.

457 458 459 460 461 462 463
2009-01-04  Przemysaw Grzegorczyk  <pgrzegorczyk@gmail.com>

	Bug 563714  GNOME Goal: Clean up GLib and GTK+ includes

	* gobject/generate-constants.c:
	* glib/pygspawn.c: Only include toplevel <glib.h>.

464 465 466 467 468 469 470
2009-01-04  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 564018  pygobject libtool-2.2 patch

	* configure.ac: Apply the patch provided by Cygwin Ports
	maintainer.

471 472 473 474
2009-01-04  Paul Pogonyshev  <pogonyshev@gmx.net>

	* configure.ac: Branch, bump version to 2.17.0.

475
=== 2.16.0 ===
Paul Pogonyshev's avatar
Paul Pogonyshev committed
476 477 478 479 480 481 482
2008-12-24  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547119  gobject.timeout_add_seconds() not found in docs

	* docs/reference/pyglib-functions.xml (glib.timeout_add_seconds):
	Describe.

Paul Pogonyshev's avatar
Paul Pogonyshev committed
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497
2008-12-21  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 564102  _wrap_g_output_stream_write_async not adding a
	reference to the buffer passed

	* gio/gio.override (pygio_notify_copy_buffer): New function.
	(pygio_free_notify): Free new `buffer' field if it is set.

	* gio/goutputstream.override (_wrap_g_output_stream_write_async):
	Copy the buffer with new pygio_notify_copy_buffer() and use the
	copy for g_output_stream_write_async() call.

	* gio/gfile.override (_wrap_g_file_replace_contents_async): Same
	as for _wrap_g_output_stream_write_async().

498 499 500 501 502
2008-12-03  Paul Pogonyshev  <pogonyshev@gmx.net>

	* glib/pyglib.c (pyglib_error_check): Test if `domain' is not-null
	before using it (avoids segfaults, see bug #561826).

503 504
2008-10-31  John Finlay  <finlay@moeraki.com>

505 506 507 508 509 510
	* codegen/__init__.py (__all__): Add defsgen to __all__ list.

	* codegen/h2def.py (find_enum_defs): Strip out # directives from
	enum defintions.
	(clean_func): Change ' * G_CONST_RETURN * ' to '** '

John Finlay's avatar
John Finlay committed
511 512
	* codegen/Makefile.am (codegen_PYTHON): Add defsgen.py

513 514 515 516 517 518 519 520 521 522
	* codegen/defsgen.py (typecode): Use the passed in prefix as a
	hint when creating a typecode.
	(split_prefix,write_enum_defs,_write_obj_helper): Add function to
	use passed in prefix as a hint when splitting an object name into
	module and name.

	* codegen/h2def.py (DefsWriter.write_enum_defs): Make sure the
	prefix ends with a _ i.e. really handle the GDK_FONT_FONT,
	GDK_FONT_FONTSET case.

523 524 525 526 527
2008-09-12  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/goutputstream.override
	(g_output_stream_write_all): use gsize instead of gssize.

528 529 530 531 532 533 534 535
2008-09-10  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 530935  pygobject_set_properties doesnt release the GIL

	* gobject/pygobject.c (pygobject_set_properties): Reuse
	set_property_from_pspec() which release GIL for us.  Also make
	sure that g_object_thaw_notify() is called even after error.

536 537 538 539 540 541 542 543 544
2008-09-09  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 549517  add __repr__ to gio.Drive, gio.Mount and gio.Volume

	* gio/gio.override (_wrap_g_drive_tp_repr, _wrap_g_mount_tp_repr):
	New functions.

	* gio/gvolume.override (_wrap_g_volume_tp_repr): New function.

545 546 547 548 549 550
2008-09-09  Loc Minier  <lool@dooz.org>

	Bug 551227  Missing AC_CONFIG_MACRO_DIR([m4])

	* configure.ac: Add AC_CONFIG_MACRO_DIR.

551 552 553 554 555 556 557 558 559 560 561 562 563 564
2008-09-08  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 551056  make codegen not import when corresponding argument
	types are not registered

	* codegen/override.py (import_pat): Add support for optional 'for'
	clause.
	(Overrides.__parse_override): Handle it.

	* codegen/codegen.py (SourceWriter.write_imports)
	(SourceWriter.write_object_imports): Adapt for changes in
	get_imports() return value.
	(is_registered_object): New function.

565 566 567 568 569 570
2008-09-07  Frederic Peters  <fpeters@0d.be>

	* gio/gfile.override (_wrap_g_file_load_contents)
	(_wrap_g_file_load_contents_finish): Fix typos breaking
	compilation (bug #551212).

571 572 573 574 575 576 577 578
2008-09-07  Jonathan Matthew  <jonathan@d14n.org>

	Bug 551059  GFile load_contents methods chop data at first \0

	* gio/gfile.override:
	Use 's#' (length specified) rather than 's' when constructing
	result values in load_contents and load_contents_finish.

Johan Dahlin's avatar
Johan Dahlin committed
579 580 581 582 583
2008-09-03  Johan Dahlin  <johan@gnome.org>

	* configure.ac:
	Post release version bump

Johan Dahlin's avatar
Johan Dahlin committed
584 585 586 587 588
=== 2.15.4 ===
2008-09-03  Johan Dahlin  <johan@gnome.org>

	* NEWS: Update

589 590 591 592 593 594
2008-09-03  Loc Minier  <lool@dooz.org>

	* gobject/pygpointer.c: (pyg_register_pointer):
	Fix typo (s/&type/type) introduced in r886 causing weird crashes on
	x86-64; bug #550463.

595 596 597 598
2008-09-01  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* codegen/argtypes.py: add G_TYPE_CLOSURE boxed type in codegen.

Johan Dahlin's avatar
Johan Dahlin committed
599 600 601 602 603
2008-08-31  Johan Dahlin  <johan@gnome.org>

	* configure.ac:
	Post release version bump

Johan Dahlin's avatar
Johan Dahlin committed
604 605 606 607 608
=== 2.15.3 ===
2008-08-31  Johan Dahlin  <johan@gnome.org>

	* NEWS: Update

609 610 611 612 613 614
2008-08-30  Gustavo J. A. M. Carneiro  <gjc@inescporto.pt>

	* glib/pyglib.h: * gobject/pygobject.c: Fix memory problems
	reported by valgrind due to invalid tp_basicsize in
	PyGPropsDescr_Type.  Closes #549945.

615 616 617 618 619 620 621 622
2008-08-28  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 549191  Constructor of gtk.TreeView raises TypeError when
	model is None

	* gobject/pygtype.c (pyg_value_from_pyobject): Handle None in
	G_TYPE_INTERFACE branch.

623 624 625 626 627 628 629
2008-08-28  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 549351  an unitialized variable in PyGLib

	* glib/pygmainloop.c (pyg_main_loop_init): Initialize
	`is_running'.

630 631 632 633
2008-08-28  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547633 鈥 cannot create new threads when pygtk is used

634 635
	* glib/pyglib.c (_pyglib_notify_on_enabling_threads): New
	function.
636
	(pyglib_enable_threads): Invoke all callbacks added with new
637
	_pyglib_notify_on_enabling_threads().
638 639

	* gobject/gobjectmodule.c (pyg_note_threads_enabled): New
640
	function (callback for new _pyglib_notify_on_enabling_threads()).
641 642 643 644
	(PYGLIB_MODULE_START): Initialize
	'pygobject_api_functions.threads_enabled' and also watch for
	thread being enabled later on.

645 646
2008-08-28  Paul Pogonyshev  <pogonyshev@gmx.net>

647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663
	Bug 547088 鈥 wrap g_content_types_get_registered()

	* gio/gio.override (_wrap_g_drive_get_volumes): Fix refleak.
	(_wrap_g_content_types_get_registered): New function.

	* gio/gfileenumerator.override (_wrap_g_file_enumerator_next_files_finish):
	Fix refleak.

	* gio/gvolumemonitor.override (_wrap_g_volume_monitor_get_connected_drives):
	Fix refleak.
	(_wrap_g_volume_monitor_get_volumes): Likewise.
	(_wrap_g_volume_monitor_get_mounts): Likewise.

2008-08-28  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547494 鈥 gio.InputStream.read() looks broken

664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681
	* gio/gio.defs (gio.InputStream.read_part): Rename from read(),
	document.
	(gio.InputStream.read): Rename from read_all(), document.
	(gio.OutputStream.write_part): Rename from write(), document.
	(gio.OutputStream.write): Rename from write_all(), document.

	* gio/ginputstream.override (_wrap_g_input_stream_read): Fix
	several bugs.
	(_wrap_g_input_stream_read_all): New function.

	* gio/goutputstream.override (_wrap_g_output_stream_write_all):
	New function.

	* tests/test_gio.py (TestInputStream.testRead): Add more tests.
	(TestInputStream.test_read_part): New test.
	(TestInputStream._read_in_loop): New helper method.
	(TestOutputStream.test_write_part): New test.

682 683 684 685 686
2008-08-16  Paul Pogonyshev  <pogonyshev@gmx.net>

	* gio/gfile.override (_wrap_g_file_enumerate_children_async): Fix
	keywords getting out of sync with actual argument order.

687 688 689 690 691 692 693 694 695 696 697 698
2008-08-13  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547495 鈥 wrap four important asynchronous methods in gio.Drive
	and gio.Mount

	* gio/gio.defs (gio.Drive.eject, gio.Drive.poll_for_media)
	(gio.Mount.remount): Document.

	* gio/gio.override (_wrap_g_drive_eject)
	(_wrap_g_drive_poll_for_media, _wrap_g_mount_eject)
	(_wrap_g_mount_remount): New functions.

699 700 701 702 703 704
2008-08-12  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547484 鈥 wrap gio.DataInputStream.read_line and ...read_until

	* tests/test_gio.py (TestDataInputStream): New test case.

705 706
	* gio/gio.defs (gio.DataInputStream.read_line)
	(gio.DataInputStream.read_until): Document.
707

708 709 710
	* gio/ginputstream.override (_wrap_g_data_input_stream_read_line)
	(_wrap_g_data_input_stream_read_until): New functions.

711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726
2008-08-12  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547354 鈥 wrap a few memory stream methods

	* gio/ginputstream.override (_wrap_g_memory_input_stream_add_data):
	New function.

	* gio/gio.defs (gio.MemoryOutputStream.get_contents): Rename from
	get_data() to avoid name clash.

	* gio/goutputstream.override (_wrap_g_memory_output_stream_new)
	(_wrap_g_memory_output_stream_get_data): New functions.

	* tests/test_gio.py (TestMemoryInputStream)
	(TestMemoryOutputStream): New test cases.

727 728 729 730
2008-08-12  Paul Pogonyshev  <pogonyshev@gmx.net>

	* gio/gio.override: Ignore `g_io_module*' and `g_io_scheduler_*'.

731 732 733 734 735 736 737 738 739
2008-08-11  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 540376 鈥 No TypeError raised when type is None

	* gobject/gobjectmodule.c (pyg_signal_new): Add check on second
	argument type.

	* tests/test_signal.py (TestSignalCreation): New test case.

740 741 742 743 744 745 746 747 748
2008-08-11  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547104 鈥 improve type wrapper creation

	* gio/gappinfo.override (_wrap_g_app_info_tp_richcompare)
	(_wrap_g_app_info_tp_repr): New functions.

	* tests/test_gio.py (TestAppInfo.test_eq): New test.

749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766
2008-08-11  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547104 鈥 improve type wrapper creation

	* gobject/pygobject.c (pygobject_register_class): Use new
	pygobject_inherit_slots() to propagate custom slots in normal
	types too.
	(pygobject_inherit_slots): New function, break out of
	pygobject_new_with_interfaces() and rewrite a bit.
	(pygobject_find_slot_for): Add new argument that can forbid
	overriding non-NULL slots.

	* gio/gicon.override (pygio_do_icon_richcompare): Remove, the code
	is now directly in _wrap_g_icon_tp_richcompare().
	(_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash)
	(_wrap_g_themed_icon_tp_richcompare, _wrap_g_themed_icon_tp_hash):
	Remove, duplicating code in this way is not needed anymore.

767 768 769 770 771 772 773 774 775 776
2008-08-10  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 546120 鈥 make gio.File more Pythonic

	* gio/gfile.override (_wrap_g_file_tp_richcompare)
	(_wrap_g_file_tp_hash, _wrap_g_file_tp_repr): New functions.

	* tests/test_gio.py (TestFile.test_eq, TestFile.test_hash): New
	tests.

777 778 779 780 781 782 783 784 785
2008-08-10  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 547104 鈥 improve runtime type wrapper creation

	* gobject/pygobject.c (pygobject_new_with_interfaces): Use new
	pygobject_find_slot_for() for `tp_richcompare', `tp_compare`,
	`tp_hash', `tp_iter', `tp_repr', `tp_str' and `tp_print'.
	(pygobject_find_slot_for): New static function.

786 787 788 789 790 791 792 793
2008-08-10  Jonathan Matthew  <jonathan@d14n.org>

	Bug 547134 鈥 fix docstring line length

	* gio/gio.defs:
	Fix docstring line lengths so they don't wrap across lines in an 80
	column terminal.

794 795 796 797 798
2008-08-10  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gio.defs:
	Add GFile.query_default_handler which was missing from the defs.

799 800 801 802 803 804 805 806 807 808 809
2008-08-10  Jonathan Matthew  <jonathan@d14n.org>

	Bug 547067  add File.replace_contents, replace_contents_async,
	replace_contents_finish.

	* gio/gfile.override:
	* gio/gio.defs:
	* tests/test_gio.py:
	Add overrides, docs, and tests for File.replace_contents,
	replace_contents_async, and replace_contents_finish.

810 811 812 813 814
2008-08-09  Paul Pogonyshev  <pogonyshev@gmx.net>

	* tests/test_gicon.py (TestThemedIcon.test_constructor): Fix to
	not use `use_default_fallbacks' property (it's new).

815 816 817 818 819 820 821 822 823 824 825
2008-08-09  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 546135  GIcon and implementations improvements

	* gio/gio.defs (g_file_icon_new): Change from method of gio.File
	to constructor of gio.FileIcon.

	* tests/test_gicon.py (TestIcon.test_eq, Test_Eq.test_hash)
	(TestLoadableIcon.setUp): Adapt accordingly.
	(TestFileIcon): New test case.

826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842
2008-08-09  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 546591  File.copy progress_callback does not work

	* gio/gfile.override (file_progress_callback_marshal): Use
	PyObject_CallFunction() instead of PyEval_CallFunction().  Use "K"
	instead of "k" (the latter is not correct for 32-bit platforms).
	Don't free 'notify' here.
	(_wrap_g_file_copy): Free 'notify'.
	(_wrap_g_file_move): Likewise.

	* gio/gio.override (pygio_free_notify): New function.
	(async_result_callback_marshal): Use it.

	* tests/test_gio.py (TestFile.test_copy_progress.progress): New
	test.

843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864
2008-08-09  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 546135 鈥 GIcon and implementations improvements

	* gio/gio.defs (gio.LoadableIcon.load)
	(gio.LoadableIcon.load_async, gio.LoadableIcon.load_finish):
	Document.

	* gio/Makefile.am:
	* gio/gicon.override: New file: parts of 'gio.override', three
	methods of gio.LoadableIcon and gio.ThemedIcon constructor.

	* gio/gio.override: Move over all icon-related overrides to
	'gicon.override'.

	* tests/Makefile.am:
	* tests/test_gicon.py: New file: parts of 'test_gio.py' and
	several new gio.Icon tests.

	* tests/test_gio.py (TestThemedIcon): Move over to
	'test_gicon.py'.

865 866 867 868 869 870 871 872 873
2008-08-07  Jonathan Matthew  <jonathan@d14n.org>

	Bug 546734 鈥 Missing Py_INCREFs for some file async methods

	* gio/gfile.override:
	Increment refcounts on callbacks and callback data for
	append_to_async, create_async, replace_async, query_info_async and
	load_contents_async as for all other async methods.

874 875 876 877 878 879 880
2008-08-06  Johan Dahlin  <johan@gnome.org>

	* gio/gfile.override:
	* gio/gio.defs:
	Move the progress callback for move/copy so it's consistent with
	the documentation and positional arguments. Update documentation as well

881 882 883 884 885 886 887 888
2008-08-06  Johan Dahlin  <johan@gnome.org>

	* glib/pyglib.c (pyglib_enable_threads):
	* gobject/gobjectmodule.c (pyg_threads_init),
	(pygobject_enable_threads):
	Add a pygobject_enable_threads wrapper around pyglib_threads_enable
	and return 0/-1 which existing gobject based applications expect.

889 890 891 892 893 894
2008-08-06  Johan Dahlin  <johan@gnome.org>

	* glib/pyglib.c (pyglib_init):
	return in case of error instead of trying to access the internal
	types.

895 896 897 898 899 900 901
2008-08-06  Paul Pogonyshev  <pogonyshev@gmx.net>

	* gio/gio.override: Add 'pygio_do_icon_richcompare' prototype to
	header.
	(_wrap_g_file_icon_tp_repr, _wrap_g_themed_icon_tp_repr): Fix
	return value type in signature.

902 903 904 905 906 907 908 909 910 911 912 913 914
2008-08-05  Paul Pogonyshev  <pogonyshev@gmx.net>

	Bug 546135  GIcon and implementations improvements

	* gio/gio-types.defs (FileIcon): New 'define-object'.

	* gio/gio.override (pygio_do_icon_richcompare)
	(_wrap_g_icon_tp_richcompare, _wrap_g_icon_tp_hash)
	(_wrap_g_file_icon_tp_richcompare, _wrap_g_file_icon_tp_hash)
	(_wrap_g_file_icon_tp_repr, _wrap_g_themed_icon_tp_richcompare)
	(_wrap_g_themed_icon_tp_hash, _wrap_g_themed_icon_tp_repr): New
	functions.

915 916 917 918 919 920 921 922 923
2008-08-03  Gian Mario Tagliaretti  <gianmt@gnome.org>

	Bug 546046  Wrap GFile.replace_async and query_info_async

	* tests/test_gio.py:
	* gio/gfile.override:
	* gio/gio.defs:
	Wrap GFile.replace_async and query_info_async with docs and test.

924 925 926 927 928 929 930 931 932 933
2008-08-03  Paul Pogonyshev  <pogonyshev@gmx.net>

	* glib/pyglib.h:
	* glib/pyglib.c (pyglib_enable_threads): Change return value from
	'gboolean' to 'int' and changed semantics to Pythonic: restores
	backwards compatibility.

	* gobject/gobjectmodule.c (pyg_threads_init): Treat return value
	accordingly (bug #544946).

934 935 936 937 938 939 940 941 942
2008-08-02  Gian Mario Tagliaretti  <gianmt@gnome.org>

	Bug 546020  Wrap GFile.create_async

	* tests/test_gio.py:
	* gio/gfile.override:
	* gio/gio.defs:
	Wrap GFile.create_async with docs and test

943 944 945 946 947 948 949 950 951 952 953 954
2008-08-02  Johan Dahlin  <johan@gnome.org>

	* codegen/docgen.py:
	Remove SGML support, require python 2.4, modernize,
	PEP-8ify. Make it run on gio.

	* codegen/definitions.py:
	Make property iterable

	* gio/gio.defs:
	Include the gio-types.defs file.

955 956 957 958 959 960 961 962 963 964 965 966 967
2008-08-02  Johan Dahlin  <johan@gnome.org>

	* glib/glibmodule.c (pyglib_set_prgname):
	* glib/pygoptioncontext.c (pyg_option_context_init),
	(pyg_option_context_set_help_enabled),
	(pyg_option_context_set_ignore_unknown_options),
	(pyg_option_context_set_main_group),
	(pyg_option_context_add_group):
	* glib/pygoptiongroup.c (arg_func), (pyg_option_group_add_entries),
	(pyg_option_group_set_translation_domain),
	(pyg_option_group_compare), (pyglib_option_group_register_types):
	Fix compilation warnings, clean up style and indentation.

968 969 970 971 972 973 974 975 976
2008-08-02  Gian Mario Tagliaretti  <gianmt@gnome.org>

	Bug 545959  Wrap GFile.append_to_async

	* tests/test_gio.py:
	* gio/gfile.override:
	* gio/gio.defs:
	Wrap GFile.append_to_async with docs and test

977 978 979 980 981 982 983 984 985
2008-08-02  Johan Dahlin  <johan@gnome.org>

	* gio/gfileinfo.override:
	* gio/gio.override:
	* glib/glibmodule.c (pyglib_get_current_time):
	* glib/pyglib.c (pyglib_float_from_timeval):
	* glib/pyglib.h:
	Add pyglib_float_from_timeval and use it

986 987 988 989 990 991 992 993 994 995 996 997 998 999
2008-08-02  Johan Dahlin  <johan@gnome.org>

	* docs/Makefile.am:
	* docs/reference/pyglib-constants.xml:
	* docs/reference/pyglib-functions.xml:
	* docs/reference/pyglib-maincontext.xml:
	* docs/reference/pyglib-mainloop.xml:
	* docs/reference/pygobject-classes.xml:
	* docs/reference/pygobject-constants.xml:
	* docs/reference/pygobject-functions.xml:
	* docs/reference/pygobject-maincontext.xml:
	* docs/reference/pygobject-mainloop.xml:
	Separate the glib and gobject bindings in the manual.

1000 1001 1002 1003 1004 1005 1006 1007 1008
2008-08-02  Gian Mario Tagliaretti  <gianmt@gnome.org>

	Bug 545920  Wrap GFile.query_writable_namespaces

	* tests/test_gio.py:
	* gio/gfile.override:
	* gio/gio.defs:
	Wrap GFile.query_writable_namespaces with docs and test

Johan Dahlin's avatar
Johan Dahlin committed
1009 1010 1011 1012 1013 1014 1015
2008-08-02  Johan Dahlin  <johan@gnome.org>

	* gio/gio.defs:
	* gio/gfile.override:
	* tests/test_gio.py:
	Wrap gio.File.move

1016 1017 1018 1019 1020 1021 1022 1023 1024
2008-08-02  Johan Dahlin  <johan@gnome.org>

	* gio/Makefile.am:
	* gio/gfile.override:
	* gio/gio.defs:
	* gio/gio.override:
	* gio/gvolume.override:
	Wrap gio.Volume.mount and gio.Volume.eject

1025 1026 1027 1028 1029
2008-08-01  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gio.defs:
	Add docstring for gio.FileInfo.list_attributes

1030 1031 1032 1033 1034 1035 1036 1037
2008-08-01  Johan Dahlin  <johan@gnome.org>

	Bug 545861  g_file_info_get_modification_time is missing
	* gio/gfileinfo.override:
	* gio/gio.defs:
	* tests/test_gio.py:
	Wrap, add test and documentation

1038 1039 1040 1041 1042 1043 1044 1045 1046
2008-08-01  Johan Dahlin  <johan@gnome.org>

	Bug 545846  g_vfs_get_supported_uri_schemes is missing

	* gio/gio.defs:
	* gio/gio.override:
	* tests/test_gio.py:
	Wrap, add test and documentation

1047 1048 1049 1050 1051
2008-08-01  Johan Dahlin  <johan@gnome.org>

	* glib/glibmodule.c (pyglib_set_application_name):
	Use %r instead of %s, this is not python!

1052 1053 1054 1055 1056 1057 1058 1059
2008-07-31  Johan Dahlin  <johan@gnome.org>

	* glib/glibmodule.c (pyglib_set_prgname)
	(pyglib_set_application_name): Use METH_O instead of METH_VARARGS.
	(_glib_functions): Add doc strings for idle_add, timeout_add,
	timeout_add_seconds, io_add_watch, child_watch_add, source_remove,
	main_depth and main_context_default.

1060 1061 1062 1063 1064 1065 1066 1067 1068 1069
2008-07-29  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* tests/test_gio.py:
	* gio/gfileattribute.override:
	* gio/gio.override:
	* gio/gio.defs:
	* gio/gfile.override:
	* gio/Makefile.am: Wrap new object gio.FileAttributeInfo,
	g_file_set_attribute and g_file_query_settable_attributes methods.

1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085
2008-07-29  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/unix-types.defs: Wrap gio.unix.DesktopAppInfo

	* gio/gappinfo.override:
	* gio/gio.override:
	* gio/gio.defs:
	* gio/gapplaunchcontext.override:
	* gio/Makefile.am: Wrap g_app_info_launch_uris,
	g_app_info_launch, g_app_launch_context_get_display and
	g_app_launch_context_get_startup_notify_id

	* gio/pygio-utils.c:
	* gio/pygio-utils.h: Add a couple of useful function to reduce the
	code in wrapped methods.

1086 1087 1088 1089 1090 1091
2008-07-29  Johan Dahlin  <johan@gnome.org>

	* examples/gio/downloader.py:
	* gio/giomodule.c (init_gio):
	Add gio.FILE_ATTRIBUTE_* constants and update the examples to use them.

Johan Dahlin's avatar
Johan Dahlin committed
1092 1093 1094 1095 1096 1097 1098 1099 1100 1101
2008-07-29  Johan Dahlin  <johan@gnome.org>

	* examples/gio/downloader.py:
	Add a new example

	* gio/ginputstream.override:
	Use a string internally instead of a PyStringObject when
	in read_async. Create a new python string in finish and
	honor the number of bytes read.

1102 1103 1104 1105 1106 1107 1108
2008-07-28  Johan Dahlin  <johan@gnome.org>

	* glib/pyglib-python-compat.h:
	* gobject/pygobject-private.h:
	Move all compatibility into the same place, fixes build
	on python 2.4.

1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122
2008-07-27  Johan Dahlin  <johan@gnome.org>

	* glib/option.py:
	Remove tabs. Use sys.exc_info()[1] to fetch the exception value

	* gobject/__init__.py:
	* gobject/propertyhelper.py:
	Import gobject._gobject instead of just gobject.

	* gobject/Makefile.am:
	* gobject/constants.py.in:
	* gobject/generate-constants.c (main):
	Don't add long suffix if python >= 3.0

1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144
2008-07-27  Johan Dahlin  <johan@gnome.org>

	* glib/pyglib-python-compat.h:
	* gobject/gobjectmodule.c (pyg_object_new),
	(pyg__install_metaclass):
	* gobject/pygboxed.c (pyg_boxed_dealloc), (pyg_boxed_init),
	(pyg_register_boxed):
	* gobject/pygenum.c (pyg_enum_reduce):
	* gobject/pyginterface.c (pyg_interface_init),
	(pyg_register_interface):
	* gobject/pygobject.c (pygobject_get_inst_data),
	(pygobject_register_class), (pygobject_new_with_interfaces),
	(pygobject_dealloc), (pygobject_repr), (pygobject_emit),
	(pygobject_chain_from_overridden), (pygobject_weak_ref_notify):
	* gobject/pygparamspec.c (pygobject_paramspec_register_types):
	* gobject/pygpointer.c (pyg_pointer_dealloc), (pyg_pointer_init),
	(pyg_register_pointer):
	* gobject/pygtype.c (pyg_type_from_object),
	(pyg_value_array_from_pyobject), (pyg_value_from_pyobject),
	(pyg_object_descr_doc_get):
	Use the Py_TYPE macro everywhere.

1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160
2008-07-27  Johan Dahlin  <johan@gnome.org>

	* glib/pyglib-python-compat.h:
	Add a Py_TYPE macro for accessing ob_type.
	* glib/glibmodule.c (pyglib_register_constants):
	* gobject/gobjectmodule.c (pygobject__g_instance_init),
	(pyg_integer_richcompare):
	* gobject/pygenum.c (pyg_enum_repr), (pyg_enum_from_gtype),
	(pyg_enum_add), (pyg_enum_get_value_name),
	(pyg_enum_get_value_nick):
	* gobject/pygflags.c (pyg_flags_repr), (pyg_flags_from_gtype),
	(pyg_flags_add), (pyg_flags_and), (pyg_flags_or), (pyg_flags_xor),
	(pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick),
	(pyg_flags_get_value_names), (pyg_flags_get_value_nicks):
	Use Py_TYPE and PyLong macros to access struct fields

Johan Dahlin's avatar
Johan Dahlin committed
1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182
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.

1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194
2008-07-27  Johan Dahlin  <johan@gnome.org>

	* gobject/pygboxed.c (pygobject_boxed_register_types):
	* gobject/pygenum.c (pygobject_enum_register_types):
	* gobject/pygflags.c (pygobject_flags_register_types):
	* gobject/pygobject.c (pygobject_object_register_types):
	* gobject/pygparamspec.c (pygobject_paramspec_register_types):
	* gobject/pygpointer.c (pygobject_pointer_register_types):
	* gobject/pygtype.c (pygobject_type_register_types):
	Use PYGLIB_DEFINE_TYPE macro and move struct field initialization
	to the registration methods.

Johan Dahlin's avatar
Johan Dahlin committed
1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232
2008-07-27  Johan Dahlin  <johan@gnome.org>

	* glib/pyglib-python-compat.h:
	Add _PyUnicode_Type macro

	* gobject/gobjectmodule.c (pyg_type_name), (pyg_type_from_name),
	(_pyg_signal_accumulator), (add_signals), (add_properties),
	(get_type_name_for_class), (pyg_signal_list_names),
	(pyg_signal_name), (pyg_signal_query), (pyg_object_new),
	(pyg_add_emission_hook), (pyg_remove_emission_hook):
	* gobject/pygboxed.c (pyg_boxed_repr):
	* gobject/pygenum.c (pyg_enum_repr), (pyg_enum_add),
	(pyg_enum_get_value_name), (pyg_enum_get_value_nick):
	* gobject/pygflags.c (pyg_flags_repr), (pyg_flags_add),
	(pyg_flags_get_first_value_name), (pyg_flags_get_first_value_nick),
	(pyg_flags_get_value_names), (pyg_flags_get_value_nicks):
	* gobject/pygobject.c (build_parameter_list), (PyGProps_getattro),
	(PyGProps_setattro), (pygobject_register_class), (pygobject_repr),
	(pygobject_init), (pygobject_get_properties),
	(pygobject_set_properties), (pygobject_connect),
	(pygobject_connect_after), (pygobject_connect_object),
	(pygobject_connect_object_after), (pygobject_emit),
	(pygobject_stop_emission), (pygobject_disconnect_by_func),
	(pygobject_handler_block_by_func),
	(pygobject_handler_unblock_by_func),
	(pygobject_object_register_types):
	* gobject/pygparamspec.c (pyg_param_spec_repr),
	(pyg_param_spec_getattr):
	* gobject/pygpointer.c (pyg_pointer_repr):
	* gobject/pygtype.c (pyg_type_wrapper_repr),
	(_wrap_g_type_wrapper__get_name), (pyg_type_from_object),
	(pyg_enum_get_value), (pyg_flags_get_value),
	(pyg_value_from_pyobject), (pyg_value_as_pyobject),
	(object_doc_descr_get), (_pyg_strv_from_gvalue),
	(_pyg_strv_to_gvalue):

	Use _PyUnicode_* macros in the gobject module

1233 1234 1235 1236 1237 1238 1239
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.

1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254
2008-07-27  Johan Dahlin  <johan@gnome.org>

	* gobject/Makefile.am:
	* gobject/gobjectmodule.c (init_gobject):
	* gobject/pygboxed.c (pygobject_boxed_register_types):
	* gobject/pygboxed.h:
	* gobject/pygenum.c (pygobject_enum_register_types):
	* gobject/pygenum.h:
	* gobject/pygflags.c (pygobject_flags_register_types):
	* gobject/pygflags.h:
	* gobject/pygpointer.c (pygobject_pointer_register_types):
	* gobject/pygpointer.h:
	Split out quark and type registration to the respective
	implementation source files, add headers.

1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270
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.

1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282
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.

1283 1284 1285 1286 1287 1288
2008-07-27  Paul Pogonyshev  <pogonyshev@gmx.net>

	* gobject/pygtype.c (pyg_enum_get_value): Issue warning if 'obj'
	is a PyGEnum of wrong type, i.e. not matching 'enum_type' (bug
	#503771).

1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307
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

1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* glib/Makefile.am:
	Also export PyInit_glib
	* glib/__init__.py:
	import glib._glib instead of just _glib
	* glib/pyglib-python-compat.h:
	* glib/pygoptioncontext.c (pyg_option_context_parse):
	* glib/pygsource.c (source_repr), (pyg_source_attach),
	(pyg_source_get_priority), (pyg_source_set_priority),
	(pyg_source_get_id), (pyg_source_prepare), (pyg_poll_fd_repr):
	* glib/pygspawn.c (pyg_pid_close), (pyg_pid_free), (pyg_pid_new),
	(pyglib_spawn_async), (pyglib_spawn_register_types):
	Go over the rest and replace missing symbols on python3.
	the glib module successfully compiles and runs now.

Johan Dahlin's avatar
Johan Dahlin committed
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* glib/pygiochannel.c (py_io_channel_shutdown),
	(py_io_channel_set_buffer_size), (py_io_channel_get_buffer_size),
	(py_io_channel_set_buffered), (py_io_channel_get_buffered),
	(py_io_channel_set_encoding), (py_io_channel_get_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_get_flags),
	(py_io_channel_get_buffer_condition),
	(py_io_channel_set_close_on_unref), (py_io_channel_add_watch),
	(py_io_channel_win32_poll), (py_io_channel_win32_make_pollfd),
	(py_io_channel_read_line), (py_io_channel_read_lines),
	(py_io_channel_seek), (py_io_channel_init):
	* glib/pyglib.c (pyglib_gerror_exception_check):
	* glib/pygoptioncontext.c (pyg_option_context_init):
	* glib/pygoptiongroup.c (check_if_owned):
	* glib/pygsource.c (pyg_idle_init), (pyg_timeout_init),
	(pyg_poll_fd_init):
	gobject -> glib

1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* glib/pygmaincontext.c (pyglib_maincontext_register_types):
	* glib/pygmainloop.c (pyg_main_loop_init),
	(pyglib_mainloop_register_types):
	* glib/pygoptioncontext.c (pyg_option_context_set_main_group),
	(pyglib_option_context_register_types):
	* glib/pygoptiongroup.c (pyglib_option_group_register_types):
	* glib/pygspawn.c (pyglib_spawn_register_types):
	Convert the pid/mainloop/maincontext/optiongroup/optioncontext.

1356 1357 1358 1359 1360
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* glib/pygsource.c (pyglib_source_register_types):
	Convert the source objects to use macros, saves ~150 lines of code!

1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* glib/glibmodule.c (get_handler_priority), (pyglib_idle_add),
	(pyglib_timeout_add), (pyglib_timeout_add_seconds),
	(pyglib_io_add_watch), (pyglib_child_watch_add),
	(pyglib_markup_escape_text), (pyglib_main_depth),
	(pyglib_filename_from_utf8), (pyglib_get_application_name),
	(pyglib_get_prgname), (PYGLIB_MODULE_START):
	* glib/pygiochannel.c (py_io_channel_next),
	(py_io_channel_shutdown), (py_io_channel_get_buffer_size),
	(py_io_channel_get_buffered), (py_io_channel_get_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_get_flags),
	(py_io_channel_get_buffer_condition), (py_io_channel_win32_poll),
	(py_io_channel_read_line), (py_io_channel_read_lines),
	(py_io_channel_seek), (pyglib_iochannel_register_types):
	* glib/pyglib-private.h:
	* glib/pyglib-python-compat.h:
	* glib/pyglib.c (pyglib_init), (pyglib_error_check),
	(pyglib_gerror_exception_check),
	(pyglib_register_exception_for_domain):
	Add macros for supporting additional python versions.
	Start using them for the glib module. Tested on python 2.5 and 3.0.

1386 1387 1388 1389 1390 1391
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* configure.ac:
	* m4/python.m4:
	Add macros which are compatible with python > 2.6.

Johan Dahlin's avatar
Johan Dahlin committed
1392 1393 1394 1395 1396
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* configure.ac:
	Post release version bump

Johan Dahlin's avatar
Johan Dahlin committed
1397 1398 1399 1400 1401
=== 2.15.2 ===
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* NEWS: Update

1402 1403
2008-07-26  Johan Dahlin  <johan@gnome.org>

Johan Dahlin's avatar
Johan Dahlin committed
1404 1405 1406
	* gobject/Makefile.am (_gobject_la_SOURCES): Build fix, remove
	extra \

1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417
	* examples/gio/directory-async.py:
	* gio/Makefile.am:
	* gio/giomodule.c (init_gio):
	* glib/pyglib.c (pyglib_error_check),
	(pyglib_register_exception_for_domain):
	* glib/pyglib.h:
	* tests/test_gio.py:
	Add a new API for registering exceptions for a GError domain.
	Register a new exception for G_IO_ERROR, update tests
	and examples to use the new exception.

1418 1419 1420 1421 1422 1423
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* glib/pygoptioncontext.c (pyg_option_context_set_main_group),
	(pyg_option_context_add_group):
	Send in a PyObject instead of a PyGOptionGroup object.

1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449
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.

1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* tests/common.py:
	* tests/test_conversion.py:
	* tests/test_enum.py:
	* tests/test_interface.py:
	* tests/test_option.py:
	* tests/test_source.py:
	* tests/test_subprocess.py:
	* tests/test_subtype.py:
	* tests/test_thread.py:
	* tests/test_unknown.py:
	Run pyflakes on the testsuite, remove unused imports
	and reorganize others.

1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* glib/glibmodule.c (pyglib_register_constants), (init_glib):
	* gobject/__init__.py:
	* gobject/gobjectmodule.c (init_gobject):
	Move over glib constants to gobject
	* tests/test_gio.py:
	* tests/test_mainloop.py:
	* tests/test_source.py:
	* tests/test_subprocess.py:
	* tests/test_thread.py:
	Update tests to refer to glib when appropriate

1478 1479 1480 1481
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* README:
	* configure.ac:
Johan Dahlin's avatar
Johan Dahlin committed
1482
	Bump required glib version to 2.10
1483

1484 1485 1486 1487 1488 1489 1490 1491 1492 1493
2008-07-26  Johan Dahlin  <johan@gnome.org>

	* glib/glibmodule.c (child_watch_dnotify),
	(pyglib_child_watch_add):
	* glib/pygiochannel.c (pyg_iowatch_data_free),
	(py_io_channel_add_watch):
	* glib/pygspawn.c (_pyg_spawn_async_callback),
	(pyglib_spawn_async):
	Use g_slice_new instead of g_new

Johan Dahlin's avatar
Johan Dahlin committed
1494 1495 1496 1497 1498 1499
2008-07-25  Johan Dahlin  <johan@gnome.org>

	* gobject/Makefile.am:
	* tests/Makefile.am:
	Make distcheck pass

1500 1501 1502 1503 1504 1505
2008-07-25  Johan Dahlin  <johan@gnome.org>

	* gobject/gobjectmodule.c (init_gobject):
	* gobject/pygobject-private.h:
	Remove private structures which moved to pyglib.

1506 1507
2008-07-24  Johan Dahlin  <johan@gnome.org>

1508
	Bug 544600 鈥 pygobject building failed since 839 revision,
1509 1510 1511 1512 1513
	error : "Py_ssize_t" undeclared

	* glib/pyglib-private.h: Add backward compatibility macros for
	python 2.4.

1514 1515 1516 1517 1518 1519 1520 1521 1522 1523
	* gio/gfile.override:
	* gio/gfileenumerator.override:
	* gio/ginputstream.override:
	* gio/gio.defs:
	* gio/gio.override:
	* gio/goutputstream.override:
	* tests/test_gio.py:
	Wrap gio.File.copy, add tests and documentation.
	Rename PyGAsyncRequestNotify to PyGIONotify and reuse it.

1524 1525 1526 1527 1528
2008-07-23  Johan Dahlin  <johan@gnome.org>

	* glib/pyglib.c (_pyglib_destroy_notify):
	Rename the function too, not just the prototype!

1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539
2008-07-21  Johan Dahlin  <johan@gnome.org>

	* glib/glibmodule.c (pyglib_idle_add), (pyglib_timeout_add),
	(pyglib_timeout_add_seconds), (pyglib_io_add_watch):
	* glib/pyglib-private.h:
	* glib/pyglib.c (pyglib_destroy_notify), (_pyglib_handler_marshal):
	* glib/pyglib.h:
	* glib/pygsource.c (pyg_source_set_callback):
	Make pyglib_destroy_notify and pyglib_handler_marshal private.
	Add a few public prototypes.

1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553
2008-07-21  Johan Dahlin  <johan@gnome.org>

	* glib/glibmodule.c (pyglib_idle_add), (pyglib_timeout_add),
	(pyglib_timeout_add_seconds), (pyglib_io_add_watch),
	(pyglib_source_remove), (pyglib_child_watch_add),
	(pyglib_markup_escape_text), (pyglib_get_current_time),
	(pyglib_main_depth), (pyglib_filename_display_name),
	(pyglib_filename_display_basename), (pyglib_filename_from_utf8),
	(pyglib_get_application_name), (pyglib_set_application_name),
	(pyglib_get_prgname), (pyglib_set_prgname), (pyglib_register_api),
	(pyglib_register_error):
	Mark as static, rename from pyg_* -> pyglib_*. Fill in api struct,
	rename struct and remove function suffix.

1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591
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.

1592 1593 1594 1595 1596 1597
2008-07-21  Johan Dahlin  <johan@gnome.org>

	* configure.ac:
	Use yes/no instead of true/false. Avoid bashism.
	Fix another logic bug, and let's hope I didn't break anything

Paul Pogonyshev's avatar
Paul Pogonyshev committed
1598 1599 1600 1601 1602
2008-07-20  Paul Pogonyshev  <pogonyshev@gmx.net>

	* configure.ac (pygobject_CODEGEN_DEFINES): Fix libffi check
	logic.

1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647
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.

1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658
2008-07-20  Johan Dahlin  <johan@gnome.org>

	* glib/Makefile.am:
	* gobject/Makefile.am:
	* gobject/__init__.py:
	* gobject/gobjectmodule.c (pyg_threads_init), (pyg_error_check),
	(pyg_gerror_exception_check), (init_gobject):
	* gobject/option.py:
	Install the glib module, the helper library and the headers.
	Use it from gobject and remove the old glib specific code from there.

1659 1660 1661 1662 1663 1664
2008-07-20  Johan Dahlin  <johan@gnome.org>

	* configure.ac:
	* gobject/Makefile.am:
	Use pkg-config to check for libffi again.

1665 1666 1667 1668 1669 1670 1671 1672 1673
2008-07-20  Johan Dahlin  <johan@gnome.org>

	* glib/Makefile.am:
	* glib/glibmodule.c (pyg_main_context_default):
	* glib/pyglib.c (pyglib_gerror_exception_check):
	* glib/pyglib.h:
	Rename helper library to libpyglib-2.0.
	Move over pyg_gerror_exception_check as well.

1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704
2008-07-20  Johan Dahlin  <johan@gnome.org>

	* Makefile.am:
	* configure.ac:
	* glib/Makefile.am:
	* glib/__init__.py:
	* glib/glibmodule.c (pyg_destroy_notify), (get_handler_priority),
	(pyg_handler_marshal), (pyg_idle_add), (pyg_timeout_add),
	(pyg_timeout_add_seconds), (iowatch_marshal), (pyg_io_add_watch),
	(pyg_source_remove), (pyg_main_context_default),
	(child_watch_func), (child_watch_dnotify), (pyg_child_watch_add),
	(pyg_markup_escape_text), (pyg_get_current_time), (pyg_main_depth),
	(pyg_filename_display_name), (pyg_filename_display_basename),
	(pyg_filename_from_utf8), (pyg_get_application_name),
	(pyg_set_application_name), (pyg_get_prgname), (pyg_set_prgname),
	(pyg_register_api), (pyg_register_error),
	(pyg_register_version_tuples), (init_glib):
	* glib/pyglib-private.h:
	* glib/pyglib.c (pyglib_init), (pyglib_init_internal),
	(pyglib_gil_state_ensure), (pyglib_gil_state_release),
	(pyglib_enable_threads), (pyglib_gil_state_ensure_py23),
	(pyglib_gil_state_release_py23), (pyglib_error_check):
	* glib/pyglib.h:
	* glib/pygspawn.c (pyg_pid_close), (pyg_pid_free),
	(pyg_pid_tp_init), (pyg_pid_new), (_pyg_spawn_async_callback),
	(pyglib_spawn_async), (pyg_spawn_register_types):
	* glib/pygspawn.h:
	Add glib bindings, currently not installed or used.
	Add some internal API and move over a couple of functions
	from the gobject module. Still very much a work in progress.

1705 1706 1707 1708 1709
2008-07-19  Johan Dahlin  <johan@gnome.org>

	* gio/gio.override:
	Ignore a bunch of functions which are not relevant.

1710 1711 1712 1713 1714 1715 1716 1717 1718 1719
2008-07-19  Johan Dahlin  <johan@gnome.org>

	* gio/gfile.override:
	* gio/gio.defs:
	* gio/gio.override:
	* tests/test_gio.py:
	Bind gio.Mount.unmount, gio.File.mount_mountable,
	gio.File.unmount_mountable and gio.File.mount_enclosing_volume.
	Add documents and tests.

1720 1721
2008-07-19  Johan Dahlin  <johan@gnome.org>

1722 1723 1724
	* gio/gio.override: Set module name back to
	gio, as setting it to gio._gio breaks pydoc.

1725 1726 1727
	* gio/gio.defs:
	Use property based constructors when possible.

1728 1729 1730 1731 1732 1733 1734 1735 1736 1737
2008-07-19  Johan Dahlin  <johan@gnome.org>

	* examples/gio/directory-async.py:
	* gio/gfileenumerator.override:
	* gio/gio.defs:
	* tests/test_gio.py:
	Wrap gio.FileEnumerator.next_files_async/next_files_done.
	Update the example to use them instead of the synchronous versions,
	add documentation and tests.

1738 1739 1740 1741 1742 1743 1744
2008-07-19  Johan Dahlin  <johan@gnome.org>

	* examples/gio/directory-async.py:
	Only fetch name, saves a couple of syscalls.
	* gio/gio.override:
	Set name to gio._gio so pychecker/pydoc works.

1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755
2008-07-18  Johan Dahlin  <johan@gnome.org>

	* examples/gio/directory-async.py:
	* gio/gfile.override:
	* gio/gfileenumerator.override:
	* gio/gio.defs:
	* tests/test_gio.py:
	Wrap gio.File.enumerate_children_async, add tests, docstring
	and an example.
	Also document gio.File.enumerate while we're at it.

1756 1757 1758 1759 1760
2008-07-18  Johan Dahlin  <johan@gnome.org>

	* gio/gfile.override:
	Use %zd instead of %d since it's a Py_ssize_t and not an int.

1761 1762 1763 1764 1765
2008-07-18  Johan Dahlin  <johan@gnome.org>

	* gio/pygio-utils.h:
	define NO_IMPORT_PYGOBJECT before including pygobject.h

Johan Dahlin's avatar
Johan Dahlin committed
1766 1767 1768 1769 1770
2008-07-18  Johan Dahlin  <johan@gnome.org>

	* gio/giomodule.c (init_gio):
	Require pygobject 2.15.2

1771 1772 1773 1774
2008-07-17  Johan Dahlin  <johan@gnome.org>

	* gio/giomodule.c (init_gio):
	Add a pygio_version module attribute
1775
	(DL_EXPORT): The module is called gio._gio, not just _gio.
1776

1777 1778 1779 1780 1781
2008-07-17  Johan Dahlin  <johan@gnome.org>

	* gio/gio-types.defs:
	Rename gio.IOErrorEnum to gio.ErrorEnum

1782 1783 1784 1785 1786
2008-07-17  Johan Dahlin  <johan@gnome.org>

	* gio/giomodule.c (init_gio):
	Add gio.ERROR which maps to the G_IO_ERROR quark.

1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798
2008-07-17  Johan Dahlin  <johan@gnome.org>

	* gio/giomodule.c (init_gio):
	Use the prefix G_IO_ for stripping constants instead of just G_
	* gobject/gobjectmodule.c (pyg_constant_strip_prefix):
	Check so the fist part of name and strip_prefix are the same,
	if they don't, just strip of the part of strip_prefix which
	matches.

	This removes the initial IO_* prefix for some constants in gio.
	Eg, gio.IO_ERROR_* -> gio.ERROR_*

Johan Dahlin's avatar
Johan Dahlin committed
1799
2008-07-16  Johan Dahlin  <johan@gnome.org>
1800

Johan Dahlin's avatar
Johan Dahlin committed
1801 1802
	* configure.ac: Post release version bump

Johan Dahlin's avatar
Johan Dahlin committed
1803 1804 1805 1806 1807
=== 2.15.1 ===
2008-07-16  Johan Dahlin  <johan@gnome.org>

	* NEWS: Update

1808 1809 1810 1811 1812 1813 1814 1815
2008-07-15  Paul Pogonyshev  <pogonyshev@gmx.net>

	* codegen/pygobject-codegen-2.0.in: Rename from
	'pygtk-codegen-2.0.in'.

	* configure.ac:
	* codegen/Makefile.am: Update accordingly.

Johan Dahlin's avatar
Johan Dahlin committed
1816 1817 1818 1819
2008-07-15  Johan Dahlin  <johan@gnome.org>

	* configure.ac: Post release version bump

Johan Dahlin's avatar
Johan Dahlin committed
1820
=== 2.15.0 ===
1821 1822
2008-07-15  Johan Dahlin  <johan@gnome.org>

Johan Dahlin's avatar
Johan Dahlin committed
1823
	New version
1824

Johan Dahlin's avatar
Johan Dahlin committed
1825 1826
	* NEWS: Update

1827 1828 1829
	* tests/Makefile.am:
	Make sure we can distcheck the gio module properly

1830 1831 1832 1833 1834 1835 1836 1837
2008-07-15  Johan Dahlin  <johan@gnome.org>

	Bug 450659  h2def.py - export 'typedef struct' object definitions not
	working

	* codegen/h2def.py:
	Patch by Lauro Moura

1838 1839 1840 1841 1842 1843 1844
2008-07-14  Johan Dahlin  <johan@gnome.org>

	Bug 471559  add AM_PROG_CC_C_O to configure.ac for recent automake

	* configure.ac:
	Patch by Tim Mooney

1845 1846 1847 1848 1849 1850 1851
2008-07-14  Johan Dahlin  <johan@gnome.org>

	Bug 448173  use python-config to get python includes

	* configure.ac:
	Really close the by, patch by Matthias Klose

1852 1853 1854 1855 1856 1857 1858
2008-07-14  Johan Dahlin  <johan@gnome.org>

	Bug 378704  OptionParser.parse_args() returns unexpected results

	* gobject/option.py:
	Patch by Johannes Hlzl

1859 1860 1861 1862 1863 1864 1865
2008-07-14  Johan Dahlin  <johan@gnome.org>

	Bug 491773  autoconf failure: .m4 files cannot be found

	* Makefile.am:
	Patch by macks@netspace.org

1866 1867 1868 1869 1870 1871 1872 1873 1874
2008-07-14  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override: wrap File.load_contents_async and
	File.load_contents_finish

	* gio/gio.defs: Add docstring for the above methods.

	* tests/test_gio.py: Add a test for the above methods.

1875
2008-07-14  Johan Dahlin  <johan@gnome.org>
1876

1877 1878 1879 1880 1881
	Bug 487523  Add xslfiles variable to .pc.in files

	* pygobject-2.0-uninstalled.pc.in:
	Add xslfiles variable, patch by Damien Carbery

1882 1883 1884 1885 1886 1887
2008-07-14  Johan Dahlin  <johan@gnome.org>

	* gio/gio.defs:
	Remove g_file_input_stream_seek and g_file_output_stream_seek,
	they already implement the seekable interface.

1888
2008-07-14  Johan Dahlin  <johan@gnome.org>
1889

1890
	Bug 504337 - crash bug in gobject.Timeout and gobject.Idle
1891

1892 1893 1894 1895
	* gobject/pygsource.c:
	* tests/test_source.py:
	Fix crash in Timeout and Idle, patch by Bryan Silverthorn.

Johan Dahlin's avatar
Johan Dahlin committed
1896 1897
2008-07-14  Johan Dahlin  <johan@gnome.org>

1898
	* codegen/argtypes.py:
Johan Dahlin's avatar
Johan Dahlin committed
1899
	Map GSeekType to an int
1900

Johan Dahlin's avatar
Johan Dahlin committed
1901 1902 1903 1904 1905
	* gio/gfileinfo.override:
	* gio/ginputstream.override:
	* gio/goutputstream.override:
	Add comments for missing API

1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917
2008-07-14  Johan Dahlin  <johan@gnome.org>

	* gio/Makefile.am:
	* gio/gfile.override:
	* gio/ginputstream.override:
	* gio/gio.override:
	* gio/goutputstream.override:
	* gio/pygio-utils.c (pygio_check_cancellable):
	* gio/pygio-utils.h:
	Refactor cancellable check to a utility function, avoids
	plenty of code duplication.

1918 1919
2008-07-14  Paul Pogonyshev  <pogonyshev@gmx.net>

1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931
	* codegen/definitions.py (ReturnType): New class.
	(MethodDefBase.__init__): Make 'self.ret' a 'ReturnType' instance,
	not string.  Accept 'optional' flag.

	* codegen/argtypes.py (ArgMatcher.get_reverse_ret): Test if
	'ptype' has true 'optional' attribute and copy it to 'props' then.

	* codegen/reversewrapper.py (ReturnType.support_optional): New
	class field, False by default.
	(GObjectReturn.support_optional, GObjectReturn.write_decl)
	(GObjectReturn.write_conversion): Support optional return.

1932 1933 1934 1935 1936
	* pygobject-2.0.pc.in: Add 'codegendir' variable.
	* codegen/pygtk-codegen-2.0.in: Make 'codegendir' refer to
	PyGObject's codegen, not PyGTK's one --- the latter will be
	removed (first part of bug #542821).

1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947
2008-07-08  Murray Cumming  <murrayc@murrayc.com>

	* codegen/h2def.py: clean_func(): Strip GSEAL out, to avoid us
	thinking that there are many functions called GSEAL (merge from
	PyGTK).

2008-01-29  Olivier Crete  <tester@tester.ca>

	* codegen/h2def.py (DefsWriter.__init__): Fix copy-paste
	typos (merge from PyGTK).

1948 1949 1950 1951 1952 1953 1954 1955
2008-07-11  Gian Mario Tagliaretti  <gianmt@gnome.org>

	* gio/gfile.override: wrap File.load_contents, fix a typo.

	* gio/gio.defs: Add docstring for File.load_contents.

	* tests/test_gio.py: Add a test for the above method.

1956 1957 1958 1959 1960
2008-07-09  Juha Sahakangas  <voas0113@saunalahti.fi>

	* gobject/gobjectmodule.c (pyg_io_add_watch): Fix error message
	referencing wrong argument.

1961 1962 1963 1964 1965 1966
2008-06-29  Gustavo J. A. M. Carneiro  <gjc@gnome.org>

	* gobject/gobjectmodule.c (pyg_markup_escape_text): text_size
	should be Py_ssize_t instead of int.
	Bug 540696  gobject.markup_escape_text() causes python to segfault.

1967 1968 1969 1970 1971
2008-06-28  Johan Dahlin  <jdahlin@async.com.br>

	* docs/reference/pygobject.xml:
	Document GObject.handler_block_by_func/handler_unblock_by_func

1972 1973 1974 1975 1976 1977 1978
2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

	* gio/gio-types.defs:
	* tests/test_gio.py:
	Sort out confusion between interfaces and objects, add test.
	Fixes #538601

1979 1980 1981 1982 1983 1984
2008-06-09  Paul Pogonyshev  <pogonyshev@gmx.net>

	* gobject/pygobject.c (pygobject_copy, pygobject_deepcopy): New
	functions, unconditionally raise TypeError.
	(pygobject_methods): Hook them up. (bug #482370)

1985 1986 1987 1988
2008-05-31  Johan Dahlin  <johan@gnome.org>

    * setup.py: set FFI_LIBS to '', since this is mostly used on win32.

1989 1990 1991 1992 1993
2008-05-30  Gustavo J. A. M. Carneiro  <gjc@gnome.org>

	* gobject/gobjectmodule.c (init_gobject): Call PyType_Ready for
	PyGParamSpec_Type, and add it to the module dict.

1994 1995 1996 1997 1998
2008-05-23  Johan Dahlin  <jdahlin@async.com.br>

	* gio/gio.defs:
	Add default values for all GSeekType variables.

1999 2000 2001 2002 2003 2004
2008-05-21  Gustavo J. A. M. Carneiro  <gjc@gnome.org>

	* gobject/gobjectmodule.c (pyg_spawn_async): Accept None for the
	child_setup parameter of gobject.spawn_async().  Also check that
	it is callable.

2005 2006 2007 2008 2009 2010 2011 2012 2013 2014
2008-04-27  Paul Pogonyshev  <pogonyshev@gmx.net>

	* gobject/pygenum.c (pyg_enum_richcompare): Fix: raise warning as
	exception if asked by PyErr_Warn().

	* gobject/pygflags.c (pyg_flags_richcompare):  Don't return NULL
	after warning; more useful warning message.

	(#480424, borrowing code by Mark Doffman)

2015 2016 2017 2018
2008-04-21  Johan Dahlin  <johan@gnome.org>

	* codegen/h2def.py: Update link to defs format discussion

2019 2020
2008-04-15  Johan Dahlin  <johan@gnome.org>

2021
	* gobject/gobjectmodule.c (init_gobject): Set
2022 2023 2024
	gobject.GObject.__module__ to gobject._gobject, this
	helps pylint to check public methods of GObject subclasses

2025 2026
	* tests/Makefile.am (tests):
	* tests/test_gobject.py (TestGObjectAPI.testGObjectModule):
2027 2028 2029 2030
	Add a test for this

	(#523821, Simon Schampijer)