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

Update to GtkSourceView 2.1.3?
Goto page 1, 2  Next
 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Mon Mar 17, 2008 5:27 pm    Post subject: Update to GtkSourceView 2.1.3? Reply with quote

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
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Mon Mar 17, 2008 8:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Tue Mar 18, 2008 11:59 am    Post subject: Reply with quote

Is this set to be committed today?
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Mar 18, 2008 12:36 pm    Post subject: Re: Update to GtkSourceView 2.1.3? Reply with quote

Ant wrote:
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


Let downloadFiles.sh download http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/2.1/gtksourceview-2.1.3.tar.bz2
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Wed Mar 19, 2008 8:21 am    Post subject: Reply with quote

okibi wrote:
Is this set to be committed today?

I can probably do it tonight.

Ant
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Wed Mar 19, 2008 9:38 am    Post subject: Reply with quote

Sounds good to me.
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Wed Mar 19, 2008 5:05 pm    Post subject: Reply with quote

okibi wrote:
Sounds good to me.


done.
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Thu Mar 20, 2008 3:33 am    Post subject: Reply with quote

Did you forget to upload SourceMark.d?
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Thu Mar 20, 2008 11:00 am    Post subject: Reply with quote

okibi wrote:
Did you forget to upload SourceMark.d?


???

I'll check it tonight...

Ant
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Thu Mar 20, 2008 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Wed Mar 26, 2008 5:26 am    Post subject: Reply with quote

Has this been tested on Windows?

The 2.x series files can be found at http://ftp.gnome.org/pub/GNOME/binaries/win32/gtksourceview/2.0/. I was just wondering if this was only tested on Linux, or both Linux and Windows.

Thanks!
Back to top
View user's profile Send private message
Ant



Joined: 06 Mar 2004
Posts: 306
Location: Canada

PostPosted: Wed Mar 26, 2008 2:10 pm    Post subject: Reply with quote

okibi wrote:
Has this been tested on Windows?

The 2.x series files can be found at http://ftp.gnome.org/pub/GNOME/binaries/win32/gtksourceview/2.0/. I was just wondering if this was only tested on Linux, or both Linux and Windows.

Thanks!


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
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Thu Mar 27, 2008 7:21 am    Post subject: Reply with quote

SourceLanguageManager doesn't work.

GtkD compiles fine, sourceview works. However, making a call to SourceLanguageManager will kill the app.
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Fri Mar 28, 2008 5:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Fri Mar 28, 2008 2:19 pm    Post subject: Reply with quote

Try it with svn r483 it was loading the wrong version on Windows.
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
Goto page 1, 2  Next
Page 1 of 2

 
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