LWN.net Logo

[Ardour-Cvs] r13357 - ardour2/branches/mixbus2/gtk2_ardour

From:  pauld-AT-addisababa.dreamhost.com
To:  ardour-cvs-AT-lists.ardour.org
Subject:  [Ardour-Cvs] r13357 - ardour2/branches/mixbus2/gtk2_ardour
Date:  Mon, 29 Oct 2012 03:05:31 -0700
Archive-link:  Article, Thread



Author: hansfbaier
Date: 2012-10-29 03:05:30 -0700 (Mon, 29 Oct 2012)
New Revision: 13357

Modified:
    ardour2/branches/mixbus2/gtk2_ardour/region_layering_order_editor.cc
Log:
region_layering_order_editor: Tell the user he is stupid instead of 
having him debug the source code to find out

Modified: 
ardour2/branches/mixbus2/gtk2_ardour/region_layering_order_editor.cc
===================================================================
--- 
ardour2/branches/mixbus2/gtk2_ardour/region_layering_order_editor.cc 
2012-10-28 10:48:06 UTC (rev 13356)
+++ 
ardour2/branches/mixbus2/gtk2_ardour/region_layering_order_editor.cc 
2012-10-29 10:05:30 UTC (rev 13357)
@@ -1,6 +1,7 @@
  #include <gtkmm/table.h>
  #include <gtkmm/stock.h>
  #include <gtkmm/alignment.h>
+#include <gtkmm/messagedialog.h>
  #include <ardour/region.h>

  #include "i18n.h"
@@ -109,9 +110,13 @@
  	if (iter) {
  		TreeModel::Row row = *iter;
  		boost::shared_ptr<Region> region = row[layering_order_columns.region];
-
+                if (Config->get_layer_model() == LaterHigher) {
+                  MessageDialog msg (_("You cannot change region order 
here because you chose Options->Layering->Auto"));
+                  msg.set_position (WIN_POS_CENTER);
+                  msg.run ();
+                }
  		region->raise_to_top ();
-	}
+	}
  }

  typedef boost::shared_ptr<Region> RegionPtr;

_______________________________________________
Ardour-Cvs mailing list
This list is read-only.
http://lists.ardour.org/listinfo.cgi/ardour-cvs-ardour.org





(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds