godiard | 9 Feb 21:08
Favicon

[PATCH sugar-toolkit-gtk3] Do the preview in the activity using cairo intead of GdkPixbuf

From: Gonzalo Odiard <godiard <at> gmail.com>

Signed-off-by: Gonzalo Odiard <gonzalo <at> laptop.org>
---
 src/sugar3/activity/activity.py |   33 ++++++++++++++++++---------------
 1 files changed, 18 insertions(+), 15 deletions(-)

diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py
index 19c1974..e943d44 100644
--- a/src/sugar3/activity/activity.py
+++ b/src/sugar3/activity/activity.py
@@ -54,11 +54,12 @@ import os
 import time
 from hashlib import sha1
 from functools import partial
+import StringIO

 from gi.repository import GConf
 from gi.repository import Gtk
 from gi.repository import Gdk
-from gi.repository import GdkPixbuf
+import cairo
 from gi.repository import GObject
 import dbus
 import dbus.service
@@ -642,26 +643,28 @@ class Activity(Window, Gtk.Container):
         binary content of a png image with a width of 300 and a height of 225
         pixels.
         """
-        if self.canvas is None or not hasattr(self.canvas, 'get_snapshot'):
(Continue reading)

Walter Bender | 9 Feb 19:30
Picon

re GSoC

Last year, we were not awarded any slots because:

"Our concern was primarily around your ideas page this year. While
other returning organizations had quite extensive and lengthy ideas,
yours was quite sparse. We would like to see on the order of 8-10
fleshed out ideas listed with potential mentors, use cases,
difficulty, and more information on your project and your community. I
hope you'll apply again next year. Have a great summer."

Let's please get some ideas written up [1]--I am sure there are many
out there--so that we can take advantage of the program this year.

-walter

--

-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org

[1] http://wiki.sugarlabs.org/go/Summer_of_Code/2012
Gonzalo Odiard | 9 Feb 15:19
Favicon

Easy Hacks in activities

I have received questions from volunteers about easy tasks to start hacking in Sugar.
Of course, start with activities is easier than core Sugar, then I reviewed the open ticket
in the activities and added a "easy-hack" tag to tickets I think can be solved by a newbie hacker.

The list is here: http://bugs.sugarlabs.org/query?status=accepted&status=assigned&status=new&status=reopened&group=component&order=priority&col=id&col=summary&col=status&col=owner&col=type&col=priority&col=milestone&keywords=~easy-hack

We used to have another similar tag "sugar-love", but I found the tickets no so easy to solve,
and the list not maintained. If anybody will maintain/use the sugar-love tag, we can keep it,
if not may be is a good idea remove the tag.

Gonzalo

_______________________________________________
Sugar-devel mailing list
Sugar-devel <at> lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel
Walter Bender | 9 Feb 00:15
Picon

Google Summer of Code

It is that time of year again. We need to start soliciting
participants in Google Summer of Code [1, 2]. We also need to organize
our application to the program as a mentoring organization. Please
contact me if you are interested in participating as a coder, a
mentor, or administrator.

regards.

-walter

--

-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org

[1] http://code.google.com/soc/
[2] http://www.google-melange.com/gsoc/homepage/google/gsoc2012
godiard | 8 Feb 21:48
Favicon

[PATCH Moon] Add date information to the information displayed - SL #2749

From: Gonzalo Odiard <godiard <at> gmail.com>

The patch set the locale to use calendar to get week days and mont days.

Signed-off-by: Flavio Danesse <fdanesse <at> gmail.com>
Reviewed-by: Gonzalo Odiard <gonzalo <at> laptop.org>
---
 moon.py |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/moon.py b/moon.py
index f9eca9d..bd4bd2b 100755
--- a/moon.py
+++ b/moon.py
@@ -36,7 +36,9 @@ from sugar.graphics.toggletoolbutton import ToggleToolButton
 from gettext import gettext as _
 import math
 import time
+import calendar
 import os
+import locale

 try:
     import json
@@ -67,6 +69,12 @@ class MoonActivity(activity.Activity):
         self._name = handle
         self.set_title(_("Moon"))

+        # Set the locale to format dates
+        lang = os.getenv('LANG')
+        if lang.find('.') > -1:
+            lang = lang[:lang.find('.')]
+        locale.setlocale(locale.LC_TIME, lang)
+
         # Defaults (Resume priority, persistent file secondary, fall-back hardcoded)
         if handle.object_id == None:
             print "Launched from home."
@@ -242,12 +250,21 @@ class MoonActivity(activity.Activity):
         gobject.source_remove(self.update_moon_image_timeout)
         self.update_moon_image_view()

+    def format_date(self, date_time):
+        year = date_time.tm_year
+        month = calendar.month_name[date_time.tm_mon - 1]
+        day = date_time.tm_mday
+        week_day = calendar.day_name[date_time.tm_wday - 1]
+        return "%(week_day)s, %(day)s %(month)s %(year)s" % \
+                {'week_day':week_day, 'day':day, 'month':month, 'year':year}
+
     def update_text_information_view(self):
         """Generate Moon data and update text based information view.
         """
         self.data_model.update_moon_calculations(time.time())
         information_string = ""
-        information_string += _("Today's Moon Information\n\n")
+        information_string += _("Today's Moon Information\n")
+        information_string += "%s\n\n" % self.format_date(time.localtime())
         information_string += _("Phase:\n%s\n\n") % (self.data_model.moon_phase_name(self.data_model.phase_of_moon))
         information_string += _("Julian Date:\n%.2f (astronomical)\n\n") % (self.data_model.julian_date)
         information_string += _("Age:\n%(days).0f days, %(hours).0f hours, %(minutes).0f minutes\n\n") %
{'days':self.data_model.days_old, 'hours':self.data_model.hours_old, 'minutes':self.data_model.minutes_old}
--

-- 
1.7.7.6
Favicon

[ASLO] Release WikipediaRW-33.3

Activity Homepage:
http://activities.sugarlabs.org/addon/4532

Sugar Platform:
0.86 - 0.96

Download Now:
http://activities.sugarlabs.org/downloads/file/27858/wikipediarw-33.3.xo

Release notes:

Sugar Labs Activities
http://activities.sugarlabs.org
Thomas C Gilliard | 8 Feb 16:31
Favicon
Gravatar

Fix for Browse 131.xo on XO-1 os833- (how to remove it)

If you drag-drop Browse 131.xo to an XO-1 on os833 (sugar 0.94) you will find that browse will not start and you cannot erase it (greyed out option).
Effectively you have lost your Browser. (browse 131 and 130 are not compatible uses gtk +3 )

There will be a lot of releases of  new activities using gtk +3 . This tecnique may be a way to revert the critical applications where  erase is greyed out.

Be sure to visit [2] to see if the activity version is compatable first.

To Fix: Drag-drop Browse 127.xo [1] from a USB stick and click "OK" to install an older version. Then go to My Settings/Software update and click on Browse 129.1 and update it.
  [1]  http://download.sugarlabs.org/activities/4024/browse-127.xo

Works and saves re-imaging the XO-1

Tom Gilliard
satellit_ on #sugar IRC

[1]  http://download.sugarlabs.org/activities/4024/browse-127.xo
[2]  http://wiki.sugarlabs.org/go/Sugar_Creation_Kit/sck/Activity_Matrix

_______________________________________________
Sugar-devel mailing list
Sugar-devel <at> lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel
Favicon

[ASLO] Release Flip Sticks-11

Activity Homepage:
http://activities.sugarlabs.org/addon/4044

Sugar Platform:
0.82 - 0.96

Download Now:
http://activities.sugarlabs.org/downloads/file/27855/flip_sticks-11.xo

Release notes:
* Update translations
* Workaround Sugar's PYTHONPATH setting behaviour

Sugar Labs Activities
http://activities.sugarlabs.org
Ariel Calzada | 7 Feb 22:41
Picon

How to update all .po files

Hi i had to update some locale strings in an activity, so i made this 
simple script. I hope you like it

sweets genpot

for file in *.po
do
     msgmerge -vU $file Calendario.pot
done

rm -Rf *~

Regards,
ARIEL
Favicon

[ASLO] Release Hello World-5

Activity Homepage:
http://activities.sugarlabs.org/addon/4418

Sugar Platform:
0.96 - 0.96

Download Now:
http://activities.sugarlabs.org/downloads/file/27854/helloworld-5.xo

Release notes:
Remove import of deprecated ActivityToolbox (Gonzalo Odiard)
Move setup.py to the gtk3 toolkit (Simon Schampijer)

Sugar Labs Activities
http://activities.sugarlabs.org
Favicon

[ASLO] Release Browse-131

Activity Homepage:
http://activities.sugarlabs.org/addon/4024

Sugar Platform:
0.96 - 0.96

Download Now:
http://activities.sugarlabs.org/downloads/file/27853/browse-131.xo

Release notes:
Release 131 (Manuel Quiñones)
Fix, closing tabs was not working (Manuel Quiñones)
Show loading message in the overlay (Manuel Quiñones)
Commit from Sugar Labs: Translation System by user HoboPrimate.: 32 of 32 messages translated (0 fuzzy).
(Pootle daemon)
Commit from Sugar Labs: Translation System by user aman0115.: 32 of 32 messages translated (0 fuzzy).
(Pootle daemon)
Commit from Sugar Labs: Translation System by user samybt.: 32 of 32 messages translated (0 fuzzy).
(Pootle daemon)
Commit from Sugar Labs: Translation System by user cjl.: 32 of 32 messages translated (0 fuzzy). (Pootle daemon)
Commit from Sugar Labs: Translation System by user cjl.: 32 of 32 messages translated (0 fuzzy). (Pootle daemon)
Commit from Sugar Labs: Translation System by user cjl.: 32 of 32 messages translated (0 fuzzy). (Pootle daemon)
Commit from Sugar Labs: Translation System by user aputsiaq.: 32 of 32 messages translated (0 fuzzy).
(Pootle daemon)
Commit from Sugar Labs: Translation System by user HoboPrimate.: 31 of 31 messages translated (0 fuzzy).
(Pootle daemon)
Append the current Sugar (Sucrose) version to the user agent (Simon Schampijer)
Display pages based on locale specific information (Simon Schampijer)
Bring back download functionality using WebKit (Simon Schampijer)
Highlight the search results correctly (Simon Schampijer)
Display pages based on locale specific information (Simon Schampijer)
Append the current Sugar (Sucrose) version to the user agent (Simon Schampijer)
Bring back download functionality using WebKit (Simon Schampijer)
Highlight the search results correctly (Simon Schampijer)
Commit from Sugar Labs: Translation System by user cjl.: 31 of 31 messages translated (0 fuzzy). (Pootle daemon)
Adopt to new Activity API (Simon Schampijer)
Deprecation fix: don't use EditToolbar from activity module (Simon Schampijer)
Make None comparison PEP8 conform (Simon Schampijer)
Palettes showing history in back and forward buttons (Manuel Quiñones)
Use self._browser in PrimaryToolbar, remove unused code (Manuel Quiñones)
Show link information when hovering over link (Simon Schampijer)
Global history for URL autocompletion in URL entry (Manuel Quiñones)
Cleanup in browser.py from unused xulrunner based code (Manuel Quiñones)
Restore starred links (Manuel Quiñones)
Use gtk-notebook-action-widget for the 'add-tab' button (Simon Schampijer)
Cleanup in browser.py from unused xulrunner based code (Simon Schampijer)
Make view source using the Webkit API (Simon Schampijer)
Normalize and autosearch url input. (Manuel Quiñones)
Adopt to WebKit API for title of the browser widget (Simon Schampijer)
Improve session store and restore (Manuel Quiñones)
Commit from Sugar Labs: Translation System by user cjl.: 30 of 30 messages translated (0 fuzzy). (Pootle
daemon) 

Sugar Labs Activities
http://activities.sugarlabs.org

_______________________________________________
Sugar-devel mailing list
Sugar-devel <at> lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel

Gmane