Re: uiinfo problem
- From: Damon Chaplin <damon ximian com>
- To: Ricardo Cabral <bfe00991 mail telepac pt>
- Cc: gnome-devel-list gnome org
- Subject: Re: uiinfo problem
- Date: Thu, 01 Mar 2001 23:09:31 +0000
Ricardo Cabral wrote:
> this works this way, but if i add note_text as a data pointer to the
> callback, whether casting it or not to gpointer, like this:
>
> on_note_is_editable_activate, note_text, NULL,
>
> or like this:
> on_note_is_editable_activate, (gpointer)note_text, NULL,
>
> i get this
>
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include
> -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
> -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/X11R6/include
> -I/usr/lib/glib/include -g -O2 -Wall -Wunused -c interface.c
> interface.c:92: initializer element is not constant
> interface.c:92: (near initialization for
> `file1_menu_uiinfo[2].user_data')
> make: *** [interface.o] Error 1
Your note_text pointer doesn't even get set until you call create_messagebox1(),
so how could it be stored in this static struct?
You should probably use the lookup_widget() function that Glade outputs
in support.c to get a pointer to the widget.
(See the Glade FAQ on http://glade.on.org)
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]