diff options
author | Carl Hetherington <carl@carlh.net> | 2011-03-04 17:34:50 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-03-04 17:34:50 +0000 |
commit | 88ff3c0bd120090f38d7b5f8d46236c0f296dde0 (patch) | |
tree | de93373d565e297871ba37a9c4bb3fedb822548b /gtk2_ardour/speaker_dialog.h | |
parent | 0da1f2edb204677e353e01f257518703bec43603 (diff) |
Stop speaker positions jumping around when clicked on.
git-svn-id: svn://localhost/ardour2/branches/3.0@9072 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/speaker_dialog.h')
-rw-r--r-- | gtk2_ardour/speaker_dialog.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk2_ardour/speaker_dialog.h b/gtk2_ardour/speaker_dialog.h index 2a63dab44f..4922875f7f 100644 --- a/gtk2_ardour/speaker_dialog.h +++ b/gtk2_ardour/speaker_dialog.h @@ -49,10 +49,15 @@ private: Gtk::Button add_speaker_button; Gtk::Button use_system_button; int32_t selected_speaker; - int width; - int height; - int drag_x; - int drag_y; + int width; ///< width of the circle + int height; ///< height of the circle + int x_origin; ///< x origin of our stuff within the drawing area + int y_origin; ///< y origin of our stuff within the drawing area + /** distance from the centre of the object being dragged to the mouse pointer + * when the drag was started (ie start_pointer - object_position). + */ + double drag_offset_x; + double drag_offset_y; int drag_index; bool darea_expose_event (GdkEventExpose*); |