View previous topic :: View next topic |
Author |
Message |
Mengu
Joined: 21 Mar 2010 Posts: 21
|
Posted: Mon Apr 12, 2010 9:07 pm Post subject: GtkSourceCompletion |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Apr 13, 2010 1:59 pm Post subject: |
|
|
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 |
|
|
Mengu
Joined: 21 Mar 2010 Posts: 21
|
Posted: Tue Apr 13, 2010 2:51 pm Post subject: |
|
|
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. _________________ mengu.net - some kind of monster |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Apr 13, 2010 3:57 pm Post subject: |
|
|
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 |
|
|
|