Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSoaS user <liveuser@localhost.localdomain>2010-03-02 17:35:42 (GMT)
committer SoaS user <liveuser@localhost.localdomain>2010-03-02 17:35:42 (GMT)
commit3690ed424760ca6ec230887465f1f2541c5c863a (patch)
treee54f51ddc0281f7ae70cfefb0b4949d785214e38
parentab4aae9b3d8d9f9dbdb97b4114179559d50735b8 (diff)
auto default font sizing for XO's and versions of SoaS through 0.88
-rw-r--r--activity/activity.info2
-rw-r--r--csndsugui.py7
-rw-r--r--ourmusic.py8
3 files changed, 9 insertions, 8 deletions
diff --git a/activity/activity.info b/activity/activity.info
index d39ca23..9808ca6 100644
--- a/activity/activity.info
+++ b/activity/activity.info
@@ -5,7 +5,7 @@ name = OurMusic
bundle_id = org.laptop.OurMusic
icon = activity-ourmusic
-activity_version = 2
+activity_version = 3
host_version = 1
diff --git a/csndsugui.py b/csndsugui.py
index d97e279..5f7574e 100644
--- a/csndsugui.py
+++ b/csndsugui.py
@@ -60,10 +60,13 @@ class BasicGUI:
if os.path.exists("/etc/olpc-release") or os.path.exists("/etc/power/olpc-pm"):
mult = width * .00082
elif os.path.exists("/etc/fedora-release"):
- if open("/etc/fedora-release").read().find("Strawberry") != -1:
+ release = open("/etc/fedora-release").read()
+ if release.find("SoaS release 1 ") != -1:
mult = width * .00132
- elif open("/etc/fedora-release").read().find("Blueberry") != -1:
+ elif release.find("SoaS release 2 ") != -1:
mult = width * .00085
+ elif release.find("SoaS release 3 ") != -1:
+ mult = width * .00119
font.set_size(int(font_size * mult))
widget.modify_font(font)
diff --git a/ourmusic.py b/ourmusic.py
index 13d3e64..2cecb41 100644
--- a/ourmusic.py
+++ b/ourmusic.py
@@ -11,11 +11,8 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
-# version 2 12/18/09 Additions:
-# optional scrollbars
-# auto default font sizing for XO and all versions of SoaS
-# ready for basic font size adjustment by user or deployment
-# works with SoaS Strawberry (Sugar 0.84) after installing csound-python
+# version 3 2/26/10 Additions:
+# auto default font sizing for XO's and versions of SoaS through 0.88
#
# Notes:
#
@@ -292,3 +289,4 @@ Q-I tones (8) on/off\n[A-; harmonics (10)]\n[Z-/ pan position]\n\
self.but = self.w.cbbutton(self.b3, self.playcsd, "START !")
self.but.modify_bg(gtk.STATE_NORMAL, gtk.gdk.Color(0, 0x7700, 0))
self.but.modify_bg(gtk.STATE_PRELIGHT, gtk.gdk.Color(0, 0x7700, 0))
+