1. RE: EuGTK_Win.zip

Lord LEVIATHAN wrote:
> 
> 
> Heya Irv,
> 
> Yay! It's here! Except everytime I attempt to download, I get a 'one 
> byte off' error, and then it (Winzip 8, I thinks?) quits out.

You are correct, and if I had compared the size of the file on 
the server with the one on my disk, I would have noticed that 
the server's was 1 byte shorter. But who expects that?

I have replaced the file, and downloaded and unzipped it - it looks 
ok this time. Please try again.

Regards,
Irv

new topic     » topic index » view message » categorize

2. RE: EuGTK_Win.zip

On 20 Mar 2004 at 2:01, I Mullins wrote:

> 
> You are correct, and if I had compared the size of the file on 
> the server with the one on my disk, I would have noticed that 
> the server's was 1 byte shorter. But who expects that?
> 
> I have replaced the file, and downloaded and unzipped it - it looks 
> ok this time. Please try again.

Bah, my hacked-up install worked just fine :)

Anywho, it works! And I'm going to go ahead and start using it, and 
see what happens!

One little problem. I had to insert the libfile directory (C:\Program 
Files\Common files\GTK\2.0\lib) into the path. But other than that, 
it rocks :)

Onward to my idea of a MUSHcode IDE! :)

> 
> Regards,
> Irv
> 

Cheers!

--
Lord "LEVIATHAN"
http://osrf.washingtoncs.com/~lordlev/

new topic     » goto parent     » topic index » view message » categorize

3. RE: EuGTK_Win.zip

I Mullins wrote:
> 
> 
> A beta release of EuGTK for Windows is now available at 
> http://ellijay.com/users/irvm/ 
> on the downloads page.


Hi Irv,

It looks good, thanks for doing the work.

Just some comments,

Is the doco supposed to be included in the EuGTK_Win.zip file?
The zip file contains a gtk2/docs/ directory, but the widgets directory 
under docs is empty.

Can I assume the GTK runtime (GTK-Runtime-Environment-2.2.4-2.exe) 
has problems?
When I install it and set up the lib path, I get a console window 
displaying

(<unknown>:2824): Gtk-WARNING **: Unable to locate theme engine in 
module_path: "wimp",

whenever I run any of the demos.
(The demos still work by the way)

