From c2d6d46b9ca89cb1c0729ee599c3566d3d1e7cf7 Mon Sep 17 00:00:00 2001 From: Javier Date: Tue, 28 Jan 2014 16:50:47 +0100 Subject: initial import --- mate-applet/main.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 mate-applet/main.c (limited to 'mate-applet/main.c') 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 + +#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) -- cgit v1.2.3