aboutsummaryrefslogtreecommitdiff
path: root/mate-applet/main.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-01-28 16:50:47 +0100
committerJavier <dev.git@javispedro.com>2014-01-28 16:50:47 +0100
commitc2d6d46b9ca89cb1c0729ee599c3566d3d1e7cf7 (patch)
tree7e1e2285437816c06ac884d68284d854413cf41e /mate-applet/main.c
downloadtopmenu-gtk-c2d6d46b9ca89cb1c0729ee599c3566d3d1e7cf7.tar.gz
topmenu-gtk-c2d6d46b9ca89cb1c0729ee599c3566d3d1e7cf7.zip
initial import
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)