summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view_item.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2005-10-10 20:38:53 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2005-10-10 20:38:53 +0000
commit2d32c7da360194e33e821badaf2bff89f3ec70a0 (patch)
tree377c942ce1aba6119484e705c46164292b4e7662 /gtk2_ardour/time_axis_view_item.cc
parenta495630a43966c2d083baea517523a3f60ae30f3 (diff)
more work on actions and general compilability
git-svn-id: svn://localhost/trunk/ardour2@56 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.cc')
-rw-r--r--gtk2_ardour/time_axis_view_item.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk2_ardour/time_axis_view_item.cc b/gtk2_ardour/time_axis_view_item.cc
index 62a1e7d9e6..26235953b1 100644
--- a/gtk2_ardour/time_axis_view_item.cc
+++ b/gtk2_ardour/time_axis_view_item.cc
@@ -607,7 +607,7 @@ TimeAxisViewItem::get_name_text()
* @param color the base color of the item
*/
void
-TimeAxisViewItem::compute_colors(GdkColor& base_color)
+TimeAxisViewItem::compute_colors(Gdk::Color& base_color)
{
unsigned char radius ;
char minor_shift ;
@@ -615,9 +615,9 @@ TimeAxisViewItem::compute_colors(GdkColor& base_color)
unsigned char r,g,b ;
/* FILL: this is simple */
- r = base_color.red/256 ;
- g = base_color.green/256 ;
- b = base_color.blue/256 ;
+ r = base_color.get_red()/256 ;
+ g = base_color.get_green()/256 ;
+ b = base_color.get_blue()/256 ;
fill_color = RGBA_TO_UINT(r,g,b,255) ;
/* for minor colors:
@@ -633,9 +633,9 @@ TimeAxisViewItem::compute_colors(GdkColor& base_color)
/* LABEL: rotate around color wheel by 120 degrees anti-clockwise */
- r = base_color.red/256;
- g = base_color.green/256;
- b = base_color.blue/256;
+ r = base_color.get_red()/256;
+ g = base_color.get_green()/256;
+ b = base_color.get_blue()/256;
if (r > b)
{
@@ -669,9 +669,9 @@ TimeAxisViewItem::compute_colors(GdkColor& base_color)
g += minor_shift;
label_color = RGBA_TO_UINT(r,g,b,255);
- r = (base_color.red/256) + 127 ;
- g = (base_color.green/256) + 127 ;
- b = (base_color.blue/256) + 127 ;
+ r = (base_color.get_red()/256) + 127 ;
+ g = (base_color.get_green()/256) + 127 ;
+ b = (base_color.get_blue()/256) + 127 ;
label_color = RGBA_TO_UINT(r,g,b,255);