GTK on Win32 Attempt

Okay, I downloaded the gtk win32 port by Tor Lillqvist :
http://user.sgic.fi/~tml/gimp/win32/

Everything compiled successfully with some tinkering. However, two
windows popped up when gtk.exe was run. I remember, in the beginning,
that the Linux gtk example equivalent did the same. Then Sam made a
change and voila, there was only one.

Some pictures of it running can be seen here:
http://00-50-04-b1-cb-34.bconnected.net/sdl/

How do I merge the GTK and SDL windows on Win32?

Thank you.

Kris Arndt wrote:

Okay, I downloaded the gtk win32 port by Tor Lillqvist :
http://user.sgic.fi/~tml/gimp/win32/

Everything compiled successfully with some tinkering. However, two
windows popped up when gtk.exe was run. I remember, in the beginning,
that the Linux gtk example equivalent did the same. Then Sam made a
change and voila, there was only one.

Some pictures of it running can be seen here:
http://00-50-04-b1-cb-34.bconnected.net/sdl/

How do I merge the GTK and SDL windows on Win32?

taken from the WhatsNew document in SDL:
If you set the SDL_WINDOWID environment variable under UNIX X11,
SDL will use that as the main window instead of creating it’s
own.
This is an unsupported extension to SDL, and not portable at all.

Not portable indeed. I looked at the code and even though I don’t really
know SDL it looks like it would be very difficult to get Win32/SDL/GTK to
work as one.

Kris Arndt wrote:

Okay, I downloaded the gtk win32 port by Tor Lillqvist :
http://user.sgic.fi/~tml/gimp/win32/

Everything compiled successfully with some tinkering. However, two
windows popped up when gtk.exe was run. I remember, in the beginning,
that the Linux gtk example equivalent did the same. Then Sam made a
change and voila, there was only one.

Some pictures of it running can be seen here:
http://00-50-04-b1-cb-34.bconnected.net/sdl/

How do I merge the GTK and SDL windows on Win32?

taken from the WhatsNew document in SDL:
If you set the SDL_WINDOWID environment variable under UNIX X11,
SDL will use that as the main window instead of creating it’s
own.
This is an unsupported extension to SDL, and not portable at all.

Not portable indeed. I looked at the code and even though I don’t really
know SDL it looks like it would be very difficult to get Win32/SDL/GTK to
work as one.

Actually, I just whipped up an equivalent hack for Win32.
You can see it in action at:
http://www.devolution.com/~slouken/SDL/gtk-win32/gtk-example.zip

In order to compile this yourself, you need the latest CVS snapshot of
SDL, and the Win32 GTk libraries available at:
http://www.devolution.com/~slouken/SDL/gtk-win32/gtk-win32.zip

This only works with the DIB version of SDL.

This is absolutely NOT supported. :slight_smile:

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Well, personally, I’d rather wait until there is a Win32 version of the
GIMP! GTK there still seems like it’s in the very alpha stages. At least
by the time they can compile the Gimp with that GTK and it more or less
works, it will probably be somewhat stable. Better to wait rather than to
have to work around half-implemented stuff and buggy implementations.------------------------------------------------------------------------
| Rafael R. Sevilla @Rafael_R_Sevilla_94 |
| Instrumentation, Robotics, and Control Laboratory |

College of Engineering, University of the Philippines, Diliman

“Rafael R. Sevilla 94-22131” wrote:

Well, personally, I’d rather wait until there is a Win32 version of the
GIMP! GTK there still seems like it’s in the very alpha stages. At least
by the time they can compile the Gimp with that GTK and it more or less
works, it will probably be somewhat stable. Better to wait rather than to
have to work around half-implemented stuff and buggy implementations.

I have the same reservations about GTK (let alone ported to another platform
– e.g. win32). However, Gimp does compile and run on Win32.

Actually, there is a Win32 version of the GIMP (that is GTK on Win32 was done
for the express purpose of porting the GIMP). It seems to be fairly stable,
IMHO. I use it for photo editing whenever I need to do that under Windows.
Installation is easy (uses InstallerVISE), and you can download a binary at:

http://www.gimp.org/~tml/gimp/win32/
http://www.gimp.org/~tml/gimp/win32/gimp-setup-19990828.zip

Cheers,

Warren E. Downs
______________________________ Reply Separator _________________________________Subject: Re: [SDL] GTK on Win32 Attempt
Author: at internet-mail
Date: 9/9/99 1:27 PM

Well, personally, I’d rather wait until there is a Win32 version of the
GIMP! GTK there still seems like it’s in the very alpha stages. At least
by the time they can compile the Gimp with that GTK and it more or less
works, it will probably be somewhat stable. Better to wait rather than to
have to work around half-implemented stuff and buggy implementations.


| Rafael R. Sevilla rsevilla at eee.upd.edu.ph |
| Instrumentation, Robotics, and Control Laboratory |

College of Engineering, University of the Philippines, Diliman