GtkEntryCompletion Constructor

GtkEntryCompletion ();

Creates a new GtkEntryCompletion object.

Example 60. A GtkEntryCompletion Sample.

$window = new GtkWindow;

// creates the GtkEntry widget
$entry = new GtkEntry();

// creates the data model
$store = new GtkListStore(Gtk::TYPE_STRING);

// add values to the model

// creates the EntryCompletion object
$completion = new GtkEntryCompletion;

// sets the model

// defines teh data column

// defines the completion for the GtkEntry

// show all