Re: how to use gtk_widget_get()
- From: Thomas Mailund <mailund mailund dk>
- To: GTK+ mailing list <gtk-list gnome org>
- Subject: Re: how to use gtk_widget_get()
- Date: 25 Aug 2001 16:43:10 +0930
On Sat, 2001-08-25 at 16:58, Joel Uckelman wrote:
> When I run this bit of code:
>
> GtkArg arg;
> gint h1;
>
> arg.type = GTK_TYPE_UINT;
> arg.name = "row-height";
> gtk_widget_get(clist, &arg);
> h1 = GTK_VALUE_UINT(arg)-4;
>
> I get the following runtime warning:
>
> Gtk-WARNING **: gtk_object_arg_get(): could not find argument "row-height"
> in the `GtkCList' class ancestry
>
> But according to the documentation for GtkCList, "row-height" is listed as
> an arg. It seems to me that this should work for getting the row height,
> but apparently not--and I don't see any other way to get it. If anybody
> spots what's the problem here, I'd appreciate hearing about it.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]