+ drop_all ();
+ Gtkmm2ext::CursorInfo::drop_cursor_info();
+ _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
+ data found by Gtkmm2ext::Cursors::load_cursor_info(). the values
+ here from the set of cursors used by Ardour; new cursor/icon
+ sets should come with a hotspot info file.
+ */
+
+ zoom_in = make_cursor ("zoom_in_cursor", 10, 5);
+ zoom_out = make_cursor ("zoom_out_cursor", 5, 5);
+ scissors = make_cursor ("scissors", 5, 0);
+ grabber = make_cursor ("grabber", 5, 0);
+ grabber_note = make_cursor ("grabber_note", 5, 10);
+ grabber_edit_point = make_cursor ("grabber_edit_point", 5, 17);
+ left_side_trim = make_cursor ("trim_left_cursor", 5, 11);
+ anchored_left_side_trim = make_cursor ("anchored_trim_left_cursor", 5, 11);
+ right_side_trim = make_cursor ("trim_right_cursor", 23, 11);
+ anchored_right_side_trim = make_cursor ("anchored_trim_right_cursor", 23, 11);
+ left_side_trim_right_only = make_cursor ("trim_left_cursor_right_only", 5, 11);
+ right_side_trim_left_only = make_cursor ("trim_right_cursor_left_only", 23, 11);
+ fade_in = make_cursor ("fade_in_cursor", 0, 0);
+ fade_out = make_cursor ("fade_out_cursor", 29, 0);
+ resize_left = make_cursor ("resize_left_cursor", 3, 10);
+ resize_top_left = make_cursor ("resize_top_left_cursor", 3, 3);
+ resize_top = make_cursor ("resize_top_cursor", 10, 3);
+ resize_top_right = make_cursor ("resize_top_right_cursor", 18, 3);
+ resize_right = make_cursor ("resize_right_cursor", 24, 10);
+ resize_bottom_right = make_cursor ("resize_bottom_right_cursor", 18, 18);
+ resize_bottom = make_cursor ("resize_bottom_cursor", 10, 24);
+ resize_bottom_left = make_cursor ("resize_bottom_left_cursor", 3, 18);
+ move = make_cursor ("move_cursor", 11, 11);
+ expand_left_right = make_cursor ("expand_left_right_cursor", 11, 4);
+ expand_up_down = make_cursor ("expand_up_down_cursor", 4, 11);
+ selector = make_cursor ("i_beam_cursor", 4, 11);
+
+ Gdk::Color fbg ("#ffffff");
+ Gdk::Color ffg ("#000000");
+
+ {
+ RefPtr<Bitmap> source = Bitmap::create ((char const *) fader_cursor_bits, fader_cursor_width, fader_cursor_height);
+ RefPtr<Bitmap> mask = Bitmap::create ((char const *) fader_cursor_mask_bits, fader_cursor_width, fader_cursor_height);
+ fader = new Cursor (source, mask, ffg, fbg, fader_cursor_x_hot, fader_cursor_y_hot);