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

Andrei Zavada johnhommer at gmail.com
Wed May 1 00:09:23 UTC 2013


The following commit has been merged in the master branch:
commit 5be264140f85d08add53501420dceceececbc486
Author: Andrei Zavada <johnhommer at gmail.com>
Date:   Mon Apr 22 18:01:35 2013 +0300

    suggest to hide some channels if SF being opened has too many visible ones

diff --git a/src/ui/sf/sf.cc b/src/ui/sf/sf.cc
index 991db32..10e97f8 100644
--- a/src/ui/sf/sf.cc
+++ b/src/ui/sf/sf.cc
@@ -260,6 +260,12 @@ SScoringFacility (agh::CSubject& J,
 				(GtkContainer*)iiSFPageHidden,
 				item);
 		}
+	// if there's too many visible, suggest to hide some
+	if ( channels.size() - n_hidden > 10 )
+		aghui::pop_ok_message(
+			wSF, "Overcrowded montage",
+			"The recording you are about to view has %zu channels. "
+			"You can hide some from channel context menus.", channels.size() - n_hidden);
 
 	{
 		int bar_height;

-- 
Sleep experiment manager



More information about the debian-med-commit mailing list