-}
-
-bool
-TimeInfoBox::on_expose_event (GdkEventExpose* ev)
-{
- {
- int x, y;
- Gtk::Widget* window_parent;
- Glib::RefPtr<Gdk::Window> win = Gtkmm2ext::window_to_draw_on (*this, &window_parent);
-
- if (win) {
-
- Cairo::RefPtr<Cairo::Context> context = win->create_cairo_context();
-
-#if 0
- translate_coordinates (*window_parent, ev->area.x, ev->area.y, x, y);
- context->rectangle (x, y, ev->area.width, ev->area.height);
- context->clip ();
-#endif
- translate_coordinates (*window_parent, 0, 0, x, y);
- context->set_source_rgba (0.149, 0.149, 0.149, 1.0);
- Gtkmm2ext::rounded_rectangle (context, x, y, get_allocation().get_width(), get_allocation().get_height(), 5);
- context->fill ();
- }
- }
-
- HBox::on_expose_event (ev);
-
- return false;