basic adoption of new mouse binding facility
[ardour.git] / gtk2_ardour / cairo_widget.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);