[byzanz] Only print an error when it happens, not for every notify
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [byzanz] Only print an error when it happens, not for every notify
- Date: Mon, 8 Feb 2010 17:18:44 +0000 (UTC)
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]