fix background of ArdourButtons with no Body
[ardour.git] / gtk2_ardour / pingback.cc
index d123d3edcfbce39338359d4af18e2aaa7f2ba7c5..0153fd45b1ffc62ed1290b39a63d8c39ac325cef 100644 (file)
@@ -40,6 +40,7 @@
 #include "ardour/rc_configuration.h"
 
 #include "pingback.h"
+#include "utils.h"
 
 using std::string;
 using namespace ARDOUR;
@@ -241,11 +242,10 @@ namespace ARDOUR {
 
 void pingback (const string& version, const string& announce_path)
 {
-       /* check this is not being run from ./ardev etc. */
-       gchar const *x = g_getenv ("ARDOUR_THEMES_PATH");
-
-       if (x && string (x).find ("gtk2_ardour") != string::npos) {
-               std::cerr << "no ping\n";
+       if (ARDOUR_UI_UTILS::running_from_source_tree ()) {
+               /* we don't ping under these conditions, because the user is
+                  probably just paul or robin :)
+               */
                return;
        }