aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indicator-power.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index 98d07b4..8aeda6a 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -5,7 +5,22 @@
GtkWidget *
indicator_power_menuitem (void)
{
+ GtkWidget * mainmenu = gtk_menu_item_new();
- return NULL;
+ GtkWidget * hbox = gtk_hbox_new(FALSE, 0);
+
+ GtkWidget * icon = gtk_image_new_from_icon_name("audio-volume-high",
+ GTK_ICON_SIZE_MENU);
+ gtk_box_pack_start(GTK_BOX(hbox), icon, FALSE, FALSE, 0);
+ gtk_widget_show(icon);
+
+ GtkWidget * label = gtk_label_new("2:30");
+ gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
+ gtk_widget_show(label);
+
+ gtk_container_add(GTK_CONTAINER(mainmenu), hbox);
+ gtk_widget_show(hbox);
+
+ return mainmenu;
}