diff --git a/src/gui/widgets/timeline/timeline-ruler.cpp b/src/gui/widgets/timeline/timeline-ruler.cpp index 7970191c9..ebecc4805 100644 --- a/src/gui/widgets/timeline/timeline-ruler.cpp +++ b/src/gui/widgets/timeline/timeline-ruler.cpp @@ -43,44 +43,44 @@ namespace timeline { TimelineRuler::TimelineRuler() : Glib::ObjectBase("TimelineRuler") - { - set_flags(Gtk::NO_WINDOW); // This widget will not have a window - set_size_request(-1, 20); - - // Install style properties - timeScale = GAVL_TIME_SCALE / 200; - timeOffset = 0; - } +{ + set_flags(Gtk::NO_WINDOW); // This widget will not have a window + set_size_request(-1, 20); + + // Install style properties + timeScale = GAVL_TIME_SCALE / 200; + timeOffset = 0; +} bool TimelineRuler::on_expose_event(GdkEventExpose* event) - { - // This is where we draw on the window - Glib::RefPtr window = get_window(); - if(!window) - return false; - - // Makes sure the widget styles have been loaded - read_styles(); - - // Prepare to render via cairo - Allocation allocation = get_allocation(); - Glib::RefPtr