man Gtk2::ListStore () - Gtk2::ListStore

NAME

Gtk2::ListStore

HIERARCHY

  Glib::Object
  +----Gtk2::ListStore

INTERFACES

  Gtk2::TreeModel
  Gtk2::TreeDragSource
  Gtk2::TreeDragDest
  Gtk2::TreeSortable

METHODS

liststore = Gtk2::ListStore->new (...)

* ... (list) of strings

$list_store->clear

$list_store->set_column_types (...)

* ... (list) of strings
* ... (list) pairs of column numbers and values
* ... (list) pairs of column numbers and values
Like doing insert followed by set, except that insert_with_values emits only the row-inserted signal, rather than row-inserted, row-changed, and, if the store is sorted, rows-reordered as in the multiple-operation case. Since emitting the rows-reordered signal repeatedly can affect the performance of the program, insert_with_values should generally be preferred when inserting rows in a sorted list store.

$store->reorder (...)

* ... (list) of integers the reordered posistions
Reorders store to follow the order indicated by new_order. Note that this function only works with unsorted stores. A list of position should be passed, one for each item in the list.

SEE ALSO

Gtk2, Glib::Object

COPYRIGHT

Copyright (C) 2003-2005 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.