how to use gtk_widget_get()
- From: Joel Uckelman <uckelman nomic net>
- To: gtk-list gnome org
- Subject: how to use gtk_widget_get()
- Date: Sat, 25 Aug 2001 02:28:28 -0500
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.
Thanks!
--
J.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]