Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-02-04 03:26:49 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-02-04 03:26:49 (GMT)
commitdf2520895113443108fbc78f45362dd98be5b79d (patch)
tree84d58e7fce266194443a2c2cb4b40cd564593381 /activity.py
parent7962765cd1a362095124ccfb6b9b15a182b36dca (diff)
Icons for horizontal and vertical label options
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/activity.py b/activity.py
index 5a133e5..3ce4b2e 100644
--- a/activity.py
+++ b/activity.py
@@ -39,6 +39,7 @@ from sugar.graphics.toolbarbox import ToolbarBox
from sugar.graphics.toolbutton import ToolButton
from sugar.graphics.radiotoolbutton import RadioToolButton
from sugar.graphics.colorbutton import ColorToolButton
+from sugar.graphics.icon import Icon
from sugar.datastore import datastore
from charts import Chart, CHART_IMAGE
@@ -200,6 +201,11 @@ class SimpleGraph(activity.Activity):
separator.set_expand(False)
options_toolbar.insert(separator, -1)
+ h_label_icon = Icon(icon_name="hlabel")
+ h_label_tool_item = gtk.ToolItem()
+ h_label_tool_item.add(h_label_icon)
+ options_toolbar.insert(h_label_tool_item, -1)
+
h_label = Entry(_("Horizontal label..."))
h_label.entry.connect("changed", self._set_h_label)
options_toolbar.insert(h_label, -1)
@@ -209,6 +215,11 @@ class SimpleGraph(activity.Activity):
separator.set_expand(False)
options_toolbar.insert(separator, -1)
+ v_label_icon = Icon(icon_name="vlabel")
+ v_label_tool_item = gtk.ToolItem()
+ v_label_tool_item.add(v_label_icon)
+ options_toolbar.insert(v_label_tool_item, -1)
+
v_label = Entry(_("Vertical label..."))
v_label.entry.connect("changed", self._set_v_label)
options_toolbar.insert(v_label, -1)