[Kazehakase-cvs] CVS update: kazehakase/ext/ruby

Back to archive index

Kouhei Sutou kous****@users*****
Fri Apr 21 17:04:48 JST 2006


Index: kazehakase/ext/ruby/kz-rb-embed.c
diff -u kazehakase/ext/ruby/kz-rb-embed.c:1.8 kazehakase/ext/ruby/kz-rb-embed.c:1.9
--- kazehakase/ext/ruby/kz-rb-embed.c:1.8	Sat Jan 21 19:53:19 2006
+++ kazehakase/ext/ruby/kz-rb-embed.c	Fri Apr 21 17:04:48 2006
@@ -203,6 +203,17 @@
 }
 
 static VALUE
+rb_kz_embed_get_dest_anchors(VALUE self)
+{
+    GList *list = NULL;
+
+    if (kz_embed_get_dest_anchors(_SELF(self), &list))
+        return GLIST2ARY(list);
+    else
+        return rb_ary_new();
+}
+
+static VALUE
 rb_kz_embed_copy_page(VALUE self, VALUE dkzembed)
 {
     kz_embed_copy_page(_SELF(self), _SELF(dkzembed));
@@ -630,6 +641,7 @@
     rb_define_method(cKzEmbed, "selection_is_collapsed?",
                      rb_kz_embed_selection_is_collapsed, 0);
     rb_define_method(cKzEmbed, "links", rb_kz_embed_get_links, -1);
+    rb_define_method(cKzEmbed, "dest_anchors", rb_kz_embed_get_dest_anchors, 0);
     rb_define_method(cKzEmbed, "copy_page", rb_kz_embed_copy_page, 1);
     rb_define_method(cKzEmbed, "shistory_copy",
                      rb_kz_embed_shistory_copy, 5);


More information about the Kazehakase-cvs mailing list
Back to archive index