If you have tried the sample code in:
You will find that the signal ‘apply‘ doesn’t work yet in the beta release of php-gtk2. Have tried it on both windows and linux. Both just do not respond to the Forward button.
Fundamental to a GtkAssistant is to be able to know when the user clicks the Forward button. In the example above, when the user clicks the Forward button, we should get the contents of the two text entry fields and perform some action. Without the ‘apply’ signal, there’s no way you can get hold of the contents of the two GtkEntry!
Another important method that is missing from this beta release of php-gtk2 is the set_forward_page_func(). This method allows you to set your own self-defined handler that will be called when the usr clicks the Forward button. For example, if your wizard allows users to choose between Express, Complete and Custom setup. If the user chooses Express setup, you can jump from Page 2 direct to Page 6. Currently, this method is missing in the beta release of php-gtk2 - both windows and linux.
Without the ‘apply’ signal and the method set_forward_page_func(), it’s really difficult to come out with anything useful using GtkAssistant.
Hopefully the PHP-GTK2 development team will add these soon…
The place for php-gtk2 sample codes