summaryrefslogtreecommitdiff
path: root/gtk2_ardour/simplerect.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2005-11-12 22:07:07 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2005-11-12 22:07:07 +0000
commit1a3a77607768721f6834ddae09f532cdb6aec4a6 (patch)
treec182c6676f454fb94bd56d84e2ba0ab6463a167d /gtk2_ardour/simplerect.cc
parentbc8174cd083818cdd6328ea729d6ed53a0b8307d (diff)
incomplete changes based on karsten's megapatch
git-svn-id: svn://localhost/trunk/ardour2@81 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/simplerect.cc')
-rw-r--r--gtk2_ardour/simplerect.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk2_ardour/simplerect.cc b/gtk2_ardour/simplerect.cc
index e2d92a08f5..8525a5d47a 100644
--- a/gtk2_ardour/simplerect.cc
+++ b/gtk2_ardour/simplerect.cc
@@ -33,14 +33,14 @@ namespace Canvas
{
SimpleRect::SimpleRect(Group& parentx, double x1, double y1, double x2, double y2)
-: Shape(GNOME_CANVAS_SHAPE(g_object_new(get_type(),0)))
+: Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
{
item_construct(parentx);
set("x1",x1,"y1",y1,"x2",x2,"y2",y2,0);
}
SimpleRect::SimpleRect(Group& parentx)
-: Shape(GNOME_CANVAS_SHAPE(g_object_new(get_type(),0)))
+: Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0)))
{
item_construct(parentx);
}
@@ -57,7 +57,7 @@ namespace
namespace Glib
{
-Gnome::Canvas::SimpleRect* wrap(GnomeCanvasRect* object, bool take_copy)
+Gnome::Canvas::SimpleRect* wrap(GnomeCanvasSimpleRect* object, bool take_copy)
{
return dynamic_cast<Gnome::Canvas::SimpleRect *> (Glib::wrap_auto ((GObject*)(object), take_copy));
}
@@ -78,7 +78,7 @@ const Glib::Class& SimpleRect_Class::init()
if(!gtype_) // create the GType if necessary
{
// Glib::Class has to know the class init function to clone custom types.
- class_init_func_ = &Shape_Class::class_init_function;
+ class_init_func_ = &SimpleRect_Class::class_init_function;
// This is actually just optimized away, apparently with no harm.
// Make sure that the parent type has been created.
@@ -109,14 +109,14 @@ Glib::ObjectBase* SimpleRect_Class::wrap_new(GObject* o)
/* The implementation: */
SimpleRect::SimpleRect(const Glib::ConstructParams& construct_params)
-: Shape(construct_params)
+: Item(construct_params)
{
}
SimpleRect::SimpleRect(GnomeCanvasSimpleRect* castitem)
-: Shape ((GnomeCanvasShape*)(castitem))
+: Item ((GnomeCanvasItem*)(castitem))
{
- }
+}
SimpleRect::~SimpleRect()
{