What is the difference between manage and Gtk::manage ?
ui/dialog/document-properties.cpp:290 Gtk::HBox *space = manage (new Gtk::HBox); ui/dialog/document-properties.cpp:95 _page_page(Gtk::manage(new UI::Widget::NotebookPage(1, 1, true, true))),
Use of manage in my own code produces ‘manage’ was not declared in this scope even when every head has been included from the dp code. very odd.
I'm also having trouble with ButtonBox:
error: no matching function for call to ‘Gtk::ButtonBox::ButtonBox()’ even with include gtkmm/buttonbox.h
What is going on?
Martin
I'm a bit rusty on C++ namespaces but I think that Gtk::manage and manage are the same here...
DocumentProperties inherits from UI::Widget::Panel, which inherits Gtk::VBox. As such, you can access stuff in the Gtk (or UI::Widget) namespace without using the prefix.
If you try to write your own code (which *doesn't* inherit a Gtk:: class) then you can't access Gtk namespace stuff without putting "Gtk::" on the front.
I suspect you have a similar problem with Gtk::ButtonBox but it's hard to tell without seeing the troublesome code.
Can someone with stronger C++-fu confirm?
AV
On 16 May 2013 14:39, Martin Owens <doctormo@...400...> wrote:
What is the difference between manage and Gtk::manage ?
ui/dialog/document-properties.cpp:290 Gtk::HBox *space = manage (new Gtk::HBox); ui/dialog/document-properties.cpp:95 _page_page(Gtk::manage(new UI::Widget::NotebookPage(1, 1, true, true))),
Use of manage in my own code produces ‘manage’ was not declared in this scope even when every head has been included from the dp code. very odd.
I'm also having trouble with ButtonBox:
error: no matching function for call to ‘Gtk::ButtonBox::ButtonBox()’ even with include gtkmm/buttonbox.h
What is going on?
Martin
AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
That makes sense Alex, thanks for your help!
Martin,
On Thu, 2013-05-16 at 15:30 +0100, Alex Valavanis wrote:
I'm a bit rusty on C++ namespaces but I think that Gtk::manage and manage are the same here...
DocumentProperties inherits from UI::Widget::Panel, which inherits Gtk::VBox. As such, you can access stuff in the Gtk (or UI::Widget) namespace without using the prefix.
participants (2)
-
Alex Valavanis
-
Martin Owens