[Goodies-commits] r7711 - in xfmpc/trunk: . src
Mike Massonnet
mmassonnet at xfce.org
Thu Jul 9 20:21:15 CEST 2009
Author: mmassonnet
Date: 2009-07-09 18:21:15 +0000 (Thu, 09 Jul 2009)
New Revision: 7711
Modified:
xfmpc/trunk/ChangeLog
xfmpc/trunk/src/mpdclient.c
Log:
Make the output of connection status on the terminal less verbose
Modified: xfmpc/trunk/ChangeLog
===================================================================
--- xfmpc/trunk/ChangeLog 2009-07-09 17:58:19 UTC (rev 7710)
+++ xfmpc/trunk/ChangeLog 2009-07-09 18:21:15 UTC (rev 7711)
@@ -1,3 +1,7 @@
+2009-07-09 Mike Massonnet <mmassonnet at xfce.org>
+
+Make the output of connection status on the terminal less verbose
+
2009-07-08 Vincent Legout <vincent at legout.info>
Improve interaction with mpd
Modified: xfmpc/trunk/src/mpdclient.c
===================================================================
--- xfmpc/trunk/src/mpdclient.c 2009-07-09 17:58:19 UTC (rev 7710)
+++ xfmpc/trunk/src/mpdclient.c 2009-07-09 18:21:15 UTC (rev 7711)
@@ -99,6 +99,7 @@
gchar *passwd;
gboolean env_cached;
gboolean connecting;
+ guint connection_count;
GMutex *mutex;
};
@@ -342,7 +343,15 @@
connection = mpd_newConnection (priv->host, priv->port, 5.0);
if (mpd_connect_real (priv->mi, connection))
- g_warning (_("Failed to connect to MPD"));
+ {
+ if ((priv->connection_count++) == 1)
+ g_message (_("Failed to connect to MPD"));
+ }
+ else
+ {
+ priv->connection_count = 0;
+ g_message (_("Connected to MPD"));
+ }
priv->connecting = FALSE;
More information about the Goodies-commits
mailing list