13
0

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

@ -32,7 +32,7 @@ CairoWidget::CairoWidget ()
CairoWidget::~CairoWidget ()
{
if (_pixmap) {
gdk_pixmap_unref (_pixmap);
g_object_unref (_pixmap);
}
}
@ -55,7 +55,7 @@ CairoWidget::on_expose_event (GdkEventExpose *event)
if (_dirty) {
if (_pixmap) {
gdk_pixmap_unref (_pixmap);
g_object_unref (_pixmap);
}
_pixmap = gdk_pixmap_new (drawable, _width, _height, -1);

View File

@ -91,7 +91,7 @@ PortMatrixColumnLabels::compute_dimensions ()
}
cairo_destroy (cr);
gdk_pixmap_unref (pm);
g_object_unref (pm);
/* height of the whole thing */

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);

View File

@ -78,7 +78,7 @@ PortMatrixRowLabels::compute_dimensions ()
}
cairo_destroy (cr);
gdk_pixmap_unref (pm);
g_object_unref (pm);
_width = _longest_bundle_name +
name_pad() * 2;