diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-09-10 19:40:24 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-09-10 19:40:24 -0400 |
commit | 0bc6659f6b12a1c93636013ce7c386116481a2be (patch) | |
tree | 733586eaaf49dba430a665ce3e41b785e5e8e516 | |
parent | 7449de6e8fd71a83ce142269d9c289d7258976e6 (diff) |
look for per-cursor-set hotspot info file when setting up mouse cursors
-rw-r--r-- | gtk2_ardour/mouse_cursors.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/mouse_cursors.cc b/gtk2_ardour/mouse_cursors.cc index 37a0118b33..e8b168630e 100644 --- a/gtk2_ardour/mouse_cursors.cc +++ b/gtk2_ardour/mouse_cursors.cc @@ -137,6 +137,12 @@ MouseCursors::set_cursor_set (const std::string& name) drop_all (); _cursor_set = name; + std::string hotspot_info_path = get_icon_path ("hotspots", _cursor_set, false); + + if (!hotspot_info_path.empty()) { + Gtkmm2ext::CursorInfo::load_cursor_info (hotspot_info_path); + } + /* these will throw exceptions if their images cannot be found. the default hotspot coordinates will be overridden by any |