aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2008-11-24 16:50:46 -0600
committerTed Gould <ted@canonical.com>2008-11-24 16:50:46 -0600
commitc6c57ca7532915d9de6cfee8cab437d379387b52 (patch)
treeeeab1c66c3abbaf40266a80239f2faad059af3cb /src/indicator-power.c
parent35cef87b3e13bf9f839c6624cb04a0530b4cbf95 (diff)
downloadlibayatana-indicator-c6c57ca7532915d9de6cfee8cab437d379387b52.tar.gz
libayatana-indicator-c6c57ca7532915d9de6cfee8cab437d379387b52.tar.bz2
libayatana-indicator-c6c57ca7532915d9de6cfee8cab437d379387b52.zip
Basic power handler
Diffstat (limited to 'src/indicator-power.c')
-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;
}