From 9b4a5fb6e1df828104779dc189f80b92fdcbf4ff Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 29 Oct 2008 21:36:40 -0500 Subject: Adding in the linking and some basic prototypes. --- src/Makefile.am | 2 ++ src/applet-main.c | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index c680a09..65637e2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -9,3 +9,5 @@ indicator_applet_CFLAGS = \ indicator_applet_SOURCES = \ applet-main.c +indicator_applet_LDADD = \ + $(APPLET_LIBS) diff --git a/src/applet-main.c b/src/applet-main.c index e69de29..6ec3788 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -0,0 +1,26 @@ + +#include + + +static gboolean applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data); + + +/************* + * main + * ***********/ + +PANEL_APPLET_BONOBO_FACTORY ("OAFIID:GNOME_IndicatorApplet_Factory", + PANEL_TYPE_APPLET, + "indicator-applet", "0", + applet_fill_cb, NULL); + +/************* + * init function + * ***********/ + +static gboolean +applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data) +{ + + return TRUE; +} -- cgit v1.2.3