summaryrefslogtreecommitdiff
path: root/mate-applet/main.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-01-18 02:03:56 +0100
committerJavier <dev.git@javispedro.com>2015-01-18 02:03:56 +0100
commita215500011290121925cfe929d71b80696732230 (patch)
treec7b9fb078c42d65c8fc72e2bafe1aecd32f3f388 /mate-applet/main.c
downloadmdock-a215500011290121925cfe929d71b80696732230.tar.gz
mdock-a215500011290121925cfe929d71b80696732230.zip
initial import
Diffstat (limited to 'mate-applet/main.c')
-rw-r--r--mate-applet/main.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/mate-applet/main.c b/mate-applet/main.c
new file mode 100644
index 0000000..15db52a
--- /dev/null
+++ b/mate-applet/main.c
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2015 Javier S. Pedro <dev.git@javispedro.com>
+ *
+ * This file is part of MDock.
+ *
+ * MDock is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * MDock is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with MDock. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <string.h>
+
+#include "mdock-mate-panel-applet.h"
+
+static gboolean mdock_mate_panel_applet_factory(MatePanelApplet *applet,
+ const gchar *iid,
+ gpointer data)
+{
+ if (strcmp(iid, "MDockMatePanelApplet") == 0) {
+ gtk_widget_show_all(GTK_WIDGET(applet));
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+MATE_PANEL_APPLET_OUT_PROCESS_FACTORY("MDockMatePanelAppletFactory",
+ MDOCK_TYPE_MATE_PANEL_APPLET,
+ "MDockMatePanelApplet",
+ mdock_mate_panel_applet_factory,
+ NULL)