-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog.pre-2-0
6521 lines (4498 loc) · 222 KB
/
ChangeLog.pre-2-0
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
2003-09-01 James Henstridge <[email protected]>
* configure.in: increment version number.
* NEWS: add news items.
2003-08-31 James Henstridge <[email protected]>
* gtk/gtktreeview.override (pygtk_cell_data_func_marshal): get rid
of the last argument in the cunote->data==NULL case.
PyEval_CallFunction() was ignoring it anyway. Fixes bug #121100.
2003-08-26 James Henstridge <[email protected]>
* PKG-INFO.in (Classifier): add PKG-INFO file for submission to
Python package index.
2003-08-25 John Finlay <[email protected]>
* gtk/gtktextview.override
(_wrap_gtk_text_view_set_border_window_size): Add missing break to
switch (bug #120669). Patch by Doug Quale.
* gtk/gdk.override (_wrap_gdk_pixbuf_loader_write) Allow count to
override buf_len if in range 0 to buf_len (bug #120680).
2003-08-24 James Henstridge <[email protected]>
* NEWS: add news items.
* configure.in: update version number.
* gtk/gtktreeview.override (_wrap_gtk_tree_store_new): Fix typo
found by John Finlay (bug #120517).
* gtk/gtk.defs (pack_start_defaults): mark deprecated in favour of
pack_start. Fixes bug #118715.
(pack_end_defaults): similar here.
(attach_defaults): similar here.
* gtk/libglade.override (_wrap_glade_set_custom_handler): wrap
glade_set_custom_handler in a more direct way. Implementation
based on the one in bug #119138.
(_wrap_glade_set_custom_widget_callbacks): deprecate this
function, and make it coexist better with the new one.
2003-08-15 Johan Dahlin <[email protected]>
* gtk/gtktreeview.override (_wrap_gtk_list_store_remove): Move to
autogenerated, since it need to return a GtkTreeIter.
2003-08-02 James Henstridge <[email protected]>
* gtk/gdk.override (_wrap_gdk_pixbuf__get_pixel_array): fix up
order of dimensions in pixel array (bug #118839).
* atk.override (NO_IMPORT_PYGOBJECT): define NO_IMPORT_PYGOBJECT
to get rid of multiple definitions of symbols. Patch from Naofumi
Yasufuku <[email protected]> (bug #118835).
* Makefile.am, gtk/Makefile.am (common_ldflags): switch the
-no-undefined switch back to being win32 only. In particular,
caused breakage on OS X.
2003-07-31 James Henstridge <[email protected]>
* NEWS: add some news items.
* configure.in: increment version number.
* pygobject.c (pygobject_handler_is_connected): add wrapper (from
bug #118676).
* pygtype.c (pyg_object_descr_doc_get): add a call to
PyType_Ready() to make sure the type is initialised (bug #118699).
2003-07-26 James Henstridge <[email protected]>
* gtk/gdk.override: apply Elliot Lee's threading patch. Still
need to fix the remaining threading problems.
2003-07-25 James Henstridge <[email protected]>
* gtk/gtktreeview.override
(_wrap_gtk_tree_view_get_dest_row_at_pos): add wrapper (bug #116133).
* gtk/gtk.override (ignore): ignore some gtk_rc_* functions.
2003-07-24 James Henstridge <[email protected]>
* gtk/pygtk.h (init_pygtk): same here.
* pygobject.h (init_pygobject): convert fatal errors to normal
exceptions.
* gtk/gtkglmodule.c (initgl): same here.
* gtk/libglademodule.c (initglade): same here.
* gtk/gtkmodule.c (init_gtk): same here.
* atkmodule.c (initatk): same here.
* pangomodule.c (initpango): same here.
* gobjectmodule.c (initgobject): don't cause fatal errors if an
exception on init.
* codegen/codegen.py (write_source): print an error message if it
isn't possible to import a particular name from the module.
* autogen.sh (DIE): require Automake 1.7.
* configure.in (AC_ARG_ENABLE): enable thread support by default.
2003-07-23 James Henstridge <[email protected]>
* gtk/gtk.override (_wrap_gtk_dialog_add_buttons): add
add_buttons() method (bug #109620).
2003-07-23 Ian McKellar <[email protected]>
* gtk/Makefile.am: build fix
2003-07-22 James Henstridge <[email protected]>
* codegen/scmexpr.py (parse): print a real error if we find a
string or identifier outside of a s-expression (bug #104311).
* gtk/gtktreeview.override: wrappers for tree model drag
source/dest functions from Emmanuele Bassi (bug #116133).
* gtk/gtktreeview.override (_wrap_gtk_tree_model_rows_reordered):
add wrapper (from Arjan J. Molenaar, bug #116005).
* gtk/Makefile.am: fix a bug I introduced into the makefile
yesterday, and fix dependencies for gtk.c.
2003-07-20 John Finlay <[email protected]>
* gtk/gdk.override (gdk_window_new) Wrap gdk_window_new as a
constructor for gtk.gdk.Window(). Fixes #117860.
2003-07-20 James Henstridge <[email protected]>
* gtk/Makefile.am: same here.
* Makefile.am: change *module.so to *.so. Seems to be the
preferred extension these days ...
2003-07-12 John Finlay <[email protected]>
* pango.override (_wrap_PANGO_ASCENT, _wrap_PANGO_DESCENT)
(_wrap_PANGO_LBEARING, _wrap_PANGO_RBEARING)
Add these function overrides. Fixes #116920.
* pango.defs (PIXELS, ASCENT, DESCENT, LBEARING, RBEARING)
Add defs for these. Fixes #116920.
* pangomodule.c (initpango) Add pango.SCALE constant. Fixes #116920.
* pango.override (PangoAttrIterator) Add this type and its methods.
2003-07-11 John Finlay <[email protected]>
* pango.override (pypango_attr_new) Add start and end args to specify
start_index and end_index values.
(pypango_attr_copy) Specify copying start_index and end_index.
(_wrap_pango_attr_*_new) Allow the pango.Attr* functions to optionally
specify start_index and end_index values. Fixes #116776.
* pango.override (pypango_attr_tp_getattr)
(pypango_attr_get_type) Add these to provide pango.Attribute type
information and access to attribute type specific data. Fixes #116691.
* pango.defs (pango_color_parse) Make this a constructor for
pango.Color. Fixes #116662.
* pango.override (_wrap_pango_color_parse) Add constructor wrapper.
Fixes #116662.
* gtk/gtk.defs (gtk_tree_model_sort_convert_iter_to_child_iter)
Allow sort_iter to be NULL. Fixes #113097
(gtk_tree_model_sort_convert_child_iter_to_iter)
Allow child_iter to be NULL. Fixes #113097
* gtk/gtktreeview.override
(_wrap_gtk_tree_model_sort_convert_iter_to_child_iter)
Allow the child_iter to be NULL and return the converted iter but
allow child_iter to be passed in for backward compatibility.
Fixes #113097
(_wrap_gtk_tree_model_sort_convert_child_iter_to_iter)
Allow the sort_iter to be NULL and return the converted iter but
allow sort_iter to be passed in for backward compatibility.
Fixes #113097
2003-07-03 James Henstridge <[email protected]>
* gtk/gtk.defs (GtkWindow.set_icon): allow passing None as the
icon (fixes bug #116072).
(GtkTreeViewColumn.set_widget): allow passing None for the column
header widget (fixes bug #115027).
* gobjectmodule.c (pyg_error_check): change first block threads
instead of unblocking them here. (Looks like John forgot to check
this part in).
2003-05-03 Naofumi Yasufuku <[email protected]>
Bug #110619:
* dsextras.py (InstallLib.prepare): Fixed self.prefix
initialization for win32.
(BuildExt.init_extra_compile_args, BuildExt.build_extensions)
(BuildExt.build_extension): On win32, add MinGW GCC option for
MSVC compatible struct packing (gcc2: -fnative-struct, gcc3:
-mms-bitfields).
(BuildExt.modify_compiler, BuildExt.build_extensions): On win32,
remove '-static' linker option to prevent MinGW ld from trying to
link with MSVC import libraries.
* setup.py: Changed list_files('codegen/*.py') to
list_files(os.path.join('codegen', '*.py')) for win32.
Fixed pygtk.h installation directory.
2003-07-02 James Henstridge <[email protected]>
* dsextras.py (pkgc_version_check): remove "self.", fixing bug
111002 (pointed out by Seth Nickell).
2003-07-01 John Finlay <[email protected]>
* gtk/gtk.override (_wrap_gtk_button_box_get_child_size)
(_wrap_gtk_button_box_get_child_ipadding): Add deprecation warnings.
Fixes #110663.
* gtk/gdk.override (_wrap_gdk_pixbuf_animation_get_iter)
(_wrap_gdk_pixbuf_animation_iter_advance): Add methods. Fixes #114616.
* gtk/gdk.defs (gdk_pixmap_create_from_data): Allow NULL window arg.
Fixes #114661.
* gtk/gdk.defs (gdk_rectangle_new): Add GdkRectangle constructor.
Partial fix for #114743.
* gtk/gdk.override (_wrap_gdk_rectangle_union)
(_wrap_gdk_rectangle_intersect): Add keyword args and allow 4-tuple as
rectangle spec. Fixes #114743.
* gtk/gdk.override (_wrap_gdk_window_get_frame_extents): Return a
GdkRectangle. Fixes #114817.
* gtk/gdk.override (gdk_window_get_decorations): Add method.
Fixes #114821.
* gtk/gdk.defs (gdk_window_shape_combine_mask): shape_mask can be NULL.
Fixes #114952.
* gtk/gdk.override (_wrap_gdk_window_get_toplevels)
(_wrap_gdk_list_visuals): Add functions. Fixes #115046.
* gtk/gtktextview.override (_wrap_gtk_text_buffer_set_text)
(_wrap_gtk_text_buffer_insert)
(_wrap_gtk_text_buffer_insert_at_cursor)
(_wrap_gtk_text_buffer_insert_interactive)
(_wrap_gtk_text_buffer_insert_interactive_at_cursor):
Raise a ValueError exception if specified length greater than text
length. Fixes #115154.
* gtk/gtk.override (_wrap_gtk_accelerator_parse): Add function.
Fixes #115191.
* gtk/gtk.override (_wrap_gtk_accel_map_lookup_entry): Add function.
Fixes #115194.
* gtk/gtk.override (_wrap_gtk_accel_map_load_fd)
(_wrap_gtk_accel_map_save_fd): Allow fd arg to be a Python file object.
Fixes #115198.
* gtk/gtk.override (_wrap_gtk_color_selection_palette_from_string)
(_wrap_gtk_color_selection_palette_to_string): Add first and fix
second. Fixes #115206.
* gtk/gdk.defs (keyboard_ungrab) (rgb_get_colormap) (rgb_get_cmap):
Add first two defs and add deprecation to last def. Fixes #115502.
2003-06-30 John Finlay <[email protected]>
* gobjectmodule.c (pyg_error_check) Replace first pyg_unblock_threads
with pyg_block_threads. Fixes #116284.
2003-06-30 James Henstridge <[email protected]>
* gtk/pygtkcellrenderer.c: same here.
* gtk/pygtktreemodel.c: don't explicitly import pygobject.h, so
that it gets included correctly by pygtk-private.h. This should
fix the Mac OS X build issues.
2003-06-27 John Finlay <[email protected]>
* gtk/gdk.defs (gdk_draw_layout_with_colors): Add deprecation warning.
Fixes 113954.
* gtk/gdk.defs (pixmap_new): Fix typo. Fixes #114659.
* gtk/gdk.override (_wrap_gdk_draw_layout): Add optional args
background and foreground (GdkColor) default to NULL. Fixes 113954.
2003-06-26 James Henstridge <[email protected]>
* (lots of stuff): add copyright notices, and update to LGPL 2.1.
2003-06-23 Gustavo J. A. M. Carneiro <[email protected]>
* codegen/defsparser.py (DefsParser.ifdef): for some reason, the
list of arguments received now includes an extra empty string at
the beginning, so I corrected the indexes.
2003-06-18 James Henstridge <[email protected]>
* gtk/gdk.override (_wrap_gdk_drawable__get_handle): fix bug
114619 (the #define we were using was private).
2003-06-12 Joe Shaw <[email protected]>
* gtk/gdk.override (_wrap_gdk_pixbuf_loader_write): Fix an invalid
python format string.
2003-06-06 Johan Dahlin <[email protected]>
* gobjectmodule.c (get_handler_priority): Fix bogus strcmp. Thanks to
John Ehresman for spotting this. Fixes #110489
2003-06-05 Johan Dahlin <[email protected]>
* gtk/gdk.override (_wrap_gdk_colormap_alloc_color): Allow
allocating a color using an unallocated gdk.Color. Patch by John
Finlay, fixes #113858
* gtk/gtk.defs (iter_children): Allow null for parent. Fixes #113577
* gtk/libglade.defs (set_custom_widget_callbacks): Added
* gtk/libglade.override (_wrap_glade_set_custom_widget_callbacks)
(_wrap_glade_set_custom_widget_callbacks): Impl. Patch by Ross
Burton. Fixes #113271
* gtk/gdk.override (_wrap_gdk_pixbuf_loader_write): Make last
argument optional.
(_wrap_gdk_pixbuf_loader_new_with_type): Make first argument
optional, so we can open without specifying a type. Fixes #114206.
(_wrap_gdk_gc_set_values, _wrap_gdk_gc_set_values): Impl. Patch by
John Finlay, fixes #114449
* gtk/gdk-types.defs (Drawable): Add xid and handle attributes.
* gtk/gdk.override (_wrap_gdk_drawable__get_xid)
(_wrap_gdk_drawable__get_xid): Implement for X11 and win32. Patch
by [email protected], fixes #109105
* gtk/gtk.override (_wrap_gtk_adjustment_set_all): Undeprecate,
add keywords. Based upon patch by [email protected], fixes #105220
* gtk/gtk-extrafuncs.defs (set_all): Undeprecate.
* gtk/gtk*.override: New files, splitted out from gtk.override
Fixes #103613
* gtk/Makefile.am (EXTRA_DIST): Add *.override here
* codegen/override.py (Overrides.__parse_override): Added
"include" keyword, to be able to include files in override files.
Fixes #103611
2003-06-02 James Henstridge <[email protected]>
* gtk/gdk.override (_wrap_gdk_property_change): use short and long
instead of gint16 and gint32, so we don't break on 64 bit
platforms (Xlib uses those types, even though they don't match the
sizes).
If format==32 test if the type is ATOM or ATOM_PAIR, and if so
marshal the data into a (GdkAtom *) array instead of (long *).
Based on patch in bug 113860.
(_wrap_gdk_property_get): make similar changes to property_get.
(_wrap_gdk_property_get): the returned length is the length in
bytes, not number of elements.
2003-05-30 Johan Dahlin <[email protected]>
* gtk/gtk.defs (set_transient_for, set_default, set_focus): Accept
None as argument. Patch by John Finlay, fixes #113675
* gtk/gtk.override (_wrap_gtk_window_get_frame_dimensions):
Impl. Patch by John Finlay, fixes #113568
(_wrap_gtk_widget_get_size_request): Impl. Patch by John Finlay,
fixes #113572
(_wrap_gtk_window_set_icon_list, _wrap_gtk_window_get_icon_list)
(_wrap_gtk_window_set_default_icon_list)
(_wrap_gtk_window_get_default_icon_list): Impl. Patch by John
Finlay, fixes # 113576
(pygtk_container_for_common_marshal, pygtk_container_for_common)
(_wrap_gtk_label_get): Implement, share code with
GtkContainer.foreach, patch by Rui Lopes, fixes #113597
* gtk/gtk.defs (convert_path_to_child_path): Rename first argument
to sorted_path. Thanks to John Finlay, fixes #113102
* gtk/gtk.override (_wrap_gtk_text_tag_table_add): Raise
ValueError if the tag exists. Patch by
John Finlay, fixes #112796
(_wrap_gtk_text_view_set_border_window_size): Raise exceptions if
size is under 0 or a wrong type is specified. Patch by John
Finlay, fixes #112880
(_wrap_gtk_text_tag_table_remove): Raise ValueError if the tag
doesn't exist. Patch by John Finlay, fixes #112797
(_wrap_gtk_tooltips_data_get): Impl. Patch by John Finlay, fixes
#112952
* gtk/gdk.defs (set_icon_stock): Fix typo. Thanks to John
Finlay. fixes #113928
* gtk/gdk.override (_wrap_gdk_devices_list): Impl. Patch by John
Finlay, fixes #113919
* gtk/gtk.override (_wrap_gtk_text_buffer_set_text)
(_wrap_gtk_text_buffer_insert)
(_wrap_gtk_text_buffer_insert_at_cursor)
(_wrap_gtk_text_buffer_insert_interactive)
(_wrap_gtk_text_buffer_insert_interactive_at_cursor):
* gtk/gdk.defs (gc_new):
* gtk/gdk.override (_wrap_gdk_gc_new2): Backwards compatibility,
based on patch by Jonathan Blandford, fixes #113861
2003-05-28 Johan Dahlin <[email protected]>
* codegen/defsparser.py (DefsParser.__init__): Make the third
argument optional. This broke distutils.
* gobjectmodule.c, pygtype.c, gtk/gtk.override,
gtk/pygtkcellrenderer.c, pygtktreemodel.c: Remove unnecessary
calls to PyErr_Clear. It's not needed right after a
PyErr_Print. Thanks to Rui Lopes for spotting this.
2003-05-28 James Henstridge <[email protected]>
* codegen/defsparser.py (IncludeParser.include): simplify.
* codegen/scmexpr.py (parse): set up so that it takes a filename
as an argument. Also keep track of line numbers, so that more
useful error messages can be provided.
2003-05-26 Gustavo J. A. M. Carneiro <[email protected]>
* codegen/codegen.py (main): Parse -Dkey[=val] options.
* codegen/defsparser.py (DefsParser.__init__): Receive an
aditional 'defines' parameter, with a dictionary of all
-Dkey[=val] command-line options.
(DefsParser.ifdef): Handle (ifdef 'FOO ... )
2003-05-26 James Henstridge <[email protected]>
* codegen/scmexpr.py (parse): convert to a generator to allow
incremental parsing of defs files.
2003-05-23 Gustavo J. A. M. Carneiro <[email protected]>
* codegen/defsparser.py (IncludeParser.include): Made
pygtk-codegen able to read from stdin, by specifying a single dash
(-) as file name.
2003-05-07 Johan Dahlin <[email protected]>
* gtk/gtk.override (_wrap_gtk_radio_button_set_group,
_wrap_gtk_radio_button_set_group): Implement. Patch by John
Finlay, fixes #112054 and #112058.
(_wrap_gtk_ruler_get_range): Return a tuple of integers, not
doubles. Patch by John Finlay, fixes #111716.
(_wrap_gtk_image_get_pixmap, _wrap_gtk_image_get_image)
(_wrap_gtk_image_get_stock, _wrap_gtk_image_get)
(_wrap_gtk_image_get_pixbuf, _wrap_gtk_image_get_animation):
Implement. Patch by John Finlay, fixes #111400.
(_wrap_gtk_scrolled_window_get_policy): Implement. Patch by John
Finlay, fixes #112247.
(_wrap_gtk_text_buffer_get_iter_at_child_anchor): Implement, Patch
by John Finlay, fixes #112524.
* gtk/gtk.defs (GtkImage.render_icon, set_image,
GtkStyle.render_icon): Allow None to be sent in. Patch by John
Finlay, fixes #111389 and #111416.
2003-04-29 Johan Dahlin <[email protected]>
* gtk/Makefile.am (pygtk_PYTHON): Install dsextras.
2003-04-27 Johan Dahlin <[email protected]>
* setup.py (py_modules): Install dsextras.py
2003-04-12 Naofumi Yasufuku <[email protected]>
* pango.defs (pango_context_get_metrics): Allow language parameter
to be omitted to get the metrics for the entire font.
(pango_itemize): Allow cached_iter parameter to be omitted.
(pango_font_description_better_match): Allow old_match parameter
to be omitted to determine if new_match is a match at all.
(pango_font_get_metrics): Allow language parameter to be omitted
to get the metrics for the entire font.
(pango_layout_set_font_description): Allow 'None' desc parameter
to unset the current font description.
(pango_layout_set_tabs): Allow 'None' tabs parameter to reinstate
the default tabs.
(pango_language_matches): Changed to function. Allow 'None'
language parameter which matches nothing but '*'.
Fixes #109848
2003-03-24 James Henstridge <[email protected]>
* pygobject-private.h: add missing "extern" keyword (from Glyph's
patch).
2003-03-23 James Henstridge <[email protected]>
* setup.py: increment version number.
* NEWS: add news items.
* configure.in (numpy check): fix up check for Numeric and
increment version number.
2003-03-21 Johan Dahlin <[email protected]>
* gtk/gtk.override (_wrap_gtk_tree_store_new):
(_wrap_gtk_list_store_new): This two are constructors, not normal
function, therefor return -1 as error and 0 as success.
Also a big tab/trailing whitespace cleanup. (so the patch is a lot
larger than it should be)
2003-03-19 Johan Dahlin <[email protected]>
* gtk/gdk.defs (get_option): Added.
2003-03-13 James Henstridge <[email protected]>
* gobjectmodule.c: add doc comments.
* pygobject.c: add doc comments.
* pygboxed.c: add doc comments.
2003-03-12 James Henstridge <[email protected]>
* pygtype.c: add some documentation.
2003-03-11 James Henstridge <[email protected]>
* gtk/gdk.defs (set_back_pixmap): allow passing None for the
pixmap argument.
* gtk/gtk.override (_wrap_gtk_main_iteration): return boolean
(either Py_True or Py_False).
(_wrap_gtk_main_iteration_do): same here.
(_wrap_gtk_im_context_filter_keypress): and here.
(_wrap_gtk_text_attributes__get_strikethrough): and here.
(_wrap_gtk_text_attributes__get_draw_bg): and here.
* gtk/gtk.override (_wrap_gtk_tree_model_tp_setitem): add a
setitem routine for GtkTreeStore and GtkListStore.
(_wrap_gtk_list_store_insert): add second argument to allow
setting the values in the row when creating it.
(_wrap_gtk_list_store_insert_before): same here.
(_wrap_gtk_list_store_insert_after): and here.
(_wrap_gtk_list_store_prepend): and here.
(_wrap_gtk_list_store_append): and here.
(_wrap_gtk_tree_store_insert): and here.
(_wrap_gtk_tree_store_insert_before): and here.
(_wrap_gtk_tree_store_insert_after): and here.
(_wrap_gtk_tree_store_prepend): and here.
(_wrap_gtk_tree_store_append): and here.
* gtk/pygtk-private.h (_pygtk_tree_model_set_row): add prototype.
* gtk/gtk-types.c (pygtk_tree_path_from_pyobject): support
converting a path string to a GtkTreePath.
(_pygtk_tree_model_set_row): new helper function to set a row from
a sequence.
2003-03-08 Johan Dahlin <[email protected]>
* gtk/gdk.defs (gdk_color_new): New placeholder function
(gc_new): Set as constructor for GdkGC
* gtk/gdk.override (_wrap_gdk_color_tp_setattr)
(_wrap_gdk_color_new): Impl
2003-03-06 James Henstridge <[email protected]>
* pygobject.c (pygobject_register_wrapper): the GObject should own
a ref to the wrapper.
(pygobject_new): get rid of the hasref code, and make sure that
the GObject owns a ref to the wrapper if we create it.
(pygobject_dealloc): get rid of the hasref code. If we get this
far, the wrapper is dead.
(pygobject_traverse): if the GObject's refcount == 1, then
traverse to self.
(pygobject_clear): clear self->obj and self->inst_dict.
(pygobject_register_class): set tp_clear() so that things actually
work. Without this, there was no tp_clear method for subclasses
of GObject.
* pygobject.h: remove hasref member, hopefully not needed if
relying on cycle GC.
2003-03-07 Johan Dahlin <[email protected]>
* gtk/gtk.defs (gtk_label_new_with_mnemonic, gtk_label_new)
(render_icon): Allow some parameters to be NULL.
* gtk/gtk.override (_wrap_gtk_stock_lookup)
(_wrap_gtk_stock_list_ids)
(_wrap_gtk_tree_view_insert_column_with_data_func): Impl.
(ignore-glob): Remove gtk_accelerator_*
* examples/pygtk-demo/demos/stock_browser.py: Ported from C
2003-03-04 Jon Trowbridge <[email protected]>
* gtk/gtkmodule.c (python_do_pending_calls): Block threads while
we make our Py* calls. This prevents a 'no current thread' error
if you try to kill a program by typing ctrl-c in the console it
was launched from.
* pygobject.c (pygobject_dealloc): Unblock threads before
invalidating our closures, since this might trigger a destructor
that needs to execute python code.
(pygobject_clear): Ditto.
* pygboxed.c (pyg_boxed_dealloc): Unblock threads before freeing
the boxed type, since the destructor may need to execute python
code.
(pyg_boxed_new): Block threads while we make our Py* calls.
(pyg_pointer_new): Block threads while we make our Py* calls.
* gobjectmodule.c (pyg_object_set_property): We need to block
threads before our call to pygobject_new.
(pyg_object_get_property): Ditto.
2003-03-02 Johan Dahlin <[email protected]>
* gobjectmodule.c (pyg_io_add_watch): Fix function name in exception.
2003-02-27 Johan Dahlin <[email protected]>
* dsextras.py (getstatusoutput): Small typo.
* setup.py: Cut the doclines, to make the windows installer happy
2003-02-26 Johan Dahlin <[email protected]>
* gtk/gdk.defs (invalidate_rect): Null is okay here.
Fixes #106295 (John Finlay).
* gtk/gdk.override (_wrap_gdk_pixbuf_new_from_xpm_data):
Impl. Fixes #106292 (John Finlay)
* pango.override (_wrap_pango_layout_set_text): Impl. Fixes
#106280 (John Finlay)
* gtk/gtk.override: Added get implements for all TextAttribute
fields. Fixes #106279 (John Finlay).
* gtk/gtk-types.defs (TextAttributes): Added fields.
* setup.py, dsextras.py: Added win32 support and some
rearrangements. Largely based upon patch by Cedric Gustin.
* gtk/gdk.defs (pointer_grab, pointer_ungrab, keyboard_grab)
(pointer_is_grabbed): Add.
* gtk/gdk.defs: Add GDK_CURRENT_TIME as default value to all
functions that require a time argument
2003-02-24 Gustavo J. A. M. Carneiro <[email protected]>
* gtk/libglade.override (_wrap_glade_bindtextdomain): Raise
exception if bindtextdomain() returns NULL.
* gtk/libglade.defs (textdomain): Wrap the textdomain() function.
2003-02-14 James Henstridge <[email protected]>
* configure.in (export_dynamic): add guard around the
export_dynamic flag from GTK_LIBS. (fixes bug 105728).
=== PyGTK 1.99.15 ===
2003-02-08 Johan Dahlin <[email protected]>
* configure.in, setup.py: Upped version number
* pygtk-2.0.pc.in (codegendir): Added.
* setup.py: Added Numeric and gtkgl support (gtkgl untested).
* dsextras.py: Updated.
* gtk/libglade.override (connect_many): Add PyErr_Clear()
here. Since PyMapping_GetItemString will raise an AttributeError
if the handler can't be found.
2003-01-31 James Henstridge <[email protected]>
* gtk/gdk.override (_wrap_gdk_draw_rgb_image): add implementation.
(_wrap_gdk_draw_rgb_32_image): add implementation.
(_wrap_gdk_draw_gray_image): add
(_wrap_gdk_draw_rgb_image, _wrap_gdk_draw_rgb_32_image): add xdith
and ydith optional arguments, providing the functionality of the
_dithalign variants.
2003-01-30 Jon Trowbridge <[email protected]>
* gtk/gdk.override: Only call import_array if we HAVE_NUMPY.
2003-01-30 James Henstridge <[email protected]>
* gtk/gdk.override (_wrap_gdk_pixbuf__get_pixel_array): add
wrapper that returns a NumPy array.
* gtk/gdk-types.defs (Pixbuf): add a "pixel_array" member to
pixbuf object.
* configure.in (enable_numpy): get rid of code detecting which
directory Numeric's arrayobject.h header is in. No point in
supporting ancient versions ...
2003-01-30 Gustavo J. A. M. Carneiro <[email protected]>
* gtk/gtk-types.defs (Layout): Wrap bin_window.
2003-01-24 Johan Dahlin <[email protected]>
* dsextras.py (InstallLib.add_template_option): Fix template bustage.
* gtk/gtk.defs (set_from_image, set_from_file, set_from_pixbuf):
Allow NULL here too. This definitly fixes #103559
2003-01-23 Johan Dahlin <[email protected]>
* gtk/gtkmodule.c (init_gtk): Added a timeout that calls
python_do_pending_calls every 100 ms.
(python_do_pending_calls): Call PyErr_CheckSignals, so Ctrl-C
works as expected inside of gtk_main(). Fixes #72333
2003-01-21 Johan Dahlin <[email protected]>
* dsextras.py (Template.generate): Import codegen here instead,
needs to be fixed in the future though.
* Makefile.am (EXTRA_DIST): Added dsextras.py
* gobjectmodule.c: Add GMainContext bindings and complete the
GMainLoop bindings. Fixes #102362.
* dsextras.py: Splitted out from setup.py. It should be reusable
for gnome-python and other extensions that uses pygtk.
Fixes #103615
* gtk/gtk.override (quit_handler_marshal): Added to here, was
generated before. This version handle threads better. Patch from
John Finlay, Fixes #103851.
2003-01-20 Johan Dahlin <[email protected]>
* gtk/gdk.override (_wrap_gdk_event_tp_getattr): Added correct
__members__ to all different kind of GdkEvent's. This fixes the
dir() output, also reported as #103979
2003-01-19 Johan Dahlin <[email protected]>
* pygtk.py (_get_available_versions): Check if a directory is
empty before adding it to the path. Also added a few comments.
Fixes #103876 (Ross Burton).
2003-01-18 Johan Dahlin <[email protected]>
* gtk/gtk.defs (drag_source_set_icon, set_from_pixmap): Null is
okay here. Fixes #103559 (John Finlay)
* gtk/gtk.defs (begins_tag, ends_tag, toggles_tag): Add default
values. Fixes #103443 (John Finlay)
* gtk/gdk.defs (bitmap_create_from_data): Change data parameter
from const-gchar to const-guchar. Fixes #103616 (Eddie Kohler)
* setup.py: use os.path.join in a few more places
* pygobject-private.h: Add PyGMainLoop struct and type
* gobjectmodule.c (_wrap_g_main_loop_new, _wrap_g_main_loop_quit)
(_wrap_g_main_loop_is_running, _wrap_g_main_loop_run): Added
GMainLoop wrapper.
(initgobject): Register wrapper in gobject.MainLoop
* setup.py: Check for the python version
(Template.generate): Use codegen directly instead of os.system()
2003-01-17 Jon Trowbridge <[email protected]>
* pygobject.c (pygobject_dealloc): In my fix for bug #102756 on
2003-01-08, I should have used calls to pyg_unblock_threads()/
pyg_block_threads() instead of directly calling the
Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS macros. The macros
don't update our local thread lock counts, causing problems in
cases where the finalization of one object triggers the
finalization of another. (When I say "problems", I of course mean
"horrible crashes".)
* gtk/gtk-types.c (pygtk_style_helper_dealloc,
pygtk_style_helper_setitem, pygtk_tree_model_row_dealloc,
pygtk_tree_model_row_iter_dealloc): See above.
2003-01-16 Johan Dahlin <[email protected]>
* gtk/libglade.override (connect_many) Use PyObject_GetAttrString
as a fallback. Remove warning.
(_wrap_glade_xml_signal_autoconnect): Don't limit to PyDict_Type.
2002-01-09 Joe Shaw <[email protected]>
* gtk/gtk.override (_wrap_gtk_icon_size_lookup): Wrap. The width
and height are returned as a tuple.
2003-01-09 Joe Shaw <[email protected]>
* gtk/gtk.override (_wrap_gtk_file_selection_get_selections):
Added. Wraps the gtk_file_selection_get_selections() call which
has a gchar ** return type, so it wasn't being wrapped.
2003-01-08 Johan Dahlin <[email protected]>
* setup.py: Make building with threading work (again).
2003-01-08 Jon Trowbridge <[email protected]>
* pygobject.c (pygobject_dealloc): Wrap
Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS around the call to
g_object_unref. We need to do this because the object finalizers
might trigger other code that has to acquire the interpreter lock,
causing a deadlock. Fixes #102756.
* gtk/gtk-types.c (pygtk_style_helper_dealloc): Wrap the call to
g_object_unref in Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS.
This should let us avoid other instances of bug #102756.
(pygtk_style_helper_setitem): Ditto.
(pygtk_tree_model_row_dealloc): Ditto.
(pygtk_tree_model_row_iter_dealloc): Ditto.
* gtk/gdk.override (pygdk_unblock_threads, pygdk_unblock_threads):
Restored David I Lehn's patch (#98380). His patch was fine ---
it just caused bug #102756 to emerge.
2003-01-07 Johan Dahlin <[email protected]>
* pygtk.py (_get_available_versions): Rewrite using glob.glob,
with python2.2 glob uses fnmatch.filter with is an optimized
version of what we did before. _get_available_versions is now
roughly 5 times faster.
* gtk/gdk.override (pygdk_block_threads, pygdk_unblock_threads):
Reverted patch from David I Lehn (#98380) since it caused troubles
for other people.
* gtk/gtk.defs (gtk_text_tag_new): Add default paramter.
* pangomodule.c (initpango): Added SCALE_* constants, patch by
John Finlay, fixes #102731.
* gtk/gtk.override (_wrap_gtk_text_buffer_create_tag): Modify to
accept keyword parameters, largely based upon patch by John
Finlay, fixes #102628
* gtk/gtk.defs (GtkTextBuffer.get_slice): default last parameter
to TRUE. #102607
(GtkTextBuffer.get_text): ditto. #102607
(GtkTextBuffer.create_mark): Default last param. to FALSE. #102627
* setup.py, MANIFEST.in: Added distutils support
* Makefile.am (EXTRA_DIST): Added setup.py and MANIFEST.in here.
* .cvsignore: Add build/dist/MANIFEST here
2003-01-06 Jon Trowbridge <[email protected]>
* gtk/pygtktreemodel.c (pygtk_generic_tree_model_get_path):
pyg_unblock_threads was being called twice.
2003-01-05 Johan Dahlin <[email protected]>
* gtk/libglade.override: protect config.h by an ifdef.
2003-01-01 Johan Dahlin <[email protected]>
* gtk/gtk.override (_wrap_gtk_text_buffer_insert_at_cursor)
(_wrap_gtk_text_buffer_insert_at_cursor)
(_wrap_gtk_text_buffer_insert_interactive)
(_wrap_gtk_text_buffer_insert_interactive_at_cursor): Wrap, so you
don't have to specify the length of the string. For
consistency. (It's not slower since Python does always store the
length inside the PyStringObject struct). Patch (mostly) by
John Finlay, fixes #102186.
(_wrap_gtk_text_buffer_get_selection_bounds): Remove unused
keyword argument and not up-to-date comment.
* gtk/gtk.defs (GtkTreeView.scroll_to_cell): Add default values.
* gtk/gtk.override (_wrap_gtk_tree_selection_get_selected): Check
the mode before calling gtk_tree_selection_get_selected, this
avoids an abort() in gtk+.
* pygtk.py: Updated to fix #102180, so .require() can be called
twice and won't do anything the second time (eg, not raise an
error) based upon patch by [email protected]
2002-12-29 Johan Dahlin <[email protected]>
* gtk/gtk.defs (set_cursor): Set default parameters.
2002-12-28 Johan Dahlin <[email protected]>
* gobjectmodule.c, gtk/gtk.override, gtk/pygtkcellrenderer.c,
gtk/pygtktreemodel: Improve threading support by adding
pyg_thread_block/unblock around all PyObject_Call* and
g_object_refs.
Based upon patch by Jon Trowbridge. Fixes #99102.
* gtk/gdk-types.defs (ColorSpace): Add.
* gtk/gdk.defs (GdkRectangle.intersect, GdkRectangle.union,
gdk.atom_intern): Add
* gtk/gdk.override (_wrap_gdk_rectangle_intersect): Impl.
(_wrap_gdk_rectangle_union): Impl. (doesn't follow the GDK api to
100%, but this is much nicer from a python point of view)
2002-12-28 Jeremy Katz <[email protected]>
* codegen/codegen.py
(GObjectWrapper.get_initial_constructor_substdict):
GtkInvisible is a toplevel like GtkWindow and needs to be handled
similarly for reference counting.
2002-12-28 Johan Dahlin <[email protected]>
* gtk/gtk.defs: Added -1 as default to second parameter, patch by
John Finlay, fixes #102083.
2002-12-28 James Henstridge <[email protected]>
* gtk/gtk.override (_wrap_gtk_text_buffer_set_text): get rid of
len argument all together. The first argument knows its length.
2002-12-27 James Henstridge <[email protected]>
* NEWS: add news items.
* gtk/__init__.py: if True and False constants don't exist in
__builtins__, add them. This way I can rely on them existing.
Define gtk.TRUE and gtk.FALSE to True and False.
(input_add_full): add extra compatibility name.
* configure.in: increment version number.
2002-12-26 James Henstridge <[email protected]>
* gtk/pygtktreemodel.c (pygtk_generic_tree_model_get_path): this
should have been calling on_get_path(), rather than
on_get_tree_path().
2002-12-25 James Henstridge <[email protected]>
* gtk/gtk.defs (GtkStyle.copy): caller owns return.
(GtkRcStyle.copy): same.
(GtkIconSet.copy): same.
(GtkIconSource.copy): same.
(GtkSelectionData.copy): same.
(GtkStockItem.copy): same.
(GtkBorder.copy): same.
(GtkTextIter.copy): same.
(GtkTextAttributes.copy): same.
(GtkTreePath.copy): same.
(GtkTreeIter.copy): same.
(GtkRequisition.copy): same.
* gtk/gtk.override (_wrap_gtk_layout_get_size): don't return NULL
if user asks to register zero stock items.