aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-custom.c
blob: 1a09a9a5d0b691781de86b0ef605552f1d28306e (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

#include "libindicator/indicator.h"

INDICATOR_SET_VERSION
INDICATOR_SET_NAME("indicator-custom")

GtkLabel *
get_label (void)
{
	return NULL;
}

GtkImage *
get_icon (void)
{
	return GTK_IMAGE(gtk_image_new());
}

GtkMenu *
get_menu (void)
{
	GtkMenu * main_menu = GTK_MENU(gtk_menu_new());
	GtkWidget * loading_item = gtk_menu_item_new_with_label("Loading...");
	gtk_menu_shell_append(GTK_MENU_SHELL(main_menu), loading_item);
	gtk_widget_show(GTK_WIDGET(loading_item));

	return main_menu;
}