Re: gtk_object_get_data

> 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;
> = "text_width";
>   gtk_object_getv(GTK_OBJECT(item), 1, &arg);
>   text_width = GTK_VALUE_DOUBLE(arg);

Thanks, works like a charm! :)


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