GTKTreeView Question.
- From: Harring Figueiredo <harringf yahoo com>
- To: gtk_list gtk gtk <gtk-app-devel-list gnome org>
- Subject: GTKTreeView Question.
- Date: Wed, 16 Jul 2003 15:36:55 -0700 (PDT)
(Sorry for the previous post with the wrong subject header.)
Second question: How can I delete all the selected rows from a treeview.
Calling the foreach func causes an error because when the row is deleted it
renders the model invalid.
=== I dound out the answer to the question below. Thanks.
--- Harring Figueiredo <harringf yahoo com> wrote:
How can I find out that a treeview row (using listStore) has been selected
by
the user ?
I have the follwoing. Is there a different/better way ?
... callback to a "cahnged" signal on the treeview selection...
treeview = gtk_tree_selection_get_tree_view (selection);
if (gtk_tree_selection_get_selected (selection, &model, &iter))
{
g_print("There some selection ...\n");
}
else
{
g_print("NO selection ...\n");
}
Thanks for the help.
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]