Re: gtk_selection_get_selected()
- From: John Palmieri <johnp martianrock com>
- To: John Palmieri <johnp martianrock com>
- Cc: Jens Hornung <dncn gmx net>, "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: gtk_selection_get_selected()
- Date: 08 Apr 2003 11:16:05 -0400
Woops. The function calls for a pointer to the TreeModel so in that
case one should do (GtkTreeModel **)&list or cleaner:
GtkTreeModel *model = GTK_TREE_MODEL(list);
&model
--
J5
On Tue, 2003-04-08 at 11:08, John Palmieri wrote:
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]