Re: gtk_selection_get_selected()



On Tue, 2003-04-08 at 10:30, Jens Hornung wrote:
Hi,

i've got some problems with the function 'gtk_selection_get_selected'. Here's a part of the code:

...
GtkListStore *list;
<snip>
if((gtk_tree_selection_get_selected(GTK_TREE_SELECTION(selection),
              GTK_TREE_MODEL(&list),

This should be GTK_TREE_MODEL(list).
A GtkListStore implements the GtkTreeModel inteface.

              &iter))
      == TRUE)
{
    gtk_tree_model_get_value(GTK_TREE_MODEL(list),

You got it right here.

              &iter,
              1,
              value);
<snip>

--
J5




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