Webhosting and cheap domain registration service
  

 Home

GtkListItem
Prev GtkListItem Constructor Next

GtkListItem Constructor

GtkListItem ([string label ]);

A GtkListItem is a container widget, derived indirectly from GtkBin and so only able to hold one direct child. Most of the time, the child you will want the list item to contain will be a GtkLabel - and so, in common with all objects that have an alternative '-with-label' constructor available in GTK, we have the option in PHP-GTK to pass the label's text as a parameter during construction, e.g.

If you wanted something other than a label in the list item, you simply omit the parameter and add the required widget:

or, if you wanted perhaps a label plus some other item:

Whatever your list item consists of, the GtkList will only respond to it as a GtkListItem. If you have different kinds of list item contents in the same list, you will need to exercise a great deal of caution if you are connecting callbacks to any form of select signal.

See also: GtkList, which has a working example under the constructor.


Prev Home Next
GtkListItem Up GtkListItem::select

 

  

Network sites:

Cheap domain registrar's cheap domain registration service

$8.95 domain registration : Buy domain name or register domain name 

 
 
Quotes:
Pale Death with impartial tread beats at the poor man's cottage door and at the palaces of kings.  
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php