Re: Manipulating a simple list
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: Manipulating a simple list
- Date: Tue, 6 Mar 2007 20:46:58 +0100
On Tue, Mar 06, 2007 at 11:36:19AM -0800, lucks wrote:
hi...am new to gtk+ and am trying to build an application..i managed to
display some text in a list but now i want to add a button(delete) which
will delete a selected row from the list...
GtkTreeSelection *sel;
GtkTreeModel *model;
GtkTreeIter iter;
sel = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeview));
if (gtk_tree_selection_get_selected(sel, &model, &iter))
gtk_list_store_remove(GTK_LIST_STORE(model), &iter))
deletes the selected row of a list store.
Yeti
--
Whatever.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]