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
|
1999-07-19 James Henstridge <james@daa.com.au>
* gtk.py (GtkAdjustment.set_all): a wrapper for the new function.
* gtkmodule.c (_wrap_gtk_adjustment_set_all): simple wrapper for
setting values on an adjustment.
* gtk.py (GtkCList.get_column_width): a wrapper for this new function.
* gtkmodule.c (_wrap_gtk_clist_get_column_width): a function to get
the column width for a column in a clist.
* gtk.py (_filtprops): convert GtkAccelGroup and GdkImlibImage types
back to the C equivalents. This makes adding GnomeCanvasImage items
to the GnomeCanvas easier.
(GtkCTree.node_get_selectable): added wrapper function.
1999-07-18 James Henstridge <james@daa.com.au>
* gtkmodule.c (_wrap_gdk_threads_enter): don't use PyGTK_BLOCK_THREADS,
since it should only be called outside the gtk main loop. Instead
use Py_BEGIN_ALLOW_THREADS.
* examples/gl/*: new examples of use of gtkgl.
* gtkgl.py: renamed from GtkGL.py.
* gtkglmodule.c (_wrap_gtk_gl_area_new, _wrap_gtk_gl_area_share_new):
fixed small typo.
* GtkGL.py: added constants.
1999-07-15 James Henstridge <james@daa.com.au>
* configure.in, Makefile.am: added tests for gtkglarea.
* GtkGL.py: python wrapper for the GtkGLArea widget, and a few extra
functions for use with the widget.
* generate/gtkgl.defs, gtkglmodule.c: added wrapper for gtkglarea.
1999-07-14 James Henstridge <james@daa.com.au>
* gdkimlibmodule.c: modified to use the pygdkimlib.h header.
* pygdkimlib.h: new file similar to pygtk.h, but for _gdkimlib module.
* gdkimlibmodule.c: modified to use the pygtk.h header.
* gtkmodule.c: modified file to use the pygtk.h header, and set
up the _gtk._PyGtk_API object correctly.
* pygtk.h: a new file with a similar use to the arrayobject.h in
numeric python. I will convert over to using this in pygtk and
gnome-python.
1999-07-13 James Henstridge <james@daa.com.au>
* gtkmodule.c (_wrap_gdk_threads_enter): unblock threads when waiting
for the GDK lock. This allows other threads to unlock it, and should
prevent some deadlocks.
* gtkmodule.c (gtk_main_iteration, gtk_events_pending): removed code
to unlock gtk thread -- Owen fixed this properly in gtk.
1999-07-12 James Henstridge <james@daa.com.au>
* gtk.py: fixed a few bugs reported by Ville Lauriki.
* generate/gtkmenus.defs (gtk_item_factory_add_foreign): fix a typo.
* gtkmodule.c: fixed problems if gdk_atom_name returns NULL.
(_wrap_gtk_main_iteration, _wrap_gtk_events_pending): added
GDK_THREADS_LEAVE() and GDK_THREADS_ENTER() calls round these
functions. Without this, it deadlocks if threads are enabled.
* generate/gtklists.defs (GtkTreeItem): added wrapper for
treeitem->subtree attribute.
* pyglade/build.py (text_new): small fix.
1999-05-19 James Henstridge <james@daa.com.au>
* NEWS: added news about changes in this version.
* configure.in, pygtk.spec: updated version number to 0.6.1.
1999-05-13 James Henstridge <james@daa.com.au>
* gtkmodule.c (PyGtk_item_factory_cb): forgot to wrap the function
call in PyGTK_{,UN}BLOCK_THREADS -- this was causing seg faults
for people with threading built into their python.
(PyGtk_MenuPosition): similar fix.
1999-04-25 James Henstridge <james@daa.com.au>
* gtk.py (GtkWidget.get_allocation): a wrapper for the new function.
* gtkmodule.c: added a routine for getting the allocation of a widget.
1999-04-22 James Henstridge <james@daa.com.au>
* NEWS: added a summary of the new features.
* pygtk.spec: upped version number.
* configure.in: upped version number to 0.6.0. I think thread support
is a big enough feature to bump it up to 0.6.
1999-04-21 James Henstridge <james@daa.com.au>
* gtk.py (create_bitmap_from_data): added new wrapper.
* gtkmodule.c: added gdk_bitmap_create_from_data function. Also
export PyGtk_BlockThreads and PyGtk_UnblockThreads through the
_private dictionary, so they can be used from within other modules
(gnome-python in particular).
1999-04-20 James Henstridge <james@daa.com.au>
* pygtk.spec: updated package version number.
* configure.in: added a check for the python thread module. If it
is found, then also link _gtkmodule to the gthread library.
Incremented minimum GTK version to 1.2.1.
Incremented version to 0.5.13.
* gtkmodule.c: call g_thread_init if python was built with thread
support. This is required to turn thread support on inside gdk/gtk.
* gtk.py: added new functions.
(GtkList.insert_items): this function wasn't looking at the internal
GtkObject for the children to insert, so would fail.
* generate/gtkbase.defs (gtk_widget_accelerators_locked): new func.
* generate/gtkmenus.defs (gtk_item_factory_add_foreign): new func.
(gtk_menu_get_accel_group): new func.
(gtk_menu_reorder_child): new func.
(gtk_menu_shell_deselect): new func.
* gtkmodule.c (_wrap_gtk_combo_set_popdown_strings): accept any
sequence for the second argument, rather than just lists.
(_wrap_gtk_init): check the return value, and throw an exception
when a connection to the X server could not be made, rather than
exiting.
* gtk.py: got rid of some warnings when pygtk is imported when
DISPLAY is not set. Not completely necessary, but it doesn't hurt.
(GtkObject.remove_data) fixed small bug pointed out by Duncan Grisby.
1999-04-08 James Henstridge <james@daa.com.au>
* gtk.py (threads_enter,threads_leave): export these two new functions.
* gtkmodule.c: applied a modified version of Duncan Grisby's threading
patch. The changes were mainly inlining some of the code with macros
and making it so that the extra code was not added unless python
was compiled with thread support. Also added wrappers for
gdk_thread_enter and gdk_thread_leave.
* gtk.py (GtkList.{,un}select_item): fixed small bug reported by
Ben Darnell.
* gtkmodule.c: fixed some small bugs in gtk_ctree stuff. Thanks go
to Chi-Deok Hwang. Also fixed the bug in gtk_clist where I copy
and pasted from.
* gtk.py (GtkNotebook.set_tab_label_text): Small typo. Fix from
Toby D. Reeves.
1999-03-13 James Henstridge <james@daa.com.au>
* examples/testgtk/testgtk.py: Applied some fixes from Chi-Deok Hwang
to this example. Mainly clean ups needed because of me not changing
testgtk with the rest of pygtk.
1999-03-12 James Henstridge <james@daa.com.au>
* configure.in, pygtk.spec: increased version number to 0.5.12.
* gtkmodule.c: added optional support for not catching exceptions in
callbacks. This way it should be a lot easier to debug a pygtk
program with pdb.
* gtkmodule.c, gtk.py: a few fixes for problems sent in by
Chi-Deok Hwang. This includes a fix to GtkWidget.event(),
assignments to GtkStyle attributes throwing exceptions,
font loading getting reference counting correct and throwing
exceptions for bad font names and allowing None to be passed
as a colour to GnomeCanvasItem.set() (the fix is in pygtk).
* generate/gtklists.defs (gtk_ctree_new): I had missed this
function in previous releases.
1999-02-24 James Henstridge <james@daa.com.au>
* gtk.py: made changes to match those in the defs files and _gtk.
* description.py (GdkGC.set_dashes): describe new GdkGC method.
* generate/gtkcontainers.defs: removed gtk_window_set{focus,default},
since these are internal to GtkWindow. Also added
gtk_handle_box_set_handle_position and gtk_handle_box_set_snap_edge.
* gtkmodule.c: added gtk_widget_get_child_requisition.
(PyGdkGC_GetAttr): added method GdkGC.set_dashes to set the dash
pattern for this GC.
1999-02-23 James Henstridge <james@daa.com.au>
* pyglade/build.py: added some code to get the option menu creation
code working.
* pyglade/xmlparse.py: check if xmllib is included in the standard
python library, use it for the XML parser -- it is much more complete,
and doesn't barf on some valid XML files like the old one does. If
xmllib is not found, the old parser is used.
* README, Makefile.am, pygtk.spec: added references to the MAPPING
file.
* MAPPING: new file describing the mapping of GTK+ onto python as
pygtk does it.
1999-02-22 James Henstridge <james@daa.com.au>
* description.py (GdkCursor): added information about this type.
* gtk.py: commented out the __getattr__, __setattr__ and __delattr__
methods of GtkObject. There were too many things that broke because
of these changes. If I can get these to work correctly in the
future, I will consider re-enabling it, but not till then.
* examples/testgtk/testgtk.py (create_cursor_test): added a cursor
test to the python testgtk. It is adapted from the translation sent
in by Osamu Tanimoto.
* gtkmodule.c: fixed a bit of bad copy'n'paste in the GC part of the
style wrapper code. Thanks go to Osamu Tanimoto <tanimoto@rios.co.jp>.
(PyGdkCursor_GetAttr): now GdkCursor objects have a type attribute
that returns the type number for the object, and a name attribute
that gives a string representation of that type number.
1999-02-20 James Henstridge <james@daa.com.au>
* gtk.py (GtkTooltips.set_tip): made tip_private argument optional.
(GtkObject.__[gs]etattr__, GtkObject.__delattr__): added some more
fixes to this code so that it shouldn't throw exceptions as much
when it shouldn't.
* gtkmodule.c: PyGdkEvent_New wasn't interpreting GDK_BUTTON_RELEASE
events correctly. Also some fix ups for gtk_menu_popup.
* generate/gtkcontainers.defs (gtk_container_set_focus_child): allow
null child argument.
1999-02-19 James Henstridge <james@daa.com.au>
* gtk.py: added __getattr__ and __setattr__ methods to GtkObject so
that you can set data on a GtkObject directly in a persistent way
(reference counting problems prevent pygtk from always passing the
same python object to a callback). These functions ignore attributes
starting with an underscore.
Also modified all the other __getattr__ methods to call their
parent class's __getattr__ method when they fail instead of
raising an exception.
* gtk.py: some changes to make use of the new null-ok flags.
* generate/*.defs: added some null-ok tags where appropriate.
* gtkmodule.c: removed gtk_frame_new, as the null-ok change in
generate.py makes it unnecessary. Also gtk_spin_button_new_no_adj
has been removed because it is no longer necessary.
* generate/generate.py (FunctionDefsParser.define_func): altered the
code generation routines so that they recognise the (null-ok) tag in
the .defs file. This should give a lot more flexibility to the
generator, and allow me to move some of the special case code in
gtkmodule.c back to the .defs files. The null-ok tag is currently
only recognised for string, object and boxed type arguments.
* gtkmodule.c: fixes to the gtk_window_set_geometry_hints function to
throw an exception for bad aspect values. Also let it understand
integers for aspect values.
Also fixed up gtk_menu_popup so that you could give None for a few
more arguments.
1999-02-16 James Henstridge <james@daa.com.au>
* description.py: added documentation about GtkStyle changes to this
pseudo module.
* gtkmodule.c: added a new python type GtkStyleHelper that is used
by python GtkStyle objects as a sequence type that alows us to write
back to the arrays in the GtkStyle object. I have also made it
possible to update the font and (black|white){,_gc}. I also added
a GtkStyle.copy() method. This gives the user everything they need
to alter styles inside their applications. I still believe that
rc files are better, but there seem to be a lot of people who want
this functionality.
* gtkmodule.c (_wrap_gtk_window_set_geometry_hints): made changes so
apect ratios can be set to integers. Also made it throw an exception
for aspect ratios of zero, since this caused my X server to crash
a few times.
1999-02-15 James Henstridge <james@daa.com.au>
* gtk.py (GtkPaned.set_position): added function.
* generate/gtkcontainers.defs (gtk_paned_set_position): added new
function
1999-02-14 James Henstridge <james@daa.com.au>
* gtk.py: added GtkWindow.set_geometry_hints to match below addition.
* gtkmodule.c: added gtk_window_set_geometry_hints.
1999-02-08 James Henstridge <james@daa.com.au>
* description.py (GdkWindow.depth): documented presence of this
attribute.
* gtk.py (GtkFileSelection.complete): I had left out the argument in
this prototype. Fixed now.
1999-02-04 James Henstridge <james@daa.com.au>
* gtk.py (create_pixmap_from_xpm,create_pixmap_from_xpm_d): altered
these functions to use the gdk_pixmap_colormap_create variants if
the first argument is a GtkWidget or GtkStyle. This means you
don't have to realise the widget before creating pixmaps from it.
(GtkCheckMenuItem.set_state, GtkToggleButton.set_state): removed
these compatibility routines so they don't mask GtkWidget.set_state.
* gtkmodule.c: moved gtk_item_factory_get_widget here so I can catch
NULL returns and convert them to None returns. Also added the
depth attribute to GdkWindow objects.
Also added gdk_pixmap_colormap_create_* variants. These can be used
if you only have a colormap reference, rather than a window.
* GtkExtra.py: there were a couple of calls to
GtkContainer.border_width which is deprecated.
* examples/testgtk/testgtk.py: fixes to dnd code in this example. I
hadn't looked at it since Owen made the dnd changes.
* examples/simple/tooltip2.py: fixed small bug pointed out by Markus
Oberhumer.
* pyglade/build.py (clist_new): fixes to make it parse after clist
changes.
1999-02-02 James Henstridge <james@daa.com.au>
* generate/gtklists.defs, gtk.py: added GtkCList.focus_row.
* _gdkimlibmodule.c, GdkImlib.py: added push_visual and pop_visual,
that can be used to easily set GTK to use the imlib visual/colormap
combination.
* gtkmodule.c: the PyObject -> GtkArg conversion routines were not
catching some exceptions that they generated. This would cause
wierd problems if you passed the wrong argument types to signal
handlers. This was found by Chi-Deok Hwang <cdhwang@sr.hei.co.kr>
* examples/simple/dnd.py, examples/simple/dndpixmaps.py: and example
of drag and drop contributed by Chi-Deok Hwang <cdhwang@sr.hei.co.kr>
* gtkmodule.c: added gtk_ctree_get_selection, that returns nodes
rather than pointers.
* gtk.py: made changes to reflect those below. Also added
GtkWidget.get_colormap() (it was missing previously).
* generate/gtkedit.defs (gtk_spin_button_update): added function.
* generate/gtkmenus.defs (gtk_check_menu_item_set_active): function
renaming.
(gtk_menu_set_title): added function.
* generate/gtkmisc.defs (gtk_toggle_button_[sg]et_active): added
functions, and removed gtk_toggle_button_set_state.
1999-01-27 James Henstridge <james@daa.com.au>
* gtkmodule.c: fixed some typos in _wrap_gtk_ctree_get_row_data and
_wrap_gtk_ctree_base_nodes. This fix was sent to me by Jim
Robinson <robinson@ipsg.mot.com>.
1999-01-26 James Henstridge <james@daa.com.au>
* gtk.py: fixed typo in GtkProgress.configure.
1999-01-22 James Henstridge <james@daa.com.au>
* gdkimlibmodule.c: (_wrap_gdk_imlib_create_image_from_data): function
would raise an exception if there was a null in the data or alpha
arguments. Also added some sanity checks on the lengths of data
and alpha. This patch was submitted by Toby D. Reeves.
1999-01-21 James Henstridge <james@daa.com.au>
* examples/testgtk/testgtk.py (create_scrolled_windows): changed
a call to GtkContainer.add to GtkScrolledWindow.add_with_viewport.
* gtk.py (GtkPacker.add): Added defaults for the arguments.
1999-01-11 James Henstridge <james@daa.com.au>
* gtk.py (GtkProgress.get_current_percentage): fixed function call
* gtk.py (GtkScrolledWindow): changed so it inherits from GtkBin
instead of GtkContainer, to match changes in GTK.
* GDK.py (DRAG_PROTO_ROOTWIN): Added the constant.
* gtkmodule.c: forgot to include GTK_TYPE_DOUBLE in one of the GtkArg
processing routines. Also fixed a problem for events with a NULL
window.
1998-12-24 James Henstridge <james@daa.com.au>
* gdkimlibmodule.c(_wrap_gdk_imlib_get_rgb_height): I accidentally
returned rgb_width instead of rgb_height. This bug report was from
Osamu Tanimoto <tanimoto@rios.co.jp>.
1998-12-22 James Henstridge <james@daa.com.au>
* GtkExtra.py: modified the signal connect bit in the MenuFactory
code so it is a bit more sane.
1998-12-21 James Henstridge <james@daa.com.au>
* pygtk.spec: updated version here as well.
* README: updated required GTK version to 1.1.9
* configure.in: Updated version for pygtk to 0.5.9, increased
GTK version check to 1.1.9.
1998-12-20 James Henstridge <james@daa.com.au>
* gtkmodule.c, generate/gtkmisc.defs: moved gtk_preview_draw_row here
because python's string conversion routines do not like nuls in a
string, but you quite often want them in image data.
1998-12-17 James Henstridge <james@daa.com.au>
* examples/*/*.py: changed calls to GtkLabel.set to GtkLabel.set_text.
* gtk.py: made changes to reflect those below.
* generate/gtkbase.defs (gtk_widget_set_app_paintable): added this
stub.
* generate/gtkmisc.defs (gtk_label_set_text): renamed gtk_label_set to
this, added gtk_label_set_line_wrap.
* generate/gtkdnd.defs: Added gtk_drag_source_unset.
* generate/gtklists.defs: moved reordering function stubs from ctree
to clist.
* generate/gtkcontainers.defs: removed GtkDrawWindow. Added
gtk_paned_pack[12]
* GtkExtra.py (MenuFactory.create): wasn't passing extra arguments
onto signal connect. Bug fix from Sam Tannous <stannous@cisco.com>
* gtkmodule.c: Applied some fixes to the ctree code from
A.Hartgers@phys.tue.nl
1998-12-09 James Henstridge <james@daa.com.au>
* gtk.py, generate/gtkmisc.defs, GTK.py: Added
gtk_toolbar_set_space_style and the required enum.
1998-12-08 James Henstridge <james@daa.com.au>
* gtkmodule.c: fixed up the toolbar functions, so they also use
gtk_signal_connect_full, and now return the added child, like
the C functions do.
* examples/testgtk/testgtk.py: fixed up some stuff in the main
function and clist test.
* gtk.py, generate/gtkcontainers.defs: added
gtk_window_set_transient_for and gtk_window_set_default_size.
* gtkmodule.c: Changed to use _full functions instead of _interp
functions. Also made gtk_signal_connect and friends use the
gtk_signal_connect_full function rather than the default marshaller
method.
1998-12-07 James Henstridge <james@daa.com.au>
* generate/gtkcontainers.defs (gtk_viewport_new): Accept NULL
arguments for adjustments of a viewport. This is the correct
fix for Michael's other patch.
* examples/*/*.py: got rid of deprecation messages. Put scrolled
windows round all clists.
* pyglade/build.py: Fixes a bug in scrolledwindow_new pointed out
by Michael Hudson. Also made some changes so that it doesn't use
any deprecated functions.
* gtkmodule.c: fixed two typos pointed out by Michael Hudson
1998-12-05 James Henstridge <james@daa.com.au>
* gtkmodule.c, generate/*.defs, gtk.py: updated to latest CVS. This
includes the function name changes Tim Janik introduced. I have
added backward compatibility wrappers for the old functions in gtk.py,
which also print out a deprecation message.
1998-12-01 James Henstridge <james@daa.com.au>
* gtk.py (GtkLayout): I had left a few remnants from when this class
was in gnome.ui. This is now fixed.
1998-11-29 James Henstridge <james@daa.com.au>
* description.py: Added a description of the GtkCTreeNode type.
* gtk.py (GtkCTree): Added the GtkCTree class to this layer.
Hopefully I haven't made any mistakes.
1998-11-28 James Henstridge <james@daa.com.au>
* generate/gtklists.defs: added entries for GtkCTree.
* gtkmodule.c: Added the GtkCTreeNode type. It exports some of the
attributes of the GtkCTreeRow associated with the node. Specifically,
the parent, next sibling links, and a list of children. This should
be enough attributes to make the type useful.
Also added extra functions for GtkCTree.
1998-11-27 James Henstridge <james@daa.com.au>
* generate/gtk*.defs: updated for GTK+-1.1.5.
* gtkmodule.c: added the PyGtk_RegisterBoxed function, exported through
the _private dictionary. This allows adding extra boxed types so they
will be recognised in signal handlers and the like.
* gtk.py: this file used to be Gtkinter.py. People should make this
change in their programs. Also updated for changes to the API.
* Gtkinter.py: new file. Simply does a "from gtk import *", so old
programs will still run properly.
* examples/*/*.py, pyglade/*.py, GdkImlib.py, GtkExtra.py: changed
occurences of Gtkinter to gtk.
1998-11-17 James Henstridge <james@daa.com.au>
* GdkImlib.py: missed a closing parenthesis. This caused problems.
* generate/gtk.defs(gtk_rc_add_*_style): removed these functions.
They weren't exported by Gtkinter, and their declaration has changed
in newer GTK+'s. Now pygtk should compile with both GTK+-1.1.3 and
CVS GTK (tested for a 1998-11-16 checkout).
* configure.in, NEWS: bumped version up to 0.5.5, and made new release.
* generate/gtkmisc.defs, Gtkinter.py: added the GtkCalendar widget.
1998-11-15 James Henstridge <james@daa.com.au>
* gtkmodule.c: added GdkCursor type.
* gtkmodule.c(GdkWindow.set_cursor): function to set cursor for window
* generate/gtk.defs (gtk_cursor_*): new functions to create cursors
* gtkmodule.c(gtk_pixmap_create_from_xpm_d): new function to create
a GdkPixmap from a list of strings (XPM data). This allows you to
store pixmaps inline with your program for distribution.
* gdkimlibmodule.c: export the GdkImlibImageType, and a _private
dictionary that holds exported functions. I should be able to
add the GdkImlibImage dependent functions to _gnomeui now.
* GDK.py, GTK.py: updated with new constants.
* examples/simple/*1.py: stopped importing _gtkbase, and don't call
_gtk.pygtk_init().
* pyglade/build.py: added menu widgets to the interface building code.
* pygtk.spec: new file -- an RPM spec file for this package.
* NEWS: add information about this new version.
1998-11-15 James Henstridge <james@daa.com.au>
* gtkmodule.c: added GdkAtom handling. There is now a special type for
GdkAtoms that can be cast to string and int with str() and int()
respectively, and it supports coercions, so it should act like an
int in most cases. Functions that take GdkAtom's as arguments
actually take ints, so backward compatibility is kept, but functions
that return GdkAtoms now return this special type.
* gtkmodule.c, generate/gtkdnd.defs, Gtkinter.py: added the new DnD
code, and support for selections. The gtk_selection_* functions have
been mapped to GtkWidget.selection_*, and the gtk_drag_* functions
have been mapped to GtkWidget.drag_*
* GdkImlib.py: added function create_image_from_data, so you can
create an image from raw RGB data. Also added the Image.get_pixmap
method, which is like Image.make_pixmap, except it returns the
GdkPixmap,GdkBitmap pair, instead of a GtkPixmap widget.
1998-11-14 James Henstridge <james@daa.com.au>
* generate/*.defs: changes to bring pygtk up to date with GTK+-1.1.3
1998-11-13 James Henstridge <james@daa.com.au>
* gtkmodule.c: added wrappers for GdkDragContext and GtkSelectionData.
Also removed all the old DnD GdkEvent mappings, and added the
GdkEventDND mapping. This should be enough to get the new Dnd signals
working.
* generate/gtkbase.defs, gtkmodule.c(_wrap_gtk_widget_dnd_*): removed
the old gtk_widget_dnd_* functions from the bindings.
1998-11-10 James Henstridge <james@daa.com.au>
* build system: Converted over to using automake. Note thay some
modifications have been made to the original version of automake,
so you will need to apply my patches if you want to modify pygtk.
* swigsrc/*: removed. I am now using some code generation tools
that take .defs files as input.
* gdkimlibmodule.c: got rid of all the swig stuff, and cleaned up the
code a bit. This has reduced the source code size by half.
1998-11-10 James Henstridge <james@daa.com.au>
* ChangeLog: started change log. Old Changelog file has been moved
to NEWS
* NEWS: used to be Changelog
|