replace use of gdk_pixmap_unref() with g_object_unref

git-svn-id: svn://localhost/ardour2/branches/3.0@7184 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-05-28 15:20:39 +00:00
parent 36538ed3df
commit fdf0db02a0
4 changed files with 6 additions and 6 deletions

View file

@ -41,7 +41,7 @@ PortMatrixComponent::PortMatrixComponent (PortMatrix* m, PortMatrixBody* b)
PortMatrixComponent::~PortMatrixComponent ()
{
if (_pixmap) {
gdk_pixmap_unref (_pixmap);
g_object_unref (_pixmap);
}
}
@ -74,7 +74,7 @@ PortMatrixComponent::get_pixmap (GdkDrawable *drawable)
/* make a pixmap of the right size */
if (_pixmap) {
gdk_pixmap_unref (_pixmap);
g_object_unref (_pixmap);
}
_pixmap = gdk_pixmap_new (drawable, _width, _height, -1);