summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui2.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-02-13 14:01:32 +0100
committerRobin Gareus <robin@gareus.org>2017-02-13 18:44:59 +0100
commit9ce55c1b3d8236d191bd609edc438b19660c1fe6 (patch)
treec73654c68e50e80baf2b7109ba406f4d8b497756 /gtk2_ardour/ardour_ui2.cc
parentc5487498ab3098717f7ea98d9e0857e47a960469 (diff)
remove unused background expose
Diffstat (limited to 'gtk2_ardour/ardour_ui2.cc')
-rw-r--r--gtk2_ardour/ardour_ui2.cc55
1 files changed, 0 insertions, 55 deletions
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc
index 833ce6b617..71c6c6b780 100644
--- a/gtk2_ardour/ardour_ui2.cc
+++ b/gtk2_ardour/ardour_ui2.cc
@@ -266,59 +266,6 @@ ARDOUR_UI::update_clock_visibility ()
}
}
-bool
-ARDOUR_UI::transport_expose (GdkEventExpose* ev)
-{
-return false;
- int x0, y0;
- Gtk::Widget* window_parent;
- Glib::RefPtr<Gdk::Window> win = Gtkmm2ext::window_to_draw_on (transport_table, &window_parent);
- Glib::RefPtr<Gtk::Style> style = transport_table.get_style();
- if (!win || !style) {
- return false;
- }
-
- Cairo::RefPtr<Cairo::Context> cr = transport_table.get_window()->create_cairo_context ();
-
- cr->rectangle (ev->area.x, ev->area.y, ev->area.width, ev->area.height);
- cr->clip ();
-
- transport_table.translate_coordinates (*window_parent, 0, 0, x0, y0);
-
- cr->rectangle (x0, y0, transport_table.get_width(), transport_table.get_height());
- Gdk::Color bg (style->get_bg (transport_table.get_state()));
- cr->set_source_rgb (bg.get_red_p(), bg.get_green_p(), bg.get_blue_p());
- cr->fill ();
-
- static const int xmargin = 2;
- static const int ymargin = 1;
-
- /* draw box around record-options */
- int xx, ww, hh, uu;
-
- punch_label.translate_coordinates (transport_table, -xmargin, 0, xx, uu); // left
- punch_out_button.translate_coordinates (transport_table, xmargin, 0, ww, uu); // right
- ww += punch_out_button.get_width () - xx; // width
- hh = transport_table.get_height() - 1;
-
- Gtkmm2ext::rounded_rectangle (cr->cobj(), x0 + xx - 0.5, y0 + 0.5, ww + 1, hh, 6);
- cr->set_source_rgb (0, 0, 0);
- cr->set_line_width (1.0);
- cr->stroke ();
-
- /* line to rec-enable */
- int rx;
- rec_button.translate_coordinates (transport_table, -xmargin, 0, rx, uu); // top
- int dx = rx + rec_button.get_width() - xx;
-
- cr->move_to (x0 + xx, 1.5 + y0 + ymargin + round (punch_in_button.get_height () * .5));
- cr->rel_line_to (dx, 0);
- cr->set_line_width (2.0);
- cr->stroke ();
-
- return false;
-}
-
void
ARDOUR_UI::setup_transport ()
{
@@ -523,8 +470,6 @@ ARDOUR_UI::setup_transport ()
transport_frame.add (*ebox);
ebox->add (transport_table);
- transport_table.signal_expose_event().connect (sigc::mem_fun (*this, &ARDOUR_UI::transport_expose), false);
-
/* transport controls sub-group */
click_button.set_size_request (PX_SCALE(20), PX_SCALE(20));