Re: gtk_clist_append
- From: srinivas <srinivas comodo com>
- To: Daniel Brockman <daniel brockman se>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk_clist_append
- Date: Mon, 16 May 2005 17:33:33 +0530
thanks for the valuable suggestion. in the same way i have one more
query.
i am developing gui with glade and c. i have a file selection widget and
a clist widget, when i selected the file from the file selection widget
and pressed ok, the selected file path has to be displayed on to the
clist widget. how can i get this functionality.
thanks once again;
vasu.
On Mon, 2005-05-16 at 17:23, Daniel Brockman wrote:
srinivas <srinivas comodo com> writes:
Gtk-CRITICAL **: file gtkclist.c: line 2673 (gtk_clist_append):
assertion `GTK_IS_CLIST (clist)' failed.
how can i resolve this
This should be in some kind of FAQ.
You have to pass a pointer to an actual GtkCList to the function.
You cannot pass a NULL pointer and expect it to work. I'll repeat:
The `gtk_clist_append' function needs a pointer to a GtkCList object,
and there is no GtkCList object at memory address 0x00000000.
Let me guess: Your code looks either like this,
GtkCList *my_clist = NULL;
gchar *text[] = { "foo", "bar" };
gtk_clist_append (my_clist, text);
or even like this,
GtkCList *my_clist;
gchar *text[] = { "foo", "bar" };
gtk_clist_append (my_clist, text);
when it should really look like this:
GtkCList *my_clist = gtk_clist_new (2);
gchar *text[] = { "foo", "bar" };
gtk_clist_append (my_clist, text);
By the way, GtkCList is deprecated and should not be used in
newly-written code (which you already know if you have read the
documentation). Use GtkTreeView instead.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]