w3-tools.com - Free Webmaster Tools and Resources
 
w3-tools.com - Free Webmaster Tools and Resources
 Free Webmaster Tools and Resources

 



PHP-GTK Manual

This manual is provided as a courtesy. It is not an official source. Please check gtk.php.net for updated information.

PHP-GTK Manual

PHP-GTK Manual

GtkItemFactory

A factory class for simplified menu creation.

Object Hierarchy

Direct subclasses

None.

Description

The GtkItemFactory is a class which makes it very easy to create a lot of menu items at once. It supports nested menus, shortcuts and different menu item types as well.

GtkItemFactory has been deprecated since GTK+ 2.0 and should not be used in newly written code.

Constructor

GtkItemFactory (GtkType container_type, String path, GtkAccelGroup accel_group);
-- Creates a new instance of this class.

Methods

create_items()
  Creates the whole menu.
get_item()
  Obtains the menu item which corresponds to path.
get_widget()
  Obtains the widget item which corresponds to path.
get_widget_by_action()
  Obtains the widget which was constructed from the GtkItemFactoryEntry with the given action.
get_item_by_action()
  Obtains the menu item which was constructed from the first GtkItemFactoryEntry with the given action.
delete_item()
  Deletes the menu item which was created for path by the given item factory.
popup()
  Pops up the menu at (x, y).

Newsletter

Join to our newsletter and receive news and updates about our site.
Your name: 
E-mail address: 
Action: 
 

Hosted by

Search

Google
Web w3-tools.com

Links

  What is my IP? Find your IP address!     Valid XHTML 1.0 Transitional  
Copyright © 2006. by w3-tools.com. All rights reserved