1 | |
1 | |
2 | Gtk2 |
2 | Gtk2 |
3 | * xs/GtkAdjustment.xs: add accors/mutators for struct values. |
3 | * xs/GtkAdjustment.xs: add accors/mutators for struct values. |
|
|
4 | * xs/GtkTextTag.xs: add GtkTextTagTable + some methods. |
|
|
5 | * gtk-demo/textview.pl: fix demo to actually use unicode |
|
|
6 | as opposed to the garbled latin1. |
4 | |
7 | |
5 | Glib |
8 | Glib |
6 | * gperl.h: make it compile even on non-threaded perls (where aTHX is empty). |
9 | * gperl.h: make it compile even on non-threaded perls (where aTHX is empty). |
7 | |
10 | |
8 | Index: Glib/gperl.h |
11 | Index: Gtk2/ChangeLog |
9 | =================================================================== |
12 | =================================================================== |
10 | RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/gperl.h,v |
13 | RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/ChangeLog,v |
11 | retrieving revision 1.4 |
14 | retrieving revision 1.13 |
12 | diff -u -p -r1.4 gperl.h |
15 | diff -u -p -r1.13 ChangeLog |
13 | --- Glib/gperl.h 31 May 2003 04:00:45 -0000 1.4 |
16 | --- Gtk2/ChangeLog 2 Jun 2003 22:14:01 -0000 1.13 |
14 | +++ Glib/gperl.h 2 Jun 2003 14:32:11 -0000 |
17 | +++ Gtk2/ChangeLog 3 Jun 2003 18:23:31 -0000 |
15 | @@ -28,6 +28,11 @@ |
18 | @@ -1,3 +1,7 @@ |
|
|
19 | +pcg |
|
|
20 | + |
|
|
21 | + * xs/GtkTextTagTable.xs: new file with complete methods. |
|
|
22 | + |
|
|
23 | 2003/06/02 18:10 muppetman |
16 | |
24 | |
17 | #include <glib-object.h> |
25 | another patch from marc lehmann: |
18 | |
|
|
19 | +#ifndef PERL_IMPLICIT_CONTEXT |
|
|
20 | +# undef aTHX |
|
|
21 | +# define aTHX (void *)0 |
|
|
22 | +#endif |
|
|
23 | + |
|
|
24 | /* |
|
|
25 | * miscellaneous |
|
|
26 | */ |
|
|
27 | Index: Gtk2/xs/GtkAdjustment.xs |
|
|
28 | =================================================================== |
|
|
29 | RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/xs/GtkAdjustment.xs,v |
|
|
30 | retrieving revision 1.3 |
|
|
31 | diff -u -p -r1.3 GtkAdjustment.xs |
|
|
32 | --- Gtk2/xs/GtkAdjustment.xs 22 May 2003 14:23:23 -0000 1.3 |
|
|
33 | +++ Gtk2/xs/GtkAdjustment.xs 2 Jun 2003 14:32:11 -0000 |
|
|
34 | @@ -58,3 +58,35 @@ gtk_adjustment_set_value (adjustment, va |
|
|
35 | GtkAdjustment *adjustment |
|
|
36 | gdouble value |
|
|
37 | |
|
|
38 | +gdouble |
|
|
39 | +value (GtkAdjustment *adjustment, gdouble newval = 0) |
|
|
40 | + ALIAS: |
|
|
41 | + lower = 1 |
|
|
42 | + upper = 2 |
|
|
43 | + step_incrememt = 3 |
|
|
44 | + page_incrememt = 4 |
|
|
45 | + page_size = 5 |
|
|
46 | + CODE: |
|
|
47 | + switch (ix) { |
|
|
48 | + case 0: RETVAL = adjustment->value; |
|
|
49 | + if (items > 1) adjustment->value = newval; |
|
|
50 | + break; |
|
|
51 | + case 1: RETVAL = adjustment->lower; |
|
|
52 | + if (items > 1) adjustment->lower = newval; |
|
|
53 | + break; |
|
|
54 | + case 2: RETVAL = adjustment->upper; |
|
|
55 | + if (items > 1) adjustment->upper = newval; |
|
|
56 | + break; |
|
|
57 | + case 3: RETVAL = adjustment->step_increment; |
|
|
58 | + if (items > 1) adjustment->step_increment = newval; |
|
|
59 | + break; |
|
|
60 | + case 4: RETVAL = adjustment->page_increment; |
|
|
61 | + if (items > 1) adjustment->page_increment = newval; |
|
|
62 | + break; |
|
|
63 | + case 5: RETVAL = adjustment->page_size; |
|
|
64 | + if (items > 1) adjustment->page_size = newval; |
|
|
65 | + break; |
|
|
66 | + } |
|
|
67 | + OUTPUT: |
|
|
68 | + RETVAL |
|
|
69 | + |
|
|