From dbb8501429910749094c99d95328db3f742baff0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 16 Apr 2014 02:55:08 -0400 Subject: [PATCH] make our intentions even clearer when call Editor::track_canvas_viewport_size_allocated() --- gtk2_ardour/editor.h | 2 +- gtk2_ardour/editor_canvas.cc | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 0159476d72..47021c552b 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -1448,7 +1448,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD Gtk::Allocation _canvas_viewport_allocation; void track_canvas_viewport_allocate (Gtk::Allocation alloc); - bool track_canvas_viewport_size_allocated (); + void track_canvas_viewport_size_allocated (); bool track_canvas_drag_motion (Glib::RefPtr const &, int, int, guint); bool track_canvas_key_press (GdkEventKey *); bool track_canvas_key_release (GdkEventKey *); diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index d4d5f88c52..b2736feaba 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -255,10 +255,10 @@ void Editor::track_canvas_viewport_allocate (Gtk::Allocation alloc) { _canvas_viewport_allocation = alloc; - (void) track_canvas_viewport_size_allocated (); + track_canvas_viewport_size_allocated (); } -bool +void Editor::track_canvas_viewport_size_allocated () { bool height_changed = _visible_canvas_height != _canvas_viewport_allocation.get_height(); @@ -289,8 +289,6 @@ Editor::track_canvas_viewport_size_allocated () update_fixed_rulers(); redisplay_tempo (false); _summary->set_overlays_dirty (); - - return false; } void