X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmouse_cursors.h;h=8cd98ac32c9befb51d978c503bfc8d4bfcbab340;hb=52275254a7adb9a446c104cc7dcfde82d1792786;hp=7f43e19eecccbbd2daaf80a145b79aa040a98c3b;hpb=ced4378d0914bcfb926267772c45d1d23f3bed38;p=ardour.git diff --git a/gtk2_ardour/mouse_cursors.h b/gtk2_ardour/mouse_cursors.h index 7f43e19eec..8cd98ac32c 100644 --- a/gtk2_ardour/mouse_cursors.h +++ b/gtk2_ardour/mouse_cursors.h @@ -73,13 +73,13 @@ public: Gdk::Cursor* expand_left_right; Gdk::Cursor* expand_up_down; - /* This cursor is not intended to be used directly, it just + /* This cursor is not intended to be used directly, it just serves as an out-of-bounds value when we need to indicate "no cursor". NULL/0 doesn't work for this, because it is actually a valid value for a Gdk::Cursor - it indicates "use the parent window's cursor" */ - + static bool is_invalid (Gdk::Cursor* c) { if (!_invalid) { create_invalid(); } return c == _invalid; } static Gdk::Cursor* invalid_cursor() { if (!_invalid) { create_invalid(); } return _invalid; }