summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-04-16 02:55:08 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-04-16 02:55:08 -0400
commitdbb8501429910749094c99d95328db3f742baff0 (patch)
tree88bdf33a7f2cb19cafbe69f0da37892aa51abe28 /gtk2_ardour
parentfea4f1424290fe84b8bd35cd1458f4f3ac66a21a (diff)
make our intentions even clearer when call Editor::track_canvas_viewport_size_allocated()
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.h2
-rw-r--r--gtk2_ardour/editor_canvas.cc6
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<Gdk::DragContext> 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