saving reference to GTK::DrawingArea or GDK::Drawable in class



I'm using glade-2 with gtkmm to write a C++ application, and the Class
I'm writing will need to hold a reference to the DrawingArea that it
is plotting to. Currently, I am passing in the GTK::DrawingArea object
into the constructor of the class. I am able to use it in that
constructor, but I need to save the reference to the object to use in
the other methods of the class.

I've tried every way I could think of, with varying results (none of
which was a compilable program). Does anybody have a suggestion for
what I could try? Thanks!

 - Jeff



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