X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fimageframe.cc;h=ac30511864f3b39aae446dc4d89b99a981977adf;hb=8d1b41180ab0c5901894609e1b58f79419757165;hp=a376058151121f196bda48c4c4ae9c9fd596d8ca;hpb=bac3c6bc0f36623e200fe30fc8cc4137ab96fba7;p=ardour.git diff --git a/gtk2_ardour/imageframe.cc b/gtk2_ardour/imageframe.cc index a376058151..ac30511864 100644 --- a/gtk2_ardour/imageframe.cc +++ b/gtk2_ardour/imageframe.cc @@ -4,7 +4,6 @@ #include "imageframe_p.h" #include -/* $Id$ */ /* rect.c * @@ -36,7 +35,7 @@ ImageFrame::ImageFrame(Group& parentx, ArtPixBuf* pbuf, double x, double y, Gtk: : Item(GNOME_CANVAS_ITEM(g_object_new(get_type(),0))) { item_construct(parentx); - set("x1",x1,"y1",y1,"x2",x2,"y2",y2,0); + set("pixbuf", pbuf, "x", x,"y", y,"width", w,"height", h, 0); } ImageFrame::ImageFrame(Group& parentx) @@ -59,7 +58,7 @@ namespace Glib Gnome::Canvas::ImageFrame* wrap(GnomeCanvasImageFrame* object, bool take_copy) { - return dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)); + return dynamic_cast (Glib::wrap_auto ((GObject*)(object), take_copy)); } } /* namespace Glib */ @@ -167,12 +166,18 @@ Glib::PropertyProxy_ReadOnly ImageFrame::property_drawwidth() const { return Glib::PropertyProxy_ReadOnly (this, "drawwidth"); } - -Glib::PropertyProxy ImageFrame::property_anchor() +Glib::PropertyProxy ImageFrame::property_height() +{ + return Glib::PropertyProxy (this, "height"); +} +Glib::PropertyProxy_ReadOnly ImageFrame::property_height() const +{ + return Glib::PropertyProxy_ReadOnly (this, "height"); +} +Glib::PropertyProxy ImageFrame::property_anchor() { return Glib::PropertyProxy(this, "anchor"); } - Glib::PropertyProxy_ReadOnly ImageFrame::property_anchor() const { return Glib::PropertyProxy_ReadOnly(this, "anchor");