Perl Gtk+



This is pretty much to whomever maintains gnome-perl, but I wrote a thing
that uses perl-gtk, and I needed a little more functionality from the
ctree_node section. So I got the attached patch. If you want to look at
the project, http://eris.gemma.com/cgi-bin/gen?kg.phtml

Thanks for the great module!
--- GtkCTree.xs.orig	Mon Nov 29 15:29:27 1999
+++ GtkCTree.xs	Mon Nov 29 15:30:34 1999
@@ -434,4 +434,19 @@
 		}
 	}
 
+char *
+get_text(self, tree, column)
+	Gtk::CTreeNode	self
+	Gtk::CTree 	tree
+	int 		column
+	CODE:
+	{
+		gchar *text=NULL;
+		gtk_ctree_node_get_text(tree, self, column, &text);
+		printf("%s\n", text);
+		RETVAL = text;
+	}
+	OUTPUT:
+	RETVAL
+
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]