[gnome-bluetooth] Add test case for the notification icon
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] Add test case for the notification icon
- Date: Sun, 26 Jul 2009 19:47:35 +0000 (UTC)
commit 8f46539a645f7d1207c7aacb656995cd5b8ad596
Author: Bastien Nocera <hadess hadess net>
Date: Sun Jul 26 17:26:35 2009 +0100
Add test case for the notification icon
To allow us to test the animation
applet/Makefile.am | 6 ++++--
applet/test-icon.c | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 2 deletions(-)
---
diff --git a/applet/Makefile.am b/applet/Makefile.am
index f1d0523..3511c2b 100644
--- a/applet/Makefile.am
+++ b/applet/Makefile.am
@@ -5,12 +5,14 @@ bluetooth_applet_SOURCES = main.c notify.h notify.c agent.h agent.c
bluetooth_applet_LDADD = $(top_builddir)/lib/libcommon.la $(top_builddir)/lib/libgnome-bluetooth.la $(APPLET_LIBS)
-noinst_PROGRAMS = test-agentdialog
+noinst_PROGRAMS = test-agentdialog test-icon
test_agentdialog_SOURCES = test-agentdialog.c notify.h notify.c
-
test_agentdialog_LDADD = $(top_builddir)/lib/libcommon.la $(APPLET_LIBS)
+test_icon_SOURCES = test-icon.c notify.h notify.c
+test_icon_LDADD = $(top_builddir)/lib/libcommon.la $(APPLET_LIBS)
+
AM_CFLAGS = $(APPLET_CFLAGS) $(WARN_CFLAGS) $(DISABLE_DEPRECATED) -DPKGDATADIR="\"$(pkgdatadir)\""
INCLUDES = -I$(top_srcdir)/lib
diff --git a/applet/test-icon.c b/applet/test-icon.c
new file mode 100644
index 0000000..2b48064
--- /dev/null
+++ b/applet/test-icon.c
@@ -0,0 +1,39 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2009 Bastien Nocera <hadess hadess net>
+ *
+ *
+ * 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 St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#include <gtk/gtk.h>
+#include "notify.h"
+
+int main (int argc, char **argv)
+{
+ GtkStatusIcon *icon;
+
+ gtk_init (&argc, &argv);
+
+ set_icon (TRUE);
+ icon = init_notification ();
+
+ gtk_main ();
+
+ return 0;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]