This repository was archived by the owner on Aug 13, 2019. It is now read-only.
Commit 8c0ac93
gtk.ImageNewFromPixbuf and gdk gdk.PixbufNew binding
Fix provided by jrick: gdk.Pixbuf.GetPixels() now uses the reflect
package to return a non-copied slice of Pixbuf data
Implemented gtk.GetPixbuf binding for GtkImage objects
Added reference and runtime finalizer to Pixbuf in
gdk.Pixbuf.GetPixels() to avoid having the returned byte slice point
to freed memory.1 parent 1096e07 commit 8c0ac93
2 files changed
+49
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
553 | | - | |
| 554 | + | |
554 | 555 | | |
555 | 556 | | |
556 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
557 | 567 | | |
558 | 568 | | |
559 | 569 | | |
| |||
592 | 602 | | |
593 | 603 | | |
594 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
595 | 619 | | |
596 | 620 | | |
597 | 621 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3942 | 3942 | | |
3943 | 3943 | | |
3944 | 3944 | | |
3945 | | - | |
3946 | | - | |
3947 | | - | |
| 3945 | + | |
| 3946 | + | |
| 3947 | + | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
3948 | 3957 | | |
3949 | | - | |
3950 | 3958 | | |
3951 | 3959 | | |
3952 | 3960 | | |
| |||
4044 | 4052 | | |
4045 | 4053 | | |
4046 | 4054 | | |
4047 | | - | |
4048 | | - | |
4049 | | - | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
| 4065 | + | |
4050 | 4066 | | |
4051 | | - | |
4052 | 4067 | | |
4053 | 4068 | | |
4054 | 4069 | | |
| |||
0 commit comments