how to use gtk_widget_get()



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]