aboutsummaryrefslogtreecommitdiff
path: root/mate-applet/main.c
blob: 2ce2e923ae3b850a3e987029f0b5aab5ed7cb8b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)