View previous topic :: View next topic |
Author |
Message |
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Mon Mar 17, 2008 5:27 pm Post subject: Update to GtkSourceView 2.1.3? |
|
|
I updated my local to GtkSourceView 2.1.3 (from 1.6).
Should I commit?
2.1.3 is much more stable then 1.6. The API changed quite a bit.
The distribution doesn't contain the final version of the docs to be wrapped so
downloadFiles.sh is not going to do it.
What to do? include the html docs for GtkSourceView?
(Also 2.2 is out - but 2.1.3 is working for me for now)
Ant |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Mon Mar 17, 2008 8:17 pm Post subject: |
|
|
I'd say definitely go to the 2.x series, and 2.1 is fine by me. Is this something you are ready to commit Ant? I think you should go ahead if you can. |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Tue Mar 18, 2008 11:59 am Post subject: |
|
|
Is this set to be committed today? |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Wed Mar 19, 2008 8:21 am Post subject: |
|
|
okibi wrote: | Is this set to be committed today? |
I can probably do it tonight.
Ant |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Wed Mar 19, 2008 9:38 am Post subject: |
|
|
Sounds good to me. |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Wed Mar 19, 2008 5:05 pm Post subject: |
|
|
okibi wrote: | Sounds good to me. |
done. |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Thu Mar 20, 2008 3:33 am Post subject: |
|
|
Did you forget to upload SourceMark.d? |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Thu Mar 20, 2008 11:00 am Post subject: |
|
|
okibi wrote: | Did you forget to upload SourceMark.d? |
???
I'll check it tonight...
Ant |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Thu Mar 20, 2008 9:44 pm Post subject: |
|
|
okibi wrote: | Did you forget to upload SourceMark.d? |
You're right, added:
Adding trunk/srcsv/gsv/SourceLanguageManager.d
Adding trunk/srcsv/gsv/SourceMark.d
Adding trunk/srcsv/gsv/SourceStyle.d
Adding trunk/srcsv/gsv/SourceStyleSchemeManager.d |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Wed Mar 26, 2008 2:10 pm Post subject: |
|
|
Linux only (sorry).
I don't have windows for a while now but I'm setting up an XP machine for my wife.
maybe she will let me use it for these tests ;)
Is Vista supported at all? I'm not planning to install Vista anytime soon...
Ant |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Thu Mar 27, 2008 7:21 am Post subject: |
|
|
SourceLanguageManager doesn't work.
GtkD compiles fine, sourceview works. However, making a call to SourceLanguageManager will kill the app. |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Fri Mar 28, 2008 5:09 am Post subject: |
|
|
UPDATE:
Still no luck getting it to call SourceLanguageManager.
Upon initialization, the app will crash.
Here is my test code:
Code: |
import gtk.GtkD;
import gtk.MainWindow;
import gtk.Widget;
import gtk.ScrolledWindow;
import glib.Str;
import gsv.SourceView;
import gsv.SourceBuffer;
import gsv.SourceLanguage;
import gsv.SourceLanguageManager;
import gsvc.gsvtypes;
class SRCedit : MainWindow
{
SourceView sourceView;
SourceBuffer sourceBuffer;
public Widget getSourceView()
{
sourceView = new SourceView();
sourceBuffer = sourceView.getBuffer();
ScrolledWindow scWindow = new ScrolledWindow(GtkPolicyType.AUTOMATIC,GtkPolicyType.AUTOMATIC);
scWindow.add(sourceView);
SourceLanguageManager slm = new SourceLanguageManager();
SourceLanguage dLang = new SourceLanguage(slm.getLanguage("d"));
return scWindow;
}
this()
{
super("SRCedit");
add(getSourceView());
showAll();
}
}
void main(char[][] args)
{
GtkD.init(args);
new SRCedit();
GtkD.main();
}
|
Am I doing this wrong? Anyone have any ideas or pointers? I'd like to remove all references to GTKSourceView 1.x soon, but this needs to be working.
Thanks! |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Fri Mar 28, 2008 2:19 pm Post subject: |
|
|
Try it with svn r483 it was loading the wrong version on Windows. |
|
Back to top |
|
|
|