From 183f69970c6c436b102f8b2fbe1bc6070c9e9bfe Mon Sep 17 00:00:00 2001 From: Nick Mainsbridge Date: Sun, 13 Nov 2005 03:53:51 +0000 Subject: some C++-ification of GnomeCanvasBlah git-svn-id: svn://localhost/trunk/ardour2@82 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_time_axis.cc | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) (limited to 'gtk2_ardour/automation_time_axis.cc') diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 6f47905f02..4e548491e0 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -53,18 +53,26 @@ AutomationTimeAxisView::AutomationTimeAxisView (Session& s, Route& r, PublicEdit auto_play_item = 0; ignore_state_request = false; - base_rect = gnome_canvas_item_new (GNOME_CANVAS_GROUP(canvas_display), - gnome_canvas_simplerect_get_type(), - "x1", 0.0, - "y1", 0.0, - "x2", 1000000.0, - "outline_color_rgba", color_map[cAutomationTrackOutline], - /* outline ends and bottom */ - "outline_what", (guint32) (0x1|0x2|0x8), - "fill_color_rgba", color_map[cAutomationTrackFill], - NULL); - - gtk_object_set_data (GTK_OBJECT(base_rect), "trackview", this); + // base_rect = gnome_canvas_item_new (GNOME_CANVAS_GROUP(canvas_display), + // gnome_canvas_simplerect_get_type(), + // "x1", 0.0, + // "y1", 0.0, + // "x2", 1000000.0, + // "outline_color_rgba", color_map[cAutomationTrackOutline], + // /* outline ends and bottom */ + // "outline_what", (guint32) (0x1|0x2|0x8), + // "fill_color_rgba", color_map[cAutomationTrackFill], + // NULL); + base_rect = new Gnome::Canvas::SimpleRect(*canvas_display); + base_rect->set_property ("x1", 0.0); + base_rect->set_property ("y1", 0.0); + base_rect->set_property ("x2", 1000000.0); + base_rect->set_property ("outline_color_rgba", color_map[cAutomationTrackOutline]); + /* outline ends and bottom */ + base_rect->set_property ("outline_what", (guint32) (0x1|0x2|0x8)); + base_rect->set_property ("fill_color_rgba", color_map[cAutomationTrackFill]); + + base_rect->set_data ("trackview", this); gtk_signal_connect (GTK_OBJECT(base_rect), "event", (GtkSignalFunc) PublicEditor::canvas_automation_track_event, -- cgit v1.2.3