From df2520895113443108fbc78f45362dd98be5b79d Mon Sep 17 00:00:00 2001 From: Manuel QuiƱones Date: Sat, 04 Feb 2012 03:26:49 +0000 Subject: Icons for horizontal and vertical label options Signed-off-by: Manuel QuiƱones --- 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) diff --git a/icons/hlabel.svg b/icons/hlabel.svg new file mode 100644 index 0000000..79556ff --- /dev/null +++ b/icons/hlabel.svg @@ -0,0 +1,32 @@ + + + +image/svg+xml + \ No newline at end of file diff --git a/icons/vlabel.svg b/icons/vlabel.svg new file mode 100644 index 0000000..9110d72 --- /dev/null +++ b/icons/vlabel.svg @@ -0,0 +1,32 @@ + + + +image/svg+xml \ No newline at end of file -- cgit v0.9.1