#include "lmsensor.h"
#include "ui_pref.h"
#include "ui_graph.h"
+#include "ui_status.h"
#ifdef HAVE_UNITY
#include "ui_unity.h"
#include "rsensor.h"
#endif
-#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
#include "ui_appindicator.h"
-#endif
#ifdef HAVE_LIBNOTIFY
#include "ui_notify.h"
static const char *program_name;
-void print_version()
+static void print_version()
{
printf("psensor %s\n", VERSION);
printf(_("Copyright (C) %s jeanfi@gmail.com\n\
"2010-2011");
}
-void print_help()
+static void print_help()
{
printf(_("Usage: %s [OPTION]...\n"), program_name);
path = malloc(strlen(dir)+1+strlen("log")+1);
sprintf(path, "%s/%s", dir, "log");
- log_open(path, LOG_INFO);
+ log_open(path);
free(dir);
free(path);
associate_colors(ui.sensors);
associate_cb_alarm_raised(ui.sensors, &ui);
+ ui_status_init(&ui);
+
/* main window */
ui_window_create(&ui);
ui.sensor_box = NULL;
#ifdef HAVE_LIBATIADL
amd_cleanup();
#endif
+#ifdef HAVE_REMOTE_SUPPORT
+ rsensor_cleanup();
+#endif
psensor_list_free(ui.sensors);
ui.sensors = NULL;
+#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
+ ui_appindicator_cleanup();
+#endif
+
+ ui_status_cleanup();
+
g_mutex_unlock(ui.sensors_mutex);
config_cleanup();