replace use of gdk_pixmap_unref() with g_object_unref
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 28 May 2010 15:20:39 +0000 (15:20 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 28 May 2010 15:20:39 +0000 (15:20 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7184 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/cairo_widget.cc
gtk2_ardour/port_matrix_column_labels.cc
gtk2_ardour/port_matrix_component.cc
gtk2_ardour/port_matrix_row_labels.cc

index 28d7068bc0b2eff948e157ee6d9dc8f90775d1c0..209770ab03c8c9287cbd8fa3c94425a2820cc055 100644 (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);
index c3b10e289b53a2ab4c6225c2a4b8b01526fc1b21..339767f27dbad33e63aeda70d41586c6f2776545 100644 (file)
@@ -91,7 +91,7 @@ PortMatrixColumnLabels::compute_dimensions ()
        }
 
        cairo_destroy (cr);
-       gdk_pixmap_unref (pm);
+       g_object_unref (pm);
 
        /* height of the whole thing */
 
index 9652a38f210c26bce6a084858811cb59d2219396..440376d1fa0fdcb003b4d004def9bc89c07944a7 100644 (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);
 
index 2bf2b70a27a220cad60a7e04fbb05fc1cd69cb91..57e972acd478a8c869025b2b0dcce8e6c35f2f5e 100644 (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;