[byzanz] Only print an error when it happens, not for every notify



commit 3bfa8fc85460c7a32b2f216058182b8b5255e06c
Author: Benjamin Otte <otte redhat com>
Date:   Mon Feb 8 17:13:35 2010 +0100

    Only print an error when it happens, not for every notify

 src/record.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/record.c b/src/record.c
index 74925bc..6cdff64 100644
--- a/src/record.c
+++ b/src/record.c
@@ -71,7 +71,7 @@ session_notify_cb (ByzanzSession *session, GParamSpec *pspec, gpointer unused)
 {
   const GError *error = byzanz_session_get_error (session);
   
-  if (error) {
+  if (g_str_equal (pspec->name, "error")) {
     g_print (_("Error during recording: %s\n"), error->message);
     gtk_main_quit ();
     return;



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