[med-svn] [SCM] aghermann branch, master, updated. f0d4c0fd35bf09e7dff56ddb9a2d798ae916c2ef

Andrei Zavada johnhommer at gmail.com
Sun Feb 3 12:53:21 UTC 2013


The following commit has been merged in the master branch:
commit 0f77bcd641f5cc356047c27485f6ea6f21a82c6f
Author: Andrei Zavada <johnhommer at gmail.com>
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



More information about the debian-med-commit mailing list