[PHP-GTK] using wimp with new php-gtk v2.0 release

[email protected] (kksou) Wed, 5 Mar 2008 07:38:14 -0800 (PST)
Newsgroups php.gtk.general
Message-ID <[email protected]>
Hi,

Have found 3 minor "bugs" with the new version, which I traced to be cause
of using wimp in gtkrc:

1) The downward arrow for the pulldown menu is displaced to the left and to
the bottom by 1 or 2 pixels.

sample code:
http://www.kksou.com/php-gtk2/articles/setup-and-process-GtkComboBox.php

sample output: 
http://www.nabble.com/file/p15853036/0024.1.gif 

Compare this with the output from beta release:
http://www.nabble.com/file/p15853036/0024.gif 

2) The downward arrow for GtkCellRendererCombo is displaced to the left by
about 3 pixels and to the bottom by 1 pixel.

sample code:
http://www.kksou.com/php-gtk2/articles/set-up-combobox-in-treeview-with-colors---Part-3.php

sample output: 
http://www.nabble.com/file/p15853036/0345.1.gif 

Compare this with the output from beta release:
http://www.nabble.com/file/p15853036/0345.gif 

3) You can't set the background color of a GtkButton

sample code:
http://www.kksou.com/php-gtk2/articles/set-the-background-color-of-GtkButton.php

sample output: 
http://www.nabble.com/file/p15853036/0023.1.gif 

Compare this with the output from beta release:
http://www.nabble.com/file/p15853036/0023.gif 

I found out that if I comment out the following 3 lines in gtkrc,
  #engine "wimp" 
  #{
  #}

All the above 3 problems are gone!

So apparently, it's the wimp engine that causes the 'bugs'!

I researched the net and it says when using wimp, "when running on Windows
XP or 2003, the Windows theming API is used so that GTK widgets look like
native widgets."

Could somebody please explain exactly what difference in widgets do we see
between using and NOT using wimp?

I replaced
	engine "wimp" 
	{
	}
by
	font_name = "tahoma 8"
in gtkrc

From what I see, all widgets looked exactly the same - whether it's using
wimp or not. This is true for all widgets - be it GtkButtons, GtkComboBox,
GtkMenu or GtkToolbar. I really don't see any difference between using and
not using wimp in php-gtk.

So what do they mean by "GTK widgets look like native widgets"? What are the
missing 'features' if we don't use the wimp engine on windows platform?

Regards,
/kksou

-- 
View this message in context: http://www.nabble.com/using-wimp-with-new-php-gtk-v2.0-release-tp15853036p15853036.html
Sent from the Php - GTK - General mailing list archive at Nabble.com.