Ethereal-dev: [Ethereal-dev] GTK-WIMP: Win32 native themes for GTK2

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sat, 21 Feb 2004 14:33:52 +0100
Hi List!

Evan Martin wrote:
On Wed, Jan 14, 2004 at 10:37:00PM +0100, Ulf Lamping wrote:
  
I'm interested, using the default win32 fonts for all menus and such, as 
this will look much more familiar to win32 users, than the GTK defaults.

Allin Cottrell has written code to do exactly this, see:

http://www.ecn.wfu.edu/~cottrell/gtk_win32/#winfont

The code works fine in it's GTK1 version, but the GTK2 version fails (at 
least on my Win XP machine),
although Allin reported that it works on his systems (Win 98 and XP) ok.
    
This probably belongs in your GTK theme, not in your application.  I
know I tried to do something like this when I was writing gtk-nativewin
(now part of gtk-wimp: http://gtk-wimp.sourceforge.net/).  Looking at
their screenshots, it appears they actually may use Windows fonts
already. 

  
Evan Martin has pointed me to:

http://gtk-wimp.sourceforge.net/

A win32 specific theme for GTK2 (not working with GTK1), released under LGPL.

This makes Ethereal looking much more like a native win32 application :-)

It includes the font size thing and many of the widgets.

It's easy to "use", only copy one dll in the GTK dirs and one gtkrc file.

Here's an example of the print dialog with the default XP theme:

print dialog with XP theme

And that's how it's usually look like:

normal print dialog

This is achieved without changing a single line of code in Ethereal!

At a first sight, I think it's a very good way to do this kind of things.

What do others think?

Regards, ULFL