diff options
author | David Robillard <d@drobilla.net> | 2011-05-13 02:57:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-13 02:57:36 +0000 |
commit | 198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch) | |
tree | eb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/gui/ObjectMenu.hpp | |
parent | 981c7950a6f5fc9f22decaee261556d20b641d5c (diff) | |
download | ingen-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/ObjectMenu.hpp')
-rw-r--r-- | src/gui/ObjectMenu.hpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/gui/ObjectMenu.hpp b/src/gui/ObjectMenu.hpp index 77f90e53..ffac870d 100644 --- a/src/gui/ObjectMenu.hpp +++ b/src/gui/ObjectMenu.hpp @@ -41,7 +41,7 @@ class ObjectMenu : public Gtk::Menu public: ObjectMenu(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& xml); - void init(SharedPtr<ObjectModel> object); + void init(SharedPtr<const ObjectModel> object); protected: void on_menu_learn(); @@ -53,15 +53,16 @@ protected: void property_changed(const Raul::URI& predicate, const Raul::Atom& value); - bool _enable_signal; - SharedPtr<ObjectModel> _object; - Gtk::MenuItem* _learn_menuitem; - Gtk::MenuItem* _unlearn_menuitem; - Gtk::CheckMenuItem* _polyphonic_menuitem; - Gtk::MenuItem* _disconnect_menuitem; - Gtk::MenuItem* _rename_menuitem; - Gtk::MenuItem* _destroy_menuitem; - Gtk::MenuItem* _properties_menuitem; + SharedPtr<const ObjectModel> _object; + Gtk::MenuItem* _learn_menuitem; + Gtk::MenuItem* _unlearn_menuitem; + Gtk::CheckMenuItem* _polyphonic_menuitem; + Gtk::MenuItem* _disconnect_menuitem; + Gtk::MenuItem* _rename_menuitem; + Gtk::MenuItem* _destroy_menuitem; + Gtk::MenuItem* _properties_menuitem; + + bool _enable_signal; }; } // namespace GUI |