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 Previous  1, 2
 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Fri Mar 28, 2008 5:02 pm    Post subject: Reply with quote

I had that on the Windows machine when I was messing with it, however it wasn't in pre8 at the time.

Anyways, no go on my windows box. Kinda confuses me as to why...
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sat Mar 29, 2008 6:16 am    Post subject: Reply with quote

okibi wrote:
I had that on the Windows machine when I was messing with it, however it wasn't in pre8 at the time.

Anyways, no go on my windows box. Kinda confuses me as to why...


I had r483 working on a windows machine.

This was with:
DMD 1.027 + Phobos
DSSS 0.75

Gtk 2.12.8 - Downloaded from the GtkD Start page.
GtkSourceView 2.0.2 - from http://ftp.gnome.org/pub/GNOME/binaries/win32/gtksourceview/2.0/ mentioned in this thread.

I build the code you posted with:
Code:
dsss build test.d -lladvapi32



You could check if gtkc.Loader.Linker.dumpFailedLoads() outputs anything related to SourceView?
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Sat Mar 29, 2008 7:01 am    Post subject: Reply with quote

I'll start fresh Monday when I get back to work (linux at home, windows at work).

Maybe compd isn't doing it's job correctly...

I'll move to dsss soon i swear!
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Sat Mar 29, 2008 7:02 am    Post subject: Reply with quote

Wait, when you say working, do you mean it runs and opens, or it compiles? I know it compiles fine, but it won't open once hitting the sourceview dll.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sat Mar 29, 2008 8:32 am    Post subject: Reply with quote

It runs and opens Wink
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Sat Mar 29, 2008 10:29 am    Post subject: Reply with quote

Thanks for the update!

I guess I'll just have to wait untill Monday to see what the issue was. I'll report back when I get it working.

Also, I added a Pre-release 9 to the roadmap for GtkD. Pre-release 8 is officially released as of yesterday.
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Mon Mar 31, 2008 4:29 am    Post subject: Reply with quote

It still isn't working for me with the latest gtkd-svn (490).

dumpFailedLoads doesn't mention anything about sourceview.

initializing a sourcelanguage immediately after creation of a sourcelanguagemanager throws an error saying parameter mismatch (received sourcelanguage, expected gtksourcelanguage*)
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Mon Mar 31, 2008 2:01 pm    Post subject: Reply with quote

With r488 one line needs to be changed:

Code:
SourceLanguage dLang = new SourceLanguage(slm.getLanguage("d"));

to:
Code:
SourceLanguage dLang = slm.getLanguage("d");

Witch would account for the parameter mismatch since now getLanguage returns a SourceLanguage instead of a GtkSourceLanguage*, but that is a compiler error right?

Quote:
dumpFailedLoads doesn't mention anything about sourceview.


with GtkSourceView 2.0.2 and r490 i would have expected the "gtk_source_print_compositor_*" being in there. for me they were at the top of the list.

Quote:
It still isn't working for me

With a Segfault/Access Violation or an gtk error/warning?
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Mon Mar 31, 2008 5:00 pm    Post subject: Reply with quote

No, everything runs fine, and the language SEEMS to get loaded (as in dLang is not null), but setting the language on the buffer has no effect, just black text.
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Apr 01, 2008 3:30 pm    Post subject: Reply with quote

I tried it again just now and i can see it fails to load the language file.

Quote:
Failed to load 'C:\Program Files\Common Files\GTK\2.0\share\gtksourceview-2.0\language-specs\d.lang': could not find the RelaxNG schema file

Don't know how i missed this the first time.

comparing the share/gtksourceview-2.0/ dir on windows and linux revealed a few missing files.

Quote:
language-specs/language.rng
language-specs/language2.rng
language-specs/styles.rng
styles/*


copying these files got me my syntax highlighting.

I also noticed the download on the GtkD main page includes gtksourceview 2.0 but it's also missing the files mentioned above.
Back to top
View user's profile Send private message
okibi



Joined: 04 Jan 2007
Posts: 170

PostPosted: Tue Apr 01, 2008 5:45 pm    Post subject: Reply with quote

Oops, I accidentlly left those out of the installer... no wonder. This will be fixed tomorrow.

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



Joined: 31 Aug 2010
Posts: 51

PostPosted: Fri Jul 29, 2011 6:08 pm    Post subject: Reply with quote

I don't know why these files are still not installed via Gtk on Windows. But anyway for anyone wondering you can get the missing files from the GtkSourceView source archive:

http://projects.gnome.org/gtksourceview/download.html

Latest one right now is:
http://ftp.acc.umu.se/pub/gnome/sources/gtksourceview/3.1/gtksourceview-3.1.3.tar.bz2

Then the sourceView example will have D syntax highlighting. Also libxml2.dll and libgtksourceview-2.0-0.dll are required on Windows.
Back to top
View user's profile Send private message
Andrej08



Joined: 31 Aug 2010
Posts: 51

PostPosted: Fri Jul 29, 2011 6:18 pm    Post subject: Reply with quote

Some things I've noticed:

Clicking and holding the mouse on an unoccupied scrollbar position makes the scrollbar thumb reach it, but then it skips(!) it and goes all the way to the other max value.

If you try to drag the scrollbar and move the cursor outside the window, release the left key, and return the cursor to within the window, the window will think you're still holding the scrollbar thumb.

The scrollbars also terribly lag when the window is resized, it almost seems like the scrollbars have a messaging system and the messages arrive very slowly leaving them in an old position when the window is resized to a new position.

Judging from this call in SVTest.d (sourceView example):
Code:
ScrolledWindow scWindow = new ScrolledWindow();


it seems this is GDK to blame? That is very bad GUI behavior. :/
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 Previous  1, 2
Page 2 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