aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bzrignore3
-rw-r--r--src/Makefile.am32
-rw-r--r--src/custom-service.c7
-rw-r--r--src/indicator-custom.c28
4 files changed, 69 insertions, 1 deletions
diff --git a/.bzrignore b/.bzrignore
index 40635af..a33f7f0 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -2,3 +2,6 @@ data/indicator-custom.service
compile
indicator-custom-[0-9].[0-9].[0-9].tar.gz
m4/
+src/indicator-custom-service
+src/libcustom.la
+src/libcustom_la-indicator-custom.lo
diff --git a/src/Makefile.am b/src/Makefile.am
index 599c41b..63f0c64 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1 +1,31 @@
-# Data
+
+libexec_PROGRAMS = indicator-custom-service
+
+##################################
+# Indicator
+##################################
+
+customlibdir = $(INDICATORDIR)
+customlib_LTLIBRARIES = libcustom.la
+libcustom_la_SOURCES = \
+ indicator-custom.c
+libcustom_la_CFLAGS = $(INDICATOR_CFLAGS) \
+ -Wall \
+ -Wl,-Bsymbolic-functions \
+ -Wl,-z,defs \
+ -Wl,--as-needed \
+ -Werror
+libcustom_la_LIBADD = $(INDICATOR_LIBS)
+libcustom_la_LDFLAGS = -module -avoid-version
+
+##################################
+# Service
+##################################
+
+indicator_custom_service_SOURCES = \
+ custom-service.c
+indicator_custom_service_CFLAGS = \
+ $(INDICATOR_CFLAGS) \
+ -Wall -Werror
+indicator_custom_service_LDADD = \
+ $(INDICATOR_LIBS)
diff --git a/src/custom-service.c b/src/custom-service.c
new file mode 100644
index 0000000..63590c7
--- /dev/null
+++ b/src/custom-service.c
@@ -0,0 +1,7 @@
+
+int
+main (int argc, char ** argv)
+{
+
+ return 0;
+}
diff --git a/src/indicator-custom.c b/src/indicator-custom.c
new file mode 100644
index 0000000..1a09a9a
--- /dev/null
+++ b/src/indicator-custom.c
@@ -0,0 +1,28 @@
+
+#include "libindicator/indicator.h"
+
+INDICATOR_SET_VERSION
+INDICATOR_SET_NAME("indicator-custom")
+
+GtkLabel *
+get_label (void)
+{
+ return NULL;
+}
+
+GtkImage *
+get_icon (void)
+{
+ return GTK_IMAGE(gtk_image_new());
+}
+
+GtkMenu *
+get_menu (void)
+{
+ GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
+ GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
+ gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
+ gtk_widget_show(GTK_WIDGET(loading_item));
+
+ return main_menu;
+}