aboutsummaryrefslogtreecommitdiff
path: root/src/applet-main.c
blob: 222d0c805635305de5310dbe66787cd044011fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

#include <panel-applet.h>


static gboolean     applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data);


/*************
 * main
 * ***********/

PANEL_APPLET_BONOBO_FACTORY ("OAFIID:GNOME_IndicatorApplet_Factory",
               PANEL_TYPE_APPLET,
               "indicator-applet", "0",
               applet_fill_cb, NULL);

/*************
 * init function
 * ***********/

static gboolean
applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data)
{
	GtkWidget * hbox = gtk_hbox_new(FALSE, 3);

	GtkWidget * label = gtk_label_new("Test");
	gtk_box_pack_end(GTK_BOX(hbox), label, TRUE, TRUE, 0);
	gtk_widget_show(label);

	gtk_container_add(GTK_CONTAINER(applet), hbox);
	gtk_widget_show(hbox);

	return TRUE;
}