aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2008-11-24 21:31:53 -0600
committerTed Gould <ted@canonical.com>2008-11-24 21:31:53 -0600
commitedb2f89c69f8c0c0e2380d6f2887134970c47b6c (patch)
tree3d94679bc936b2fc605711da7fc45de63742755c /src/indicator-power.c
parentf9b7c2428e95625b75faa2d3e8058d1b458496fa (diff)
downloadlibayatana-indicator-edb2f89c69f8c0c0e2380d6f2887134970c47b6c.tar.gz
libayatana-indicator-edb2f89c69f8c0c0e2380d6f2887134970c47b6c.tar.bz2
libayatana-indicator-edb2f89c69f8c0c0e2380d6f2887134970c47b6c.zip
Adding in settings
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r--src/indicator-power.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index aedb99b..03ee0d2 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -1,5 +1,6 @@
#include <gtk/gtk.h>
+#include <glib/gi18n.h>
#include "indicator-power.h"
typedef struct {
@@ -66,6 +67,14 @@ power_menu (void)
gtk_widget_show(item);
}
+ GtkWidget * sep = gtk_separator_menu_item_new();
+ gtk_menu_append(menu, sep);
+ gtk_widget_show(sep);
+
+ GtkWidget * prefs = gtk_menu_item_new_with_label(_("Power Settings..."));
+ gtk_menu_append(menu, prefs);
+ gtk_widget_show(prefs);
+
return GTK_WIDGET(menu);
}