about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid <petrodavi@gmail.com>2016-04-10 15:00:25 +0200
committerDavid <petrodavi@gmail.com>2016-04-10 15:44:37 +0200
commitb300fa5baff6530a18e48b3cfec91c77a176f592 (patch)
tree06525cfa583b7991e729cfad56f8b4c0d44d2f58
parent92a50000c2421604f73ccad4e534948a4dc552e1 (diff)
downloadprofani-tty-b300fa5baff6530a18e48b3cfec91c77a176f592.tar.gz
Use log facilities instead of printing on the stderr
-rw-r--r--src/tray.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tray.c b/src/tray.c
index 12c46796..6bb459ed 100644
--- a/src/tray.c
+++ b/src/tray.c
@@ -41,6 +41,7 @@
 
 #include "tray.h"
 #include "window_list.h"
+#include "log.h"
 
 static GtkStatusIcon *prof_tray = NULL;
 static GString *icon_filename = NULL;
@@ -105,7 +106,7 @@ static void _get_icons(void)
         }
         g_string_free(name, true);
     } else {
-        fprintf (stderr, "Unable to open dir: %s\n", err->message);
+        log_error("Unable to open dir: %s", err->message);
         g_error_free(err);
     }
     g_dir_close(dir);