--- kgsueme/gtk2-perl-xs.patch 2003/06/02 14:33:20 1.4 +++ kgsueme/gtk2-perl-xs.patch 2003/06/03 04:45:42 1.5 @@ -1,36 +1,37 @@ Gtk2 * xs/GtkAdjustment.xs: add accors/mutators for struct values. + * xs/GtkTextTag.xs: add GtkTextTagTable + some methods. + * gtk-demo/textview.pl: fix demo to actually use unicode + as opposed to the garbled latin1. -Glib - * gperl.h: make it compile even on non-threaded perls (where aTHX is empty). - -Index: Glib/gperl.h +Index: Gtk2/gtk-demo/textview.pl =================================================================== -RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/gperl.h,v +RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/gtk-demo/textview.pl,v retrieving revision 1.4 -diff -u -p -r1.4 gperl.h ---- Glib/gperl.h 31 May 2003 04:00:45 -0000 1.4 -+++ Glib/gperl.h 2 Jun 2003 14:32:11 -0000 -@@ -28,6 +28,11 @@ - - #include +diff -u -p -r1.4 textview.pl +--- Gtk2/gtk-demo/textview.pl 17 May 2003 13:31:02 -0000 1.4 ++++ Gtk2/gtk-demo/textview.pl 2 Jun 2003 16:21:31 -0000 +@@ -246,10 +246,10 @@ sub insert_text { + $buffer->insert_with_tags_by_name ($iter, "Internationalization. ", + "heading"); + +- $buffer->insert ($iter, "You can put all sorts of Unicode text in the buffer.\n\nGerman (Deutsch S\303\274d) Gr\303\274\303\237 Gott\nGreek (\316\225\316\273\316\273\316\267\316\275\316\271\316\272\316\254) \316\223\316\265\316\271\316\254 \317\203\316\261\317\202\nHebrew \327\251\327\234\327\225\327\235\nJapanese (\346\227\245\346\234\254\350\252\236)\n\nThe widget properly handles bidirectional text, word wrapping, DOS/UNIX/Unicode paragraph separators, grapheme boundaries, and so on using the Pango internationalization framework.\n"); ++ $buffer->insert ($iter, "You can put all sorts of Unicode text in the buffer.\n\nGerman (S\x{fc}ddeutschland) Gr\x{fc}\x{df} Gott\nGreek (\x{395}\x{3bb}\x{3bb}\x{3b7}\x{3bd}\x{3b9}\x{3ba}\x{3ac}) \x{393}\x{3b5}\x{3b9}\x{3ac} \x{3c3}\x{3b1}\x{3c2}\nHebrew \x{5e9}\x{5dc}\x{5d5}\x{5dd}\nJapanese (\x{65e5}\x{672c}\x{8a9e})\n\nThe widget properly handles bidirectional text, word wrapping, DOS/UNIX/Unicode paragraph separators, grapheme boundaries, and so on using the Pango internationalization framework.\n"); -+#ifndef PERL_IMPLICIT_CONTEXT -+# undef aTHX -+# define aTHX (void *)0 -+#endif -+ - /* - * miscellaneous - */ + $buffer->insert ($iter, "Here's a word-wrapped quote in a right-to-left language:\n"); +- $buffer->insert_with_tags_by_name ($iter, "\331\210\331\202\330\257 \330\250\330\257\330\243 \330\253\331\204\330\247\330\253 \331\205\331\206 \330\243\331\203\330\253\330\261 \330\247\331\204\331\205\330\244\330\263\330\263\330\247\330\252 \330\252\331\202\330\257\331\205\330\247 \331\201\331\212 \330\264\330\250\331\203\330\251 \330\247\331\203\330\263\331\212\331\210\331\206 \330\250\330\261\330\247\331\205\330\254\331\207\330\247 \331\203\331\205\331\206\330\270\331\205\330\247\330\252 \331\204\330\247 \330\252\330\263\330\271\331\211 \331\204\331\204\330\261\330\250\330\255\330\214 \330\253\331\205 \330\252\330\255\331\210\331\204\330\252 \331\201\331\212 \330\247\331\204\330\263\331\206\331\210\330\247\330\252 \330\247\331\204\330\256\331\205\330\263 \330\247\331\204\331\205\330\247\330\266\331\212\330\251 \330\245\331\204\331\211 \331\205\330\244\330\263\330\263\330\247\330\252 \331\205\330\247\331\204\331\212\330\251 \331\205\331\206\330\270\331\205\330\251\330\214 \331\210\330\250\330\247\330\252\330\252 \330\254\330\262\330\241\330\247 \331\205\331\206 \330\247\331\204\331\206\330\270\330\247\331\205 \330\247\331\204\331\205\330\247\331\204\331\212 \331\201\331\212 \330\250\331\204\330\257\330\247\331\206\331\207\330\247\330\214 \331\210\331\204\331\203\331\206\331\207\330\247 \330\252\330\252\330\256\330\265\330\265 \331\201\331\212 \330\256\330\257\331\205\330\251 \331\202\330\267\330\247\330\271 \330\247\331\204\331\205\330\264\330\261\331\210\330\271\330\247\330\252 \330\247\331\204\330\265\330\272\331\212\330\261\330\251. \331\210\330\243\330\255\330\257 \330\243\331\203\330\253\330\261 \331\207\330\260\331\207 \330\247\331\204\331\205\330\244\330\263\330\263\330\247\330\252 \331\206\330\254\330\247\330\255\330\247 \331\207\331\210 \302\273\330\250\330\247\331\206\331\203\331\210\330\263\331\210\331\204\302\253 \331\201\331\212 \330\250\331\210\331\204\331\212\331\201\331\212\330\247.\n\n", ++ $buffer->insert_with_tags_by_name ($iter, "\x{648}\x{642}\x{62f} \x{628}\x{62f}\x{623} \x{62b}\x{644}\x{627}\x{62b} \x{645}\x{646} \x{623}\x{643}\x{62b}\x{631} \x{627}\x{644}\x{645}\x{624}\x{633}\x{633}\x{627}\x{62a} \x{62a}\x{642}\x{62f}\x{645}\x{627} \x{641}\x{64a} \x{634}\x{628}\x{643}\x{629} \x{627}\x{643}\x{633}\x{64a}\x{648}\x{646} \x{628}\x{631}\x{627}\x{645}\x{62c}\x{647}\x{627} \x{643}\x{645}\x{646}\x{638}\x{645}\x{627}\x{62a} \x{644}\x{627} \x{62a}\x{633}\x{639}\x{649} \x{644}\x{644}\x{631}\x{628}\x{62d}\x{60c} \x{62b}\x{645} \x{62a}\x{62d}\x{648}\x{644}\x{62a} \x{641}\x{64a} \x{627}\x{644}\x{633}\x{646}\x{648}\x{627}\x{62a} \x{627}\x{644}\x{62e}\x{645}\x{633} \x{627}\x{644}\x{645}\x{627}\x{636}\x{64a}\x{629} \x{625}\x{644}\x{649} \x{645}\x{624}\x{633}\x{633}\x{627}\x{62a} \x{645}\x{627}\x{644}\x{64a}\x{629} \x{645}\x{646}\x{638}\x{645}\x{629}\x{60c} \x{648}\x{628}\x{627}\x{62a}\x{62a} \x{62c}\x{632}\x{621}\x{627} \x{645}\x{646} \x{627}\x{644}\x{646}\x{638}\x{627}\x{645} \x{627}\x{644}\x{645}\x{627}\x{644}\x{64a} \x{641}\x{64a} \x{628}\x{644}\x{62f}\x{627}\x{646}\x{647}\x{627}\x{60c} \x{648}\x{644}\x{643}\x{646}\x{647}\x{627} \x{62a}\x{62a}\x{62e}\x{635}\x{635} \x{641}\x{64a} \x{62e}\x{62f}\x{645}\x{629} \x{642}\x{637}\x{627}\x{639} \x{627}\x{644}\x{645}\x{634}\x{631}\x{648}\x{639}\x{627}\x{62a} \x{627}\x{644}\x{635}\x{63a}\x{64a}\x{631}\x{629}. \x{648}\x{623}\x{62d}\x{62f} \x{623}\x{643}\x{62b}\x{631} \x{647}\x{630}\x{647} \x{627}\x{644}\x{645}\x{624}\x{633}\x{633}\x{627}\x{62a} \x{646}\x{62c}\x{627}\x{62d}\x{627} \x{647}\x{648} \x{bb}\x{628}\x{627}\x{646}\x{643}\x{648}\x{633}\x{648}\x{644}\x{ab} \x{641}\x{64a} \x{628}\x{648}\x{644}\x{64a}\x{641}\x{64a}\x{627}.\n\n", + "rtl_quote"); + + $buffer->insert ($iter, "You can put widgets in the buffer: Here's a button: "); Index: Gtk2/xs/GtkAdjustment.xs =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/xs/GtkAdjustment.xs,v retrieving revision 1.3 diff -u -p -r1.3 GtkAdjustment.xs --- Gtk2/xs/GtkAdjustment.xs 22 May 2003 14:23:23 -0000 1.3 -+++ Gtk2/xs/GtkAdjustment.xs 2 Jun 2003 14:32:11 -0000 ++++ Gtk2/xs/GtkAdjustment.xs 2 Jun 2003 16:21:31 -0000 @@ -58,3 +58,35 @@ gtk_adjustment_set_value (adjustment, va GtkAdjustment *adjustment gdouble value @@ -67,3 +68,45 @@ + OUTPUT: + RETVAL + +Index: Gtk2/xs/GtkTextTag.xs +=================================================================== +RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/xs/GtkTextTag.xs,v +retrieving revision 1.3 +diff -u -p -r1.3 GtkTextTag.xs +--- Gtk2/xs/GtkTextTag.xs 22 May 2003 14:23:24 -0000 1.3 ++++ Gtk2/xs/GtkTextTag.xs 2 Jun 2003 16:21:31 -0000 +@@ -83,3 +83,34 @@ gtk_text_attributes_copy_values (dest, s + ##gtk_text_attributes_ref (values) + ## GtkTextAttributes *values + ## ++ ++MODULE = Gtk2::TextTag PACKAGE = Gtk2::TextTagTable PREFIX = gtk_text_tag_table_ ++ ++GtkTextTagTable_noinc * ++gtk_text_tag_table_new (class) ++ SV * class ++ C_ARGS: ++ ++void ++gtk_text_tag_table_add (table, tag) ++ GtkTextTagTable *table ++ GtkTextTag *tag ++ ++void ++gtk_text_tag_table_remove (table, tag) ++ GtkTextTagTable *table ++ GtkTextTag *tag ++ ++GtkTextTag * ++gtk_text_tag_table_lookup (table, name) ++ GtkTextTagTable * table ++ const gchar * name ++ ++#void gtk_text_tag_table_foreach (GtkTextTagTable *table, ++# GtkTextTagTableForeach func, ++# gpointer data); ++ ++gint ++gtk_text_tag_table_get_size (table) ++ GtkTextTagTable * table ++