Re: gtk_object_get_data
- From: Richard Hult <rhult hem2 passagen se>
- To: gnome-devel-list gnome org
- cc: james daa com au
- Subject: Re: gtk_object_get_data
- Date: Fri, 12 Feb 1999 17:01:19 -0500 (EST)
> You don't use the gtk_object_get_data function for this. That function is
> for getting arbitrary data associated with an object by
> gtk_object_set_data. You probably want to be using gtk_object_getv. The
> code should look something like this:
>
> GtkArg arg;
>
> arg.type = GTK_TYPE_DOUBLE;
> arg.name = "text_width";
> gtk_object_getv(GTK_OBJECT(item), 1, &arg);
> text_width = GTK_VALUE_DOUBLE(arg);
Thanks, works like a charm! :)
Richard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]