size-based scrolling and right-click pages for editor notebook
[ardour.git] / gtk2_ardour / editor_rulers.cc
index 536c1d1e226a027e0add5db9ee39de527909deea..1fe4e0711cad625dc3cee7957d329d8f61d2f98a 100644 (file)
@@ -520,7 +520,7 @@ Editor::update_ruler_visibility ()
 
        lab_children.clear();
 
-       // leave the last one (the time_canvas_scroller) intact
+       // leave the last one (the time_canvas) intact
        while (ruler_children.size() > 1) {
                ruler_children.pop_front();
        }
@@ -617,7 +617,7 @@ Editor::update_ruler_visibility ()
        
        if (ruler_shown[ruler_time_tempo]) {
                lab_children.push_back (Element(tempo_label, PACK_SHRINK, PACK_START));
-               gtk_object_get (GTK_OBJECT(tempo_group), "y", &old_unit_pos);
+               old_unit_pos = tempo_group->property_y();
                if (tbpos != old_unit_pos) {
                        tempo_group->move(0.0, tbpos - old_unit_pos);
                }