If you have been wondering what’s GtkAction and GtkActionGroup — what are they? what’s their use? — then take a look at some of the sample codes below:
Sample Code 432: How to setup and process a GtkButton using GtkAction - Part 1?
Sample Code 433: How to setup and process a GtkButton using GtkAction - Part 2 - add stock image?
Sample Code 434: How to activate deactivate a bunch of GtkButtons using GtkAction and GtkActionGroup?
Sample Code 435: How to hide unhide a bunch of GtkLabels using GtkAction and GtkActionGroup?
Sample Code 436: How to set up toolbar using GtkAction - Part 1?
Sample Code 437: How to set up toolbar using GtkAction - Part 2 - add accelerators?
If you’re developing serious applications using PHP-GTK2, take a look at these examples. You will soon find that this is a useful widget that has been so little documented, but extremely useful in some occasions.
I’ve only finished half of these sample codes. There are many more to come. You will see true powers of GtkAction and GtkActionGroup when it comes to managing menu items and toolbar items concurrently. It allows you to maintain consistencies across menu items and toolbar items very efficiently as you shall soon see.
/kksou
http://www.kksou.com/php-gtk2
The place for php-gtk2 sample codes