« Return to Thread: using wimp with new php-gtk v2.0 release

using wimp with new php-gtk v2.0 release

by kksou :: Rate this Message:

Reply to Author | View in Thread

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:


Compare this with the output from beta release:


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:


Compare this with the output from beta release:


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:


Compare this with the output from beta release:


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

 « Return to Thread: using wimp with new php-gtk v2.0 release