diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2005-11-28 22:36:26 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2005-11-28 22:36:26 +0000 |
commit | 2b49b2433b6dc06a52b0848af62373c747f18ac9 (patch) | |
tree | 10456e452edb340f68a1229afa5af9aadd3ba11b /gtk2_ardour/utils.cc | |
parent | d6a27c9537926e4ec7bd3371da97a2d1f85b6e86 (diff) |
mega commit to remove gtk_object cruft, and much other stuff
git-svn-id: svn://localhost/trunk/ardour2@139 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r-- | gtk2_ardour/utils.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index a25067c35e..8998b56229 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -34,6 +34,7 @@ #include "utils.h" #include "i18n.h" #include "rgb_macros.h" +#include "canvas_impl.h" using namespace std; using namespace Gtk; @@ -502,3 +503,8 @@ rgba_from_style (string style, uint32_t r, uint32_t g, uint32_t b, uint32_t a) return (uint32_t) RGBA_TO_UINT(r,g,b,a); } +bool +canvas_item_visible (ArdourCanvas::Item* item) +{ + return (item->gobj()->object.flags & GNOME_CANVAS_ITEM_VISIBLE) ? true : false; +} |