Doing a little research (and following the file location instructions 
at:  http://gtk-wimp.sourceforge.net/faq/) I get the 
correct Windows look and feel (i.e. wimp look and feel) but some 
demos show errors similiar to:

** (<unknown>:1168): WARNING **: Couldn't load font "Tahoma Bold Italic 
8" falling back to "Sans Bold Italic 8"

i.e. this was for "fileselect.exu" and some others.

This is obviously a Windows GTK bug but thought I'd mention it anyway.

Regards,

Ray Smith
http://rays-web.com

new topic     » goto parent     » topic index » view message » categorize

4. RE: EuGTK_Win.zip

Ray Smith wrote:
> Is the doco supposed to be included in the EuGTK_Win.zip file?
> The zip file contains a gtk2/docs/ directory, but the widgets directory 
> under docs is empty.

If I had read the instructions I would have found out the doco can be
generated!!!!
.. but, it seems this feature doesn't work under Windows.

I get the following error:

---------
c:\dev\euphoria\include\gtk2/inspector.gtk:104 in procedure 
InspectMethods()
bad file number (-1)
... called from c:\dev\euphoria\include\gtk2/inspector.gtk:225 in 
procedure main
()
... called from arrow.exu:46
--> see ex.err
Press Enter...
-----------

when I do a:

exw arrow.exu -makedocs


Regards,

Ray Smith
http://rays-web.com

new topic     » goto parent     » topic index » view message » categorize

5. RE: EuGTK_Win.zip

Heya Ray!

I picked into the 'inspector.gtk' file (found in your include\gtk2 
directory), found a couple of slashes and stuff that was missed.

There will be a couple of lines at the beginning of the file, that 
should read:

constant HOME = getenv("HOME")
constant DOCDIR = HOME & "/gtk2/docs/widgets/"

Change the 'getenv' part to your euphoria\include directory (make 
sure to make those backslashes \\!), and change the slashes in the 
DOCDIR to \\s. So then it should read something like this:

constant HOME = "H:\\Euphoria\\etc"
constant DOCDIR = HOME & "\\gtk2\\docs\\widgets\\"

You'll also find a couple of lines that look like:

system(BROWSER & " " & instance_file & " &",0)

For now, until Irv says how to start a browser window, leave it 
remmed out (throw a '-- ' in front of it).

That should work for the most part! Yay!

*scratches his head* Yeah, that should work. I think.

--
Lord "LEVIATHAN"
http://osrf.washingtoncs.com/~lordlev/

new topic     » goto parent     » topic index » view message » categorize

6. RE: EuGTK_Win.zip

Lord LEVIATHAN wrote:
> Heya Ray!
> 
> I picked into the 'inspector.gtk' file (found in your include\gtk2 
> directory), found a couple of slashes and stuff that was missed.

[snip]

Thanks for that LL.

It now works like a charm.

Regards,

Ray Smith
http://rays-web.com

new topic     » goto parent     » topic index » view message » categorize

7. RE: EuGTK_Win.zip

Ray Smith wrote:
> 
> Lord LEVIATHAN wrote:
> > Heya Ray!
> > 
> > I picked into the 'inspector.gtk' file (found in your include\gtk2 
> > directory), found a couple of slashes and stuff that was missed.
>
> It now works like a charm.
> 
> Regards,
> 

Ray, what version of Windows are you using? 

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

8. RE: EuGTK_Win.zip

I Mullins wrote:
> Ray Smith wrote:
> > It now works like a charm.
> > Regards,
> 
> Ray, what version of Windows are you using? 

I've tried it on Windows XP Sp1 and Windows 98 SE.

I didn't use the "HOME" environment variable on XP as it just returns 
%USERPROFILE% so I just hard coded it to my GTK2 directory.

It's not the final solution ... but OK for now.

(I still have the other GTK problems with fonts etc from one of my 
previous emails)

Regards,

Ray Smith
http://rays-web.com

new topic     » goto parent     » topic index » view message » categorize

9. RE: EuGTK_Win.zip

Ray Smith wrote:

> 
> Doing a little research (and following the file location instructions 
> at:  http://gtk-wimp.sourceforge.net/faq/) I get the 
> correct Windows look and feel (i.e. wimp look and feel) but some 
> demos show errors similiar to:
> 
> ** (<unknown>:1168): WARNING **: Couldn't load font "Tahoma Bold Italic 
> 8" falling back to "Sans Bold Italic 8"
> 

Ray:

What is in your path, and where are libwimp.dll and the theme folder 
located? That would help other people who are having the same problem
(with wimp) and maybe help find the cause of the font error.

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

10. RE: EuGTK_Win.zip

I Mullins wrote:
> Ray Smith wrote:
> > Doing a little research (and following the file location instructions 
> > at:  http://gtk-wimp.sourceforge.net/faq/) I get the 
> > correct Windows look and feel (i.e. wimp look and feel) but some 
> > demos show errors similiar to:
> > 
> > ** (<unknown>:1168): WARNING **: Couldn't load font "Tahoma Bold Italic 
> > 8" falling back to "Sans Bold Italic 8"
> > 
> 
> Ray:
> 
> What is in your path, and where are libwimp.dll and the theme folder 
> located? That would help other people who are having the same problem
> (with wimp) and maybe help find the cause of the font error.
> 
> Regards,
> Irv

Hi Irv,

I installed the runtime to c:\GTK ... so I added c:\gtk\lib to my path.

Following the file location structure at:
http://gtk-wimp.sourceforge.net/faq/

I created a new directory:
c:\gtk\lib\gtk-2.0\2.2.0\engines\ 
and copied 
c:\gtk\lib\libwimp.dll 
to 
c:\gtk\lib\gtk-2.0\2.2.0\engines\libwimp.dll

I created a new directory:
c:\gtk\share\themes\gtk-wimp\gtk-2.0\ 
and copied
c:\gtk\etc\gtk-2.0\gtkrc.window 
to 
c:\gtk\share\themes\gtk-wimp\gtk-2.0\gtkrc 

This gets the correct "Wimp" (or Windows) theme but produces some of 
the "font" errors.  As I said, everything still seems to work 
correctly except for the font messages displayed in a console window.

I haven't done any more investigation from this point.

Regards,

Ray Smith
http://rays-web.com

new topic     » goto parent     » topic index » view message » categorize

11. RE: EuGTK_Win.zip

Ray Smith wrote:
> 

> 
> I installed the runtime to c:\GTK ... so I added c:\gtk\lib to my path.
> 
> Following the file location structure at:
> http://gtk-wimp.sourceforge.net/faq/
> 
> I created a new directory:
> c:\gtk\lib\gtk-2.0\2.2.0\engines\ 
> and copied 
> c:\gtk\lib\libwimp.dll 
> to 
> c:\gtk\lib\gtk-2.0\2.2.0\engines\libwimp.dll
> 
> I created a new directory:
> c:\gtk\share\themes\gtk-wimp\gtk-2.0\ 
> and copied
> c:\gtk\etc\gtk-2.0\gtkrc.window 
> to 
> c:\gtk\share\themes\gtk-wimp\gtk-2.0\gtkrc 
> 
> This gets the correct "Wimp" (or Windows) theme but produces some of 
> the "font" errors.  As I said, everything still seems to work 
> correctly except for the font messages displayed in a console window.
> 
> I haven't done any more investigation from this point.

Thanks, I'll duplicate that, and see what happens.

Irv

new topic     » goto parent     » topic index » view message » categorize

12. RE: EuGTK_Win.zip

Ray Smith wrote:

> I installed the runtime to c:\GTK ... so I added c:\gtk\lib to my path.
> 
> Following the file location structure at:
> http://gtk-wimp.sourceforge.net/faq/
> 
> I created a new directory:
> c:\gtk\lib\gtk-2.0\2.2.0\engines\ 
> and copied 
> c:\gtk\lib\libwimp.dll 
> to 
> c:\gtk\lib\gtk-2.0\2.2.0\engines\libwimp.dll
> 
> I created a new directory:
> c:\gtk\share\themes\gtk-wimp\gtk-2.0\ 
> and copied
> c:\gtk\etc\gtk-2.0\gtkrc.window 
> to 
> c:\gtk\share\themes\gtk-wimp\gtk-2.0\gtkrc 
> 
> This gets the correct "Wimp" (or Windows) theme but produces some of 
> the "font" errors.  As I said, everything still seems to work 
> correctly except for the font messages displayed in a console window.
> 
> I haven't done any more investigation from this point.

Hi Ray:

The font errors are because GTK can only use TrueType fonts, and 
the MS Sans Serif 8 is not real TT. 
You can prevent this error if you add a line to gtkrc-winp to 
specify a font you like (choose one which does not have a big 
red A)

  GtkTreeView::allow-rules = 0
  GtkTreeView::expander_size = 11
  
  engine "wimp" 
  {
  }
  font_name = "Verdana 8"   #added line
}
class "*" style "wimp-default"

--
Once this is done, I get no errors at all.

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

13. RE: EuGTK_Win.zip

I Mullins wrote:
> The font errors are because GTK can only use TrueType fonts, and 
> the MS Sans Serif 8 is not real TT. 
> You can prevent this error if you add a line to gtkrc-winp to 
> specify a font you like (choose one which does not have a big 
> red A)
> 
>   GtkTreeView::allow-rules = 0
>   GtkTreeView::expander_size = 11
>   
>   engine "wimp" 
>   {
>   }
>   font_name = "Verdana 8"   #added line
> }
> class "*" style "wimp-default"
> 
> --
> Once this is done, I get no errors at all.

Thanks Irv, that works a treat.

It looks very impressive on XP.  I'll try it on Win98 tonight.
There are still a few sample programs that request specific fonts 
that show error messages ... 
but I doubt (?) it would be easy to find fonts that work on 
everyone's PC (and you have to sometimes specify particular fonts to
demonstrate font usage).

Also some of the demo programs look for graphics in hard coded 
directories.  It doesn't bother me, but others may be confused why
so images don't display.

Keep up the great work.

Regards,

Ray Smith
http://rays-web.com

new topic     » goto parent     » topic index » view message » categorize

14. RE: EuGTK_Win.zip

Ray Smith wrote:
> 
> Thanks Irv, that works a treat.
> 
> It looks very impressive on XP.  I'll try it on Win98 tonight.
> There are still a few sample programs that request specific fonts 
> that show error messages ... 
> but I doubt (?) it would be easy to find fonts that work on 
> everyone's PC (and you have to sometimes specify particular fonts to
> demonstrate font usage).

Yes, I don't know whether the default TT fonts are the same on 
XP as 98, 2K, etc. I also found out that the pop-up hints for 
various controls (when using gtk-wimp) try to use the fonts specified 
by Windows, and so can fail if the user has chosen a non-TT font 
for the hints.

> Also some of the demo programs look for graphics in hard coded 
> directories.  It doesn't bother me, but others may be confused why
> so images don't display.

I'll se if I can fix those.

Irv

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu