View previous topic :: View next topic |
Author |
Message |
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Fri Mar 28, 2008 5:02 pm Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sat Mar 29, 2008 6:16 am Post subject: |
|
|
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 |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Sat Mar 29, 2008 7:01 am Post subject: |
|
|
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 |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Sat Mar 29, 2008 7:02 am Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sat Mar 29, 2008 8:32 am Post subject: |
|
|
It runs and opens |
|
Back to top |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Sat Mar 29, 2008 10:29 am Post subject: |
|
|
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 |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Mon Mar 31, 2008 4:29 am Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Mon Mar 31, 2008 2:01 pm Post subject: |
|
|
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 |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Mon Mar 31, 2008 5:00 pm Post subject: |
|
|
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 |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Apr 01, 2008 3:30 pm Post subject: |
|
|
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 |
|
|
okibi
Joined: 04 Jan 2007 Posts: 170
|
Posted: Tue Apr 01, 2008 5:45 pm Post subject: |
|
|
Oops, I accidentlly left those out of the installer... no wonder. This will be fixed tomorrow.
Thanks! |
|
Back to top |
|
|
Andrej08
Joined: 31 Aug 2010 Posts: 51
|
|
Back to top |
|
|
Andrej08
Joined: 31 Aug 2010 Posts: 51
|
Posted: Fri Jul 29, 2011 6:18 pm Post subject: |
|
|
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 |
|
|
|