[gtkmm] beginner´s question
- From: "Andreas B. Thun" <abt gmx de>
- To: gtkmm-list gnome org
- Subject: [gtkmm] beginnerīs question
- Date: Sat, 27 Dec 2003 16:52:47 +0100
Hi mailinglist,
I am not very good in C++, maybe someone can help me.
I have a class ConstraintGui with a private member
m_TreeBrowserBox.
The constructor of a friend class ConstraintTypesBrowser
creates a TreeBrowserBox I want to assign to m_TreeBrowserBox.
I am doing something wrong there, because
guiRef.m_TreeBrowserBox.pack_start(myTreeBrowserBox);
will not compile:
Gtk::VBox& Gtk::VBox::operator=(const Gtk::VBox&)' discards qualifiers
Can someone throw light on this?
class ConstraintGui : public Gtk::Window {
public:
ConstraintGui();
virtual ~ConstraintGui();
friend class ConstraintTypesBrowser;
private:
Gtk::VBox m_TreeBrowserBox;
}; // class
ConstraintTypesBrowser::ConstraintTypesBrowser(
const ConstraintGui &constraintGuiRef
:
m_Frame("my frame:")
{
...
// Created a box I want to assign to m_TreeBrowserBox
// How can I assing myTreeBrowserBox to m_TreeBrowserBox?
// I am a friend class so I should have access to the
// private member m_TreeBrowserBox of class ConstraintGui
guiRef.m_TreeBrowserBox.pack_start(myTreeBrowserBox); // will not compile
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]