Gtk
view release on metacpan or search on metacpan
}
void
remove_items(self, ...)
Gtk::List self
CODE:
{
GList * list = 0;
int i;
for(i=1;i<items;i++) {
GtkObject * o;
o = SvGtkObjectRef(ST(i), "Gtk::ListItem");
if (!o)
croak("item cannot be undef");
list = g_list_prepend(list, GTK_LIST_ITEM(o));
}
g_list_reverse(list);
gtk_list_remove_items(self, list);
g_list_free(list);
}
void
gtk_list_clear_items(self, start, end)
Gtk::List self
int start
int end
void
gtk_list_select_item(self, the_item)
Gtk::List self
int the_item
void
gtk_list_unselect_item(self, the_item)
Gtk::List self
int the_item
void
gtk_list_select_child(self, widget)
Gtk::List self
Gtk::Widget widget
void
gtk_list_unselect_child(self, widget)
Gtk::List self
Gtk::Widget widget
int
gtk_list_child_position(self, widget)
Gtk::List self
Gtk::Widget widget
void
gtk_list_set_selection_mode(self, mode)
Gtk::List self
Gtk::SelectionMode mode
void
selection(list)
Gtk::List list
PPCODE:
{
GList * selection = list->selection;
while(selection) {
EXTEND(sp,1);
PUSHs(sv_2mortal(newSVGtkObjectRef(GTK_OBJECT(selection->data),0)));
selection=selection->next;
}
}
void
children(list)
Gtk::List list
PPCODE:
{
GList * children = list->children;
while(children) {
EXTEND(sp,1);
PUSHs(sv_2mortal(newSVGtkObjectRef(GTK_OBJECT(children->data),0)));
children=children->next;
}
}
#endif
( run in 0.730 second using v1.01-cache-2.11-cpan-5511b514fd6 )