forked from nzjrs/pygobject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog.pre-2.18
3608 lines (2576 loc) · 112 KB
/
ChangeLog.pre-2.18
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
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
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
=== ChangeLog discontinued ===
2009-05-04 Siavash Safi <[email protected]>
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
2009-04-17 Paul Pogonyshev <[email protected]>
Bug 568499 – CellRendererPixbuf stock-size property has wrong type
* gobject/pygtype.c (pyg_enum_get_value): Also accept long
integers.
2009-04-15 Götz Waschk <[email protected]>
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.
2009-04-15 Paul Pogonyshev <[email protected]>
Bug 555613 – gio.VolumeMonitor segfaults
* gio/gvolumemonitor.override (_wrap_g_volume_monitor_tp_new): New
function, return the singleton object.
2009-04-14 James Westby <[email protected]>
Bug 573753 – DeprecationWarning under python 2.6
* codegen/definitions.py (ReturnType.__init__): Don't pass
'type_name' argument to super __init__.
2009-04-14 Krzesimir Nowak <[email protected]>
Bug 576566 – several scripts from codegen directory are not
distributed
* codegen/Makefile.am (codegen_PYTHON): List several missing
scripts.
2009-04-14 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override: (_wrap_g_file_copy_async) change argument order
to keep it consistent with the other methods.
2009-04-13 Paul Pogonyshev <[email protected]>
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.
2009-04-12 Gian Mario Tagliaretti <[email protected]>
* gio/gio.defs: (g_file_monitor) should accept None
for cancellable and set the default flag to G_FILE_MONITOR_NONE.
2009-04-09 Jonathan Matthew <[email protected]>
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.
2009-04-05 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override:
(_wrap_g_file_set_display_name_async) Wrap new GFile method.
* tests/test_gio.py: Test the above methods.
2009-04-05 Tristan Hill <[email protected]>
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.
2009-04-05 Gustavo J. A. M. Carneiro <[email protected]>
* 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.
2009-04-04 Gian Mario Tagliaretti <[email protected]>
* 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.
2009-03-31 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override:
(_wrap_g_file_query_filesystem_info_async) Fix a typo.
2009-03-31 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override:
(_wrap_g_file_query_filesystem_info_async) Wrap new GFile method.
2009-03-31 Gian Mario Tagliaretti <[email protected]>
* gio/gio.defs: Add missing g_file_query_filesystem_info_async and
g_file_query_filesystem_info_finish
2009-03-30 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override: (_wrap_g_file_mount_mountable)
Swap kwargs names to reflect the code.
2009-03-30 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override: (_wrap_g_file_mount_enclosing_volume)
Swap kwargs names to reflect the code.
2009-03-30 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override:
(_wrap_g_file_find_enclosing_mount_async) Wrap new GFile method.
2009-03-30 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override:
(_wrap_g_file_eject_mountable) Wrap new GFile method.
2009-03-30 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override: (_wrap_g_file_copy) revert previous commit.
2009-03-30 Gian Mario Tagliaretti <[email protected]>
* gio/gfile.override: (_wrap_g_file_copy) callback cannot be optional.
2009-03-29 Gian Mario Tagliaretti <[email protected]>
* gio/gvolume.override: (_wrap_g_volume_mount) should accept None
for mount_operation.
2009-03-29 Gian Mario Tagliaretti <[email protected]>
* gio/gvolume.override: Swap kwargs names to reflect the code.
2009-03-29 Tobias Mueller <[email protected]>
* 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
2009-03-29 Gian Mario Tagliaretti <[email protected]>
* gio/gio.defs: Add g_volume_should_automount
2009-03-28 Gian Mario Tagliaretti <[email protected]>
* 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
2009-03-22 Mark Lee <[email protected]>
Bug 559001 – Allow setting pytype wrapper class
initial patch by: John Ehresman <[email protected]>
* 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.
2009-03-22 Gian Mario Tagliaretti <[email protected]>
* gio/gio.defs: Add g_file_enumerator_get_container, new in 2.18
2009-03-22 Gian Mario Tagliaretti <[email protected]>
* gio/gfileenumerator.override (_wrap_g_file_enumerator_close_async)
wrap new method.
* tests/test_gio.py (TestGFileEnumerator.testCloseFilesAsync):
Test the above.
2009-03-09 Gian Mario Tagliaretti <[email protected]>
* docs/reference/Changelog: Create a dedicated Changelog for the docs
and move the latest entries in there.
2009-02-20 James Henstridge <[email protected]>
* ltihooks.py: pull in changes from pygtk (updating license header
from GPL to LGPL).
2009-02-18 Andre Klapper <[email protected]>
* gobject/pygobject.h:
Change comment to avoid false positives when grep'ing for
deprecated gtk functions
2009-02-17 Gustavo J. A. M. Carneiro <[email protected]>
* 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.
2009-02-10 Gian Mario Tagliaretti <[email protected]>
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.
2009-02-10 Gian Mario Tagliaretti <[email protected]>
* gio/gio.defs:
* gio/gio-types.defs:
* gio/unix.defs: Add 2.18 gio API.
2009-02-08 Gian Mario Tagliaretti <[email protected]>
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.
2009-02-06 Murray Cumming <[email protected]>
* codegen/h2def.py DefsWriter::write_enum_defs(): Prevent an exception
when the prefix is empty.
2009-01-29 Paul Pogonyshev <[email protected]>
Bug 569350 – Inconsistent use of tabs and spaces in pygtk.py
* pygtk.py: Replace all tabs with spaces.
2009-01-29 Paul Pogonyshev <[email protected]>
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.
2009-01-27 Daniel Elstner <[email protected]>
* 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.
2009-01-14 Paul Pogonyshev <[email protected]>
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).
2009-01-14 Paul Pogonyshev <[email protected]>
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.
2009-01-09 Gustavo J. A. M. Carneiro <[email protected]>
* gobject/gobjectmodule.c (pyg_type_register): Add a comment
explaining why the two for loops for registering interfaces.
2009-01-07 Paul Pogonyshev <[email protected]>
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.
2009-01-06 Gian Mario Tagliaretti <[email protected]>
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]
2009-01-04 Mads Chr. Olesen <[email protected]>
* 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.
2009-01-04 Przemysław Grzegorczyk <[email protected]>
Bug 563714 – GNOME Goal: Clean up GLib and GTK+ includes
* gobject/generate-constants.c:
* glib/pygspawn.c: Only include toplevel <glib.h>.
2009-01-04 Paul Pogonyshev <[email protected]>
Bug 564018 – pygobject libtool-2.2 patch
* configure.ac: Apply the patch provided by Cygwin Ports
maintainer.
2009-01-04 Paul Pogonyshev <[email protected]>
* configure.ac: Branch, bump version to 2.17.0.
=== 2.16.0 ===
2008-12-24 Paul Pogonyshev <[email protected]>
Bug 547119 – gobject.timeout_add_seconds() not found in docs
* docs/reference/pyglib-functions.xml (glib.timeout_add_seconds):
Describe.
2008-12-21 Paul Pogonyshev <[email protected]>
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().
2008-12-03 Paul Pogonyshev <[email protected]>
* glib/pyglib.c (pyglib_error_check): Test if `domain' is not-null
before using it (avoids segfaults, see bug #561826).
2008-10-31 John Finlay <[email protected]>
* 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 '** '
* codegen/Makefile.am (codegen_PYTHON): Add defsgen.py
* 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.
2008-09-12 Gian Mario Tagliaretti <[email protected]>
* gio/goutputstream.override
(g_output_stream_write_all): use gsize instead of gssize.
2008-09-10 Paul Pogonyshev <[email protected]>
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.
2008-09-09 Paul Pogonyshev <[email protected]>
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.
2008-09-09 Loïc Minier <[email protected]>
Bug 551227 – Missing AC_CONFIG_MACRO_DIR([m4])
* configure.ac: Add AC_CONFIG_MACRO_DIR.
2008-09-08 Paul Pogonyshev <[email protected]>
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.
2008-09-07 Frederic Peters <[email protected]>
* gio/gfile.override (_wrap_g_file_load_contents)
(_wrap_g_file_load_contents_finish): Fix typos breaking
compilation (bug #551212).
2008-09-07 Jonathan Matthew <[email protected]>
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.
2008-09-03 Johan Dahlin <[email protected]>
* configure.ac:
Post release version bump
=== 2.15.4 ===
2008-09-03 Johan Dahlin <[email protected]>
* NEWS: Update
2008-09-03 Loïc Minier <[email protected]>
* gobject/pygpointer.c: (pyg_register_pointer):
Fix typo (s/&type/type) introduced in r886 causing weird crashes on
x86-64; bug #550463.
2008-09-01 Gian Mario Tagliaretti <[email protected]>
* codegen/argtypes.py: add G_TYPE_CLOSURE boxed type in codegen.
2008-08-31 Johan Dahlin <[email protected]>
* configure.ac:
Post release version bump
=== 2.15.3 ===
2008-08-31 Johan Dahlin <[email protected]>
* NEWS: Update
2008-08-30 Gustavo J. A. M. Carneiro <[email protected]>
* glib/pyglib.h: * gobject/pygobject.c: Fix memory problems
reported by valgrind due to invalid tp_basicsize in
PyGPropsDescr_Type. Closes #549945.
2008-08-28 Paul Pogonyshev <[email protected]>
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.
2008-08-28 Paul Pogonyshev <[email protected]>
Bug 549351 – an unitialized variable in PyGLib
* glib/pygmainloop.c (pyg_main_loop_init): Initialize
`is_running'.
2008-08-28 Paul Pogonyshev <[email protected]>
Bug 547633 – cannot create new threads when pygtk is used
* glib/pyglib.c (_pyglib_notify_on_enabling_threads): New
function.
(pyglib_enable_threads): Invoke all callbacks added with new
_pyglib_notify_on_enabling_threads().
* gobject/gobjectmodule.c (pyg_note_threads_enabled): New
function (callback for new _pyglib_notify_on_enabling_threads()).
(PYGLIB_MODULE_START): Initialize
'pygobject_api_functions.threads_enabled' and also watch for
thread being enabled later on.
2008-08-28 Paul Pogonyshev <[email protected]>
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 <[email protected]>
Bug 547494 – gio.InputStream.read() looks broken
* 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.
2008-08-16 Paul Pogonyshev <[email protected]>
* gio/gfile.override (_wrap_g_file_enumerate_children_async): Fix
keywords getting out of sync with actual argument order.
2008-08-13 Paul Pogonyshev <[email protected]>
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.
2008-08-12 Paul Pogonyshev <[email protected]>
Bug 547484 – wrap gio.DataInputStream.read_line and ...read_until
* tests/test_gio.py (TestDataInputStream): New test case.
* gio/gio.defs (gio.DataInputStream.read_line)
(gio.DataInputStream.read_until): Document.
* gio/ginputstream.override (_wrap_g_data_input_stream_read_line)
(_wrap_g_data_input_stream_read_until): New functions.
2008-08-12 Paul Pogonyshev <[email protected]>
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.
2008-08-12 Paul Pogonyshev <[email protected]>
* gio/gio.override: Ignore `g_io_module*' and `g_io_scheduler_*'.
2008-08-11 Paul Pogonyshev <[email protected]>
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.
2008-08-11 Paul Pogonyshev <[email protected]>
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.
2008-08-11 Paul Pogonyshev <[email protected]>
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.
2008-08-10 Paul Pogonyshev <[email protected]>
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.
2008-08-10 Paul Pogonyshev <[email protected]>
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.
2008-08-10 Jonathan Matthew <[email protected]>
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.
2008-08-10 Gian Mario Tagliaretti <[email protected]>
* gio/gio.defs:
Add GFile.query_default_handler which was missing from the defs.
2008-08-10 Jonathan Matthew <[email protected]>
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.
2008-08-09 Paul Pogonyshev <[email protected]>
* tests/test_gicon.py (TestThemedIcon.test_constructor): Fix to
not use `use_default_fallbacks' property (it's new).
2008-08-09 Paul Pogonyshev <[email protected]>
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.
2008-08-09 Paul Pogonyshev <[email protected]>
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.
2008-08-09 Paul Pogonyshev <[email protected]>
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'.
2008-08-07 Jonathan Matthew <[email protected]>
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.
2008-08-06 Johan Dahlin <[email protected]>
* 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
2008-08-06 Johan Dahlin <[email protected]>
* 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.
2008-08-06 Johan Dahlin <[email protected]>
* glib/pyglib.c (pyglib_init):
return in case of error instead of trying to access the internal
types.
2008-08-06 Paul Pogonyshev <[email protected]>
* 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.
2008-08-05 Paul Pogonyshev <[email protected]>
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.
2008-08-03 Gian Mario Tagliaretti <[email protected]>
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.
2008-08-03 Paul Pogonyshev <[email protected]>
* 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).
2008-08-02 Gian Mario Tagliaretti <[email protected]>
Bug 546020 – Wrap GFile.create_async
* tests/test_gio.py:
* gio/gfile.override:
* gio/gio.defs:
Wrap GFile.create_async with docs and test
2008-08-02 Johan Dahlin <[email protected]>
* 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.
2008-08-02 Johan Dahlin <[email protected]>
* 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.
2008-08-02 Gian Mario Tagliaretti <[email protected]>
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
2008-08-02 Johan Dahlin <[email protected]>
* 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
2008-08-02 Johan Dahlin <[email protected]>
* 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.
2008-08-02 Gian Mario Tagliaretti <[email protected]>