Re: Selected widget visibility on clists and trees [gtk 1.2]



 How can I find out that a treeview row (useng 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]