aboutsummaryrefslogtreecommitdiff
path: root/mate-applet/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-applet/main.c')
-rw-r--r--mate-applet/main.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/mate-applet/main.c b/mate-applet/main.c
new file mode 100644
index 0000000..2ce2e92
--- /dev/null
+++ b/mate-applet/main.c
@@ -0,0 +1,21 @@
+#include <string.h>
+
+#include "topmenu-mate-panel-applet.h"
+
+static gboolean topmenu_mate_panel_applet_factory(MatePanelApplet *applet,
+ const gchar *iid,
+ gpointer data)
+{
+ if (strcmp(iid, "TopMenuMatePanelApplet") == 0) {
+ gtk_widget_show_all(GTK_WIDGET(applet));
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+MATE_PANEL_APPLET_OUT_PROCESS_FACTORY("TopMenuMatePanelAppletFactory",
+ TOPMENU_TYPE_MATE_PANEL_APPLET,
+ "TopMenuMatePanelApplet",
+ topmenu_mate_panel_applet_factory,
+ NULL)