[gnome-builder] tests: don't popup dialogs in unit tests



commit 3646c6a4d35ef1ad66a8bf73490c8932796edf73
Author: Christian Hergert <christian hergert me>
Date:   Sun Apr 24 18:46:07 2016 -0700

    tests: don't popup dialogs in unit tests

 plugins/hello-cpp/hellocppapplicationaddin.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/plugins/hello-cpp/hellocppapplicationaddin.cc b/plugins/hello-cpp/hellocppapplicationaddin.cc
index ba44617..2c30f91 100644
--- a/plugins/hello-cpp/hellocppapplicationaddin.cc
+++ b/plugins/hello-cpp/hellocppapplicationaddin.cc
@@ -45,9 +45,7 @@ HelloCppApplicationAddin::HelloCppApplicationAddin(GObject *gobj)
   con = application->signal_shutdown().connect([this] {
       auto stop = steady_clock::now();
       auto elapsed_seconds = duration_cast<seconds>(stop - start).count();
-      char message [100];
-      snprintf(message, 100, N_("Wow! You've spent with Builder %d seconds!"), elapsed_seconds);
-      Gtk::MessageDialog(gettext(message)).run();
+      g_print (_("Wow! You've spent with Builder %d seconds!"), elapsed_seconds);
     });
 
   start = std::chrono::steady_clock::now();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]