ui_graph.h ui_graph.c \
ui_pref.h ui_pref.c \
ui_sensorlist.h ui_sensorlist.c \
- ui_sensorpref.h ui_sensorpref.c
+ ui_sensorpref.h ui_sensorpref.c \
+ ui_status.h ui_status.c
if GTOP
AM_CPPFLAGS += $(GTOP_CFLAGS)
am__psensor_SOURCES_DIST = compat.h cfg.h cfg.c graph.h graph.c main.c \
ui.h ui.c ui_color.h ui_color.c ui_graph.h ui_graph.c \
ui_pref.h ui_pref.c ui_sensorlist.h ui_sensorlist.c \
- ui_sensorpref.h ui_sensorpref.c ui_notify.h ui_notify.c \
- ui_appindicator.h ui_appindicator.c ui_unity.h ui_unity.c \
- rsensor.h rsensor.c
+ ui_sensorpref.h ui_sensorpref.c ui_status.h ui_status.c \
+ ui_notify.h ui_notify.c ui_appindicator.h ui_appindicator.c \
+ ui_unity.h ui_unity.c rsensor.h rsensor.c
@LIBNOTIFY_TRUE@am__objects_1 = ui_notify.$(OBJEXT)
@APPINDICATOR_TRUE@am__objects_2 = ui_appindicator.$(OBJEXT)
@UNITY_TRUE@am__objects_3 = ui_unity.$(OBJEXT)
am_psensor_OBJECTS = cfg.$(OBJEXT) graph.$(OBJEXT) main.$(OBJEXT) \
ui.$(OBJEXT) ui_color.$(OBJEXT) ui_graph.$(OBJEXT) \
ui_pref.$(OBJEXT) ui_sensorlist.$(OBJEXT) \
- ui_sensorpref.$(OBJEXT) $(am__objects_1) $(am__objects_2) \
- $(am__objects_3) $(am__objects_4)
+ ui_sensorpref.$(OBJEXT) ui_status.$(OBJEXT) $(am__objects_1) \
+ $(am__objects_2) $(am__objects_3) $(am__objects_4)
psensor_OBJECTS = $(am_psensor_OBJECTS)
psensor_LDADD = $(LDADD)
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
psensor_SOURCES = compat.h cfg.h cfg.c graph.h graph.c main.c ui.h \
ui.c ui_color.h ui_color.c ui_graph.h ui_graph.c ui_pref.h \
ui_pref.c ui_sensorlist.h ui_sensorlist.c ui_sensorpref.h \
- ui_sensorpref.c $(am__append_4) $(am__append_7) \
- $(am__append_14) $(am__append_17)
+ ui_sensorpref.c ui_status.h ui_status.c $(am__append_4) \
+ $(am__append_7) $(am__append_14) $(am__append_17)
dist_man_MANS = psensor.1
EXTRA_DIST = description.txt
all: all-recursive
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_pref.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_sensorlist.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_sensorpref.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_status.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ui_unity.Po@am__quote@
.c.o:
#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
#include "ui_appindicator.h"
+#else
+#include "ui_status.h"
#endif
#ifdef HAVE_LIBNOTIFY
#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029)
ui_appindicator_init(&ui);
+#else
+ ui_status_create();
#endif
gdk_notify_startup_complete();
--- /dev/null
+/*
+ * Copyright (C) 2010-2011 jeanfi@gmail.com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+
+#include <gtk/gtk.h>
+
+#include "log.h"
+#include "ui_status.h"
+
+void ui_status_create()
+{
+ GtkStatusIcon *tray_icon;
+
+ log_printf(LOG_DEBUG, "ui_status_create()");
+
+ tray_icon = gtk_status_icon_new();
+ gtk_status_icon_set_from_icon_name(tray_icon,
+ GTK_STOCK_MEDIA_STOP);
+ gtk_status_icon_set_tooltip(tray_icon,
+ "Example Tray Icon");
+ gtk_status_icon_set_visible(tray_icon, TRUE);
+}
--- /dev/null
+/*
+ * Copyright (C) 2010-2011 jeanfi@gmail.com
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ */
+
+#ifndef _PSENSOR_UI_STATUS_H_
+#define _PSENSOR_UI_STATUS_H_
+
+void ui_status_create();
+
+#endif