X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fpixbuf.cc;h=d285c41b10e8ccd850f983d35c4cf113e5730739;hb=a992a2e6e07c1eb9465b2437aebe7921058f428b;hp=e576003b579a7992910b4fb4d6bd0df1cc6db5fc;hpb=30968b854257cb5f9159ca59589f783c85615601;p=ardour.git diff --git a/libs/canvas/pixbuf.cc b/libs/canvas/pixbuf.cc index e576003b57..d285c41b10 100644 --- a/libs/canvas/pixbuf.cc +++ b/libs/canvas/pixbuf.cc @@ -1,17 +1,38 @@ +/* + Copyright (C) 2011-2013 Paul Davis + Author: Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + #include #include -#include "pbd/xml++.h" - #include "canvas/pixbuf.h" using namespace std; using namespace ArdourCanvas; -Pixbuf::Pixbuf (Group* g) - : Item (g) +Pixbuf::Pixbuf (Canvas* c) + : Item (c) +{ +} + +Pixbuf::Pixbuf (Item* parent) + : Item (parent) { - } void @@ -44,15 +65,8 @@ Pixbuf::set (Glib::RefPtr pixbuf) end_change (); } -XMLNode * -Pixbuf::get_state () const -{ - /* XXX */ - return new XMLNode ("Pixbuf"); +Glib::RefPtr +Pixbuf::pixbuf() { + return _pixbuf; } -void -Pixbuf::set_state (XMLNode const * /*node*/) -{ - /* XXX */ -}