gtk_object_set_data_full
- From: Collin Starkweather <collin starkweather collinstarkweather com>
- To: gtk-app-devel-list gnome org
- Subject: gtk_object_set_data_full
- Date: 04 Sep 2002 22:29:24 -0600
I'm very new to Gtk and not so hot with C, so please bear with me.
I'm trying to set data using gtk_object_set_data_full() to keep track of
some child widgets of my main window.  I'm using the Gnome 1.x
libraries.
To do so, I'm trying something like
  gtk_object_set_data_full( 
    GTK_OBJECT(main_window), 
    "tree_view", 
    gtk_object_ref(GTK_OBJECT(tree_view)), 
    gtk_object_unref 
  );
where tree_view is a GtkTree widget and which is consistent with an
example I saw in a mailing list somewhere.
I'm getting an error:
  passing arg 4 of `gtk_object_set_data_full' from incompatible pointer
type
Unfortunately, I can't find any documentation for
gtk_object_set_data_full other than the prototype in the generic API
documentation such as
  http://developer.gnome.org/doc/API/2.0/gtk/gtkobject.html
which seems like it may be helpful if I had alot more experience in Gtk
and/or C.  A bit of a chicken-and-egg problem there.
There's also no mention of it I can find in the book I'm using, SAMS
"Teach Yourself Gtk+ Programming in 21 Days."  (I know, I know, it's
probably not the most comprehensive manual out there, but I'm just
learning.)
Any suggestions would be appreciated.
-Collin
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Collin Starkweather              http://www.collinstarkweather.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]