Date: Fri, 4 Aug 2006 14:09:27 +0200 From: Maxence Guesdon To: lablgtk at math.nagoya-u.ac.jp Subject: Questions about bindings Message-ID: <20060804140927.127c48ae at tintin.inria.fr> Organization: INRIA Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Content-Length: 1566 Hello, I'm trying to add support for GtkSourceTagTable, GtkSourceTag and GtkSourceTagStyle in Stefano Zacchiroli's Lablgtksourceview: http://helm.cs.unibo.it/software/lablgtksourceview/ I look in implementation of lablgtk and lablgtksourceview to try to figure out how to do... I'm having problem to specify the parameters for the gtk_source_tag_table_add_tags function: void gtk_source_tag_table_add_tags (GtkSourceTagTable *table, const GSList *tags); [from http://gtksourceview.sourceforge.net/docs/GtkSourceTagTable.html] I don't know how to specify the tags parameter. I tried this: ... #define GtkSourceTag_val(val) check_cast(GTK_SOURCE_TAG,val) #define GtkSourceTagTable_val(val) check_cast(GTK_SOURCE_TAG_TABLE,val) ... #define GSList_of_source_tag_list(l) GSList_val(l,GtkSourceTag_val) ... ML_2 (gtk_source_tag_table_add_tags, GtkSourceTagTable_val, GSList_of_source_tag_list, Unit) But when I try to compile with gcc -c .... ml_gtk_sourceview.c I get the error: ml_gtk_sourceview.c: In function 'ml_gtk_source_tag_table_add_tags': ml_gtk_sourceview.c:177: error: 'GtkSourceTag_val' undeclared (first use in this function) First Question: How to specify the "tags" parameter ? Another problem is that the GtkSourceTagStyle is a struct: http://gtksourceview.sourceforge.net/docs/gtksourceview-GtkSourceTagStyle.html#GtkSourceTagStyle Second Question: Can someone tell me what is the "good way" to interface this ? is there an example in the lablgtk source ? Thanks a lot. Maxence Guesdon