The following commit has been merged in the master branch:
commit 0f77bcd641f5cc356047c27485f6ea6f21a82c6f
Author: Andrei Zavada <[email protected]>
Date: Sun Feb 3 13:24:06 2013 +0200
use cairo_put_banner for when there are no episodes to display on msmt view
diff --git a/src/ui/mw/measurements.cc b/src/ui/mw/measurements.cc
index ebeb59d..10d5779 100644
--- a/src/ui/mw/measurements.cc
+++ b/src/ui/mw/measurements.cc
@@ -63,12 +63,7 @@ draw_timeline( cairo_t *cr) const
bool have_episodes = cprofile && not cprofile->mm_list().empty();
if ( not have_episodes ) {
- cairo_move_to( cr, 50, timeline_height()/2+9);
- cairo_select_font_face( cr, "sans", CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);
- cairo_set_font_size( cr, 18);
- cairo_set_source_rgba( cr, 0., 0., 0., .13);
- cairo_show_text( cr, "(no episodes)");
- cairo_stroke( cr);
+ aghui::cairo_put_banner( cr, 400, timeline_height(), "(no
episodes)", 24);
}
if ( have_episodes ) {
--
Sleep experiment manager
_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit