FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GtkSourceCompletion

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
Mengu



Joined: 21 Mar 2010
Posts: 21

PostPosted: Mon Apr 12, 2010 9:07 pm    Post subject: GtkSourceCompletion Reply with quote

Hi,

Are we able to use GtkSourceCompletion for GtkSourceView? If not, what should be the way to write the bindings?
_________________
mengu.net - some kind of monster
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Apr 13, 2010 1:59 pm    Post subject: Reply with quote

It's on the to do list, the best way to add it is by adding the classes to APILookupSourceview.txt, but documentation on it is a bit scarce on it though.
Back to top
View user's profile Send private message
Mengu



Joined: 21 Mar 2010
Posts: 21

PostPosted: Tue Apr 13, 2010 2:51 pm    Post subject: Reply with quote

Mike Wey wrote:
It's on the to do list, the best way to add it is by adding the classes to APILookupSourceview.txt, but documentation on it is a bit scarce on it though.


but how it will work when the bindings are not written? i actually would like to help on this if you guide my way. Smile
_________________
mengu.net - some kind of monster
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Apr 13, 2010 3:57 pm    Post subject: Reply with quote

The wrap folder contains the APILookup Files and the wrapper it's self.

You can use the Makefile or dsss to build the wrapper.
Then download the documentation using the downloadFiles.sh file. it still downloads the old sourceview documentation so the url needs to be updated.

Then open the APILooupSourceview.txt file, this file contains information for the wrapper so it can generate the bindings. Hopefully the already wrapped files that are defined in the APILookup file are enough to guide you.

For the code completion There are two interfaces, these are wrapped a little differently you could look at GAsyncResult for this ( APILookupGio.txt line: 217 ).

And there are two classes that implement interfaces, you can look at GSimpleAsyncResult as an example of this. ( APILookupGio.txt line: 236 )

After all that is done calling gtkwrap should generate the binding.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group