summaryrefslogtreecommitdiffstats
path: root/src/gui/PropertiesWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
committerDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
commit198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch)
treeeb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/gui/PropertiesWindow.cpp
parent981c7950a6f5fc9f22decaee261556d20b641d5c (diff)
downloadingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.gz
ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.bz2
ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.zip
Make models const in client code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PropertiesWindow.cpp')
-rw-r--r--src/gui/PropertiesWindow.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/PropertiesWindow.cpp b/src/gui/PropertiesWindow.cpp
index 491a255e..26436022 100644
--- a/src/gui/PropertiesWindow.cpp
+++ b/src/gui/PropertiesWindow.cpp
@@ -32,7 +32,8 @@ using namespace Raul;
namespace Ingen {
namespace GUI {
-PropertiesWindow::PropertiesWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& glade_xml)
+PropertiesWindow::PropertiesWindow(BaseObjectType* cobject,
+ const Glib::RefPtr<Gnome::Glade::Xml>& glade_xml)
: Window(cobject)
{
glade_xml->get_widget("properties_vbox", _vbox);
@@ -74,11 +75,18 @@ PropertiesWindow::reset()
_model.reset();
}
+void
+PropertiesWindow::present(SharedPtr<const ObjectModel> model)
+{
+ set_object(model);
+ Gtk::Window::present();
+}
+
/** Set the node this window is associated with.
* This function MUST be called before using this object in any way.
*/
void
-PropertiesWindow::set_object(SharedPtr<ObjectModel> model)
+PropertiesWindow::set_object(SharedPtr<const ObjectModel> model)
{
reset();
_model = model;