The following commit has been merged in the master branch:
commit f06a85842500ce6b035557302d3dce6f6180b10a
Author: Andrei Zavada <[email protected]>
Date:   Tue Jul 16 01:37:44 2013 +0300

    hide some menu main items on visiting empty experiment

diff --git a/data/mw.glade b/data/mw.glade
index 81763ce..06da154 100644
--- a/data/mw.glade
+++ b/data/mw.glade
@@ -708,7 +708,7 @@ rm */*/*/.*.{psd,mc,swu}</property>
                                       </object>
                                     </child>
                                     <child>
-                                      <object class="GtkMenuItem" 
id="menuitem4">
+                                      <object class="GtkMenuItem" 
id="iiExpSubjectSort">
                                         <property 
name="visible">True</property>
                                         <property 
name="can_focus">False</property>
                                         <property name="label" 
translatable="yes">Subject _order</property>
diff --git a/src/aghermann/ui/mw/construct.cc b/src/aghermann/ui/mw/construct.cc
index 8b81c24..12ac6f5 100644
--- a/src/aghermann/ui/mw/construct.cc
+++ b/src/aghermann/ui/mw/construct.cc
@@ -108,6 +108,7 @@ SExpDesignUIWidgets ()
             !AGH_GBGETOBJ (GtkMenuItem,        iiExpGlobalOperations) ||
             !AGH_GBGETOBJ (GtkMenuItem,        iExpGloballyDetectArtifacts) ||
             !AGH_GBGETOBJ (GtkMenuItem,        iExpGloballySetFilters) ||
+            !AGH_GBGETOBJ (GtkMenuItem,        iiExpSubjectSort) ||
             !AGH_GBGETOBJ (GtkMenuItem,        iMontageSetDefaults) ||
             !AGH_GBGETOBJ (GtkMenuItem,        iExpClose) ||
             !AGH_GBGETOBJ (GtkMenuItem,        iExpQuit) ||
@@ -746,7 +747,9 @@ set_controls_for_empty_experiment( bool indeed, const bool 
flush)
        gtk_widget_set_visible( gtk_notebook_get_nth_page( tTaskSelector, 1), 
indeed);
 
        gtk_widget_set_visible( (GtkWidget*)iExpAnnotations, indeed);
+       gtk_widget_set_visible( (GtkWidget*)iExpPurgeComputed, indeed);
        gtk_widget_set_visible( (GtkWidget*)iiExpGlobalOperations, indeed);
+       gtk_widget_set_visible( (GtkWidget*)iiExpSubjectSort, indeed);
 
        gtk_widget_set_visible( (GtkWidget*)eMsmtSession, indeed);
        gtk_widget_set_visible( (GtkWidget*)eMsmtChannel, indeed);
diff --git a/src/aghermann/ui/mw/widgets.hh b/src/aghermann/ui/mw/widgets.hh
index f637dd1..5324130 100644
--- a/src/aghermann/ui/mw/widgets.hh
+++ b/src/aghermann/ui/mw/widgets.hh
@@ -97,6 +97,7 @@ struct SExpDesignUIWidgets {
                *iExpClose, *iExpQuit,
                *iExpBasicSADetectUltradianCycles,
                *iiExpGlobalOperations,
+               *iiExpSubjectSort,
                *iExpGloballyDetectArtifacts,
                *iExpGloballySetFilters,
                *iMontageSetDefaults,

-- 
Sleep experiment manager

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to