blob: cee4eacbe639955541069b1e48b8fcba75410088 (
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("dummy-indicator-simple")
GtkLabel *
get_label (void)
{
return GTK_LABEL(gtk_label_new("Simple Item"));
}
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;
}
|