aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am4
-rw-r--r--src/applet-main.c20
-rw-r--r--src/indicator-messages.c11
-rw-r--r--src/indicator-messages.h10
4 files changed, 9 insertions, 36 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 648c764..b261fa2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,9 +8,7 @@ indicator_applet_CFLAGS = \
$(APPLET_CFLAGS)
indicator_applet_SOURCES = \
- applet-main.c \
- indicator-messages.c \
- indicator-messages.h
+ applet-main.c
indicator_applet_LDADD = \
$(APPLET_LIBS)
diff --git a/src/applet-main.c b/src/applet-main.c
index 31204df..b439bc8 100644
--- a/src/applet-main.c
+++ b/src/applet-main.c
@@ -1,8 +1,7 @@
#include <panel-applet.h>
-#include "indicator-messages.h"
-
+#define SYMBOL_NAME "get_menu_item"
#define ICONS_DIR (DATADIR G_DIR_SEPARATOR_S "indicator-applet" G_DIR_SEPARATOR_S "icons")
static gboolean applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data);
@@ -17,13 +16,6 @@ PANEL_APPLET_BONOBO_FACTORY ("OAFIID:GNOME_IndicatorApplet_Factory",
"indicator-applet", "0",
applet_fill_cb, NULL);
-typedef GtkWidget * (*menuitem_func) (void);
-
-menuitem_func indicators[] = {
- indicator_messages_menuitem,
- NULL
-};
-
/*************
* init function
* ***********/
@@ -40,9 +32,13 @@ applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data)
gtk_container_add(GTK_CONTAINER(applet), menubar);
gtk_widget_show(menubar);
- for (i = 0; indicators[i] != NULL; i++) {
- GtkWidget * item = indicators[i]();
- if (item == NULL) continue;
+ int indicators_loaded = 0;
+
+ /* load 'em */
+
+ if (indicators_loaded == 0) {
+ GtkWidget * item = gtk_menu_item_new_with_label("No Indicators");
+ gtk_widget_set_sensitive(item, FALSE);
gtk_menu_shell_append(GTK_MENU_SHELL(menubar), item);
gtk_widget_show(item);
}
diff --git a/src/indicator-messages.c b/src/indicator-messages.c
deleted file mode 100644
index e1ee4ee..0000000
--- a/src/indicator-messages.c
+++ /dev/null
@@ -1,11 +0,0 @@
-
-#include <gtk/gtk.h>
-#include "indicator-messages.h"
-
-GtkWidget *
-indicator_messages_menuitem (void)
-{
-
- return NULL;
-}
-
diff --git a/src/indicator-messages.h b/src/indicator-messages.h
deleted file mode 100644
index ff6be50..0000000
--- a/src/indicator-messages.h
+++ /dev/null
@@ -1,10 +0,0 @@
-
-#ifndef INDICATOR_MESSAGES_H__SEEN__
-#define INDICATOR_MESSAGES_H__SEEN__ 1
-
-
-GtkWidget * indicator_messages_menuitem (void);
-
-
-
-#endif /* INDICATOR_MESSAGES_H__SEEN__ */