[Goodies-commits] r5508 - in xfce4-sensors-plugin/trunk: . src

Fabian Nowak timystery at xfce.org
Sat Oct 4 02:42:35 CEST 2008


Author: timystery
Date: 2008-10-04 00:42:34 +0000 (Sat, 04 Oct 2008)
New Revision: 5508

Added:
   xfce4-sensors-plugin/trunk/src/
   xfce4-sensors-plugin/trunk/src/Makefile.am
   xfce4-sensors-plugin/trunk/src/actions.c
   xfce4-sensors-plugin/trunk/src/actions.h
   xfce4-sensors-plugin/trunk/src/callbacks.c
   xfce4-sensors-plugin/trunk/src/callbacks.h
   xfce4-sensors-plugin/trunk/src/interface.c
   xfce4-sensors-plugin/trunk/src/interface.h
   xfce4-sensors-plugin/trunk/src/main.c
   xfce4-sensors-plugin/trunk/src/xfce4-sensors.desktop.in
Log:
Added and initially imported folder with basic file setup for separate sensors application coming along the plugin itself.


Added: xfce4-sensors-plugin/trunk/src/Makefile.am
===================================================================
--- xfce4-sensors-plugin/trunk/src/Makefile.am	                        (rev 0)
+++ xfce4-sensors-plugin/trunk/src/Makefile.am	2008-10-04 00:42:34 UTC (rev 5508)
@@ -0,0 +1,56 @@
+# $Id$
+
+INCLUDES = -I../panel-plugin/
+
+bin_PROGRAMS = xfce4-sensors
+
+# LIBS = @LIBS@ @SOLLIBS@
+# CFLAGS = @CFLAGS@
+
+xfce4_sensors_SOURCES =									   \
+	main.c \
+	interface.c \
+	callbacks.c \
+	actions.c \
+	../panel-plugin/middlelayer.c \
+	../panel-plugin/acpi.c \
+	../panel-plugin/hddtemp.c \
+	../panel-plugin/lmsensors.c
+
+xfce4_sensors_CFLAGS = \
+	$(GTK_CFLAGS) \
+	@PLATFORM_CFLAGS@												\
+	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"							\
+	@LIBSENSORS_CFLAGS@
+#	@LIBXFCE4PANEL_CFLAGS@
+
+xfce4_sensors_LDFLAGS = \
+	$(GTK_LIBS) \
+	@SOLLIBS@														\
+	@LIBSENSORS_LDFLAGS@
+#	@LIBXFCE4PANEL_LIBS@
+
+# INCLUDES =														 \
+#	-DG_LOG_DOMAIN=\"xfce4-sensors-plugin\"						 \
+#	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"
+
+# .desktop file
+#
+# Some automake trickery here. Because we cannot use $(libexecdir) in the
+# automake stage, we'll use sed to get the full path into the .desktop file.
+# We also need to let intltool merge the translated fields, so we add an
+# additional level of indirection: a <name>.desktop.in.in file.
+#
+desktop_in_in_files = xfce4-sensors.desktop.in.in
+desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
+
+desktopdir = $(datadir)/applications
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+ at INTLTOOL_DESKTOP_RULE@
+
+EXTRA_DIST =														 \
+	$(desktop_in_in_files)
+
+
+DISTCLEANFILES =													 \
+	$(desktop_DATA) $(desktop_in_files)

Added: xfce4-sensors-plugin/trunk/src/actions.c
===================================================================

Added: xfce4-sensors-plugin/trunk/src/actions.h
===================================================================

Added: xfce4-sensors-plugin/trunk/src/callbacks.c
===================================================================

Added: xfce4-sensors-plugin/trunk/src/callbacks.h
===================================================================

Added: xfce4-sensors-plugin/trunk/src/interface.c
===================================================================

Added: xfce4-sensors-plugin/trunk/src/interface.h
===================================================================

Added: xfce4-sensors-plugin/trunk/src/main.c
===================================================================
--- xfce4-sensors-plugin/trunk/src/main.c	                        (rev 0)
+++ xfce4-sensors-plugin/trunk/src/main.c	2008-10-04 00:42:34 UTC (rev 5508)
@@ -0,0 +1,51 @@
+/* $Id$ */
+
+/*  Copyright 2008 Fabian Nowak (timystery at arcor.de)
+ *
+ *  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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+/* Note for programmers and editors: Try to use 4 spaces instead of Tab! */
+
+#include <gtk/gtk.h>
+
+#include <stdio.h>
+
+#include <string.h>
+
+void
+print_usage ()
+{
+    print (_("Xfce4 Sensors -- \n"
+                     "Displays information about your sensors and ACPI.\n"
+                     "Synopsis: \n"
+                     "  xfce4-sensors options\n"
+                     "where options are one or more of the following:\n"
+                     "  -h, --help Print this help dialog.\n"
+                     "\n"
+                     "This program is published under the GPL v2.\n")
+                );
+}
+
+int
+main (int argc, char **argv)
+{
+    if ( argc > 1 && (strcmp(argv[1], "--help")==0 || strcmp(argv[1], "-h")==0) )
+    {
+        print_usage ();
+        return 0;
+    }
+
+}

Added: xfce4-sensors-plugin/trunk/src/xfce4-sensors.desktop.in
===================================================================
--- xfce4-sensors-plugin/trunk/src/xfce4-sensors.desktop.in	                        (rev 0)
+++ xfce4-sensors-plugin/trunk/src/xfce4-sensors.desktop.in	2008-10-04 00:42:34 UTC (rev 5508)
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+_Name=Xfce 4 Sensors
+_Comment=Graphical Sensors Viewer for Xfce 4
+Exec=xfce4-sensors
+Icon=xfce4-sensors
+Terminal=false
+Type=Application
+_GenericName=Sensors Viewer




More information about the Goodies-commits mailing list