From 96157b80a0bcc466b904149cfb66a26ecf75ec24 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 02 Jul 2013 05:13:36 +0000 Subject: more tweaks to rotation support --- diff --git a/icons/notes.svg b/icons/notes.svg index fb39918..b020ff7 100644 --- a/icons/notes.svg +++ b/icons/notes.svg @@ -7,24 +7,41 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" width="55" height="55" viewBox="0 0 55 55" id="svg2" - xml:space="preserve">image/svg+xml \ No newline at end of file + style="fill:#ffffff;fill-opacity:1;stroke:#ffffff;stroke-width:3.5;stroke-opacity:1;display:inline" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccscccccscccccccc" /> \ No newline at end of file diff --git a/icons/octaves.svg b/icons/octaves.svg index 2d2f945..cd25aaa 100644 --- a/icons/octaves.svg +++ b/icons/octaves.svg @@ -7,86 +7,31 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" width="55" height="55" viewBox="0 0 55 55" id="svg2" - xml:space="preserve" - inkscape:version="0.48.4 r9939" - sodipodi:docname="octaves.svg">image/svg+xml \ No newline at end of file + id="defs9" /> \ No newline at end of file diff --git a/measure.py b/measure.py index 9b4ec5c..4b5b12f 100644 --- a/measure.py +++ b/measure.py @@ -286,6 +286,8 @@ class MeasureActivity(activity.Activity): if not self._extra_tools in self._extras_toolbar_item: self._extras_toolbar_item.add(self._extra_tools) self._extras_toolbar_item.show() + self.sensor_toolbar.log_label.hide() + self.sensor_toolbar.trigger_label.hide() else: self._extras_button.hide() if self._extra_tools in self._extras_toolbar_item: @@ -295,6 +297,8 @@ class MeasureActivity(activity.Activity): if self._extras_button.is_expanded(): self._extras_button.set_expanded(False) self._extras_toolbar_item.hide() + self.sensor_toolbar.log_label.show() + self.sensor_toolbar.trigger_label.show() self._extra_tools.show() def on_quit(self, data=None): diff --git a/sensor_toolbar.py b/sensor_toolbar.py index 0737917..a3c6fae 100644 --- a/sensor_toolbar.py +++ b/sensor_toolbar.py @@ -118,9 +118,9 @@ of XO)") + ' ' self.insert(separator, -1) self._log_value = LOG_TIMER_VALUES[1] - self._log_label = gtk.Label(self._log_to_string(self._log_value)) + self.log_label = gtk.Label(self._log_to_string(self._log_value)) toolitem = gtk.ToolItem() - toolitem.add(self._log_label) + toolitem.add(self.log_label) self.insert(toolitem, -1) self._log_button = ToolButton('timer-10') @@ -140,7 +140,8 @@ of XO)") + ' ' self.insert(separator, -1) toolitem = gtk.ToolItem() - toolitem.add(gtk.Label(_('Select trigger'))) + self.trigger_label = gtk.Label(_('Trigger')) + toolitem.add(self.trigger_label) self.insert(toolitem, -1) # Set up Trigger Combo box @@ -181,7 +182,7 @@ of XO)") + ' ' def set_log_idx(self, idx): self._log_value = LOG_TIMER_VALUES[idx] - self._log_label.set_text(self._log_to_string(self._log_value)) + self.log_label.set_text(self._log_to_string(self._log_value)) if hasattr(self, '_log_button'): self._log_button.set_icon('timer-%d' % (self._log_value)) -- cgit v0.9.1