[gnome-builder/wip/chergert/libidemm-merge: 27/27] tests: don't popup dialogs in unit tests
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/libidemm-merge: 27/27] tests: don't popup dialogs in unit tests
- Date: Mon, 25 Apr 2016 01:50:45 +0000 (UTC)
commit 63ac24f807b8dc2d94642ecdac93ef020effc829
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]