[Sugar-devel] [ASLO] Release Yupana-2

2012-02-05 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4533

Sugar Platform:
0.82 - 0.94

Download Now:
http://activities.sugarlabs.org/downloads/file/27848/yupana-2.xo

Release notes:
2

ENHANCEMENTS:
* Use radial gradient (Manuel QuiƱones)
* Spanish translation


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

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [DESIGN] Different color scheme for USB drives in sugar

2012-02-05 Thread Anish Mangal
Hi,

I was wondering whether we should be having a color-scheme which is
different to the sugar-user's color scheme while displaying icons for
USB drives (or for that matter, other 'removable' storage devices).

To me, it is vaguely similar to having different colors for wireless
networks insofar that its a shared resource which is not particularly
associated to a user. The same USB stick might be used on different
laptops/XO's.

What is owned, however, by the users are the journal entries, and they
should retain whatever color-scheme they already do. Perhaps, we could
determine the color-scheme by using the USB drive's UUID or maybe just
the volume label. WhatSay?

Cheers,
Anish
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [sugar-artwork PATCH] sl#3317: Batch Operations on Journal Entries (Copy, Erase)

2012-02-05 Thread Ajay Garg
Adding icons for "Select-none" and "Select-all".

 icons/scalable/actions/Makefile.am |2 +
 icons/scalable/actions/select-all.svg  |   80 
 icons/scalable/actions/select-none.svg |   72 
 3 files changed, 154 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 icons/scalable/actions/Makefile.am
 create mode 100644 icons/scalable/actions/select-all.svg
 create mode 100644 icons/scalable/actions/select-none.svg

diff --git a/icons/scalable/actions/Makefile.am 
b/icons/scalable/actions/Makefile.am
old mode 100644
new mode 100755
index 9df018b..b326208
--- a/icons/scalable/actions/Makefile.am
+++ b/icons/scalable/actions/Makefile.am
@@ -66,6 +66,8 @@ icon_DATA =   \
media-seek-forward.svg  \
row-insert.svg  \
row-remove.svg  \
+   select-all.svg  \
+   select-none.svg \
system-logout.svg   \
system-restart.svg  \
system-search.svg   \
diff --git a/icons/scalable/actions/select-all.svg 
b/icons/scalable/actions/select-all.svg
new file mode 100644
index 000..f1c29a9
--- /dev/null
+++ b/icons/scalable/actions/select-all.svg
@@ -0,0 +1,80 @@
+
+http://www.openswatchbook.org/uri/2009/osb";
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   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";
+   enable-background="new 0 0 55 54.696"
+   height="54.696px"
+   version="1.1"
+   viewBox="0 0 55 54.696"
+   width="55px"
+   x="0px"
+   xml:space="preserve"
+   y="0px"
+   id="svg2"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="select-all.svg">image/svg+xmlhttp://purl.org/dc/dcmitype/StillImage"; />
diff --git a/icons/scalable/actions/select-none.svg 
b/icons/scalable/actions/select-none.svg
new file mode 100644
index 000..0427384
--- /dev/null
+++ b/icons/scalable/actions/select-none.svg
@@ -0,0 +1,72 @@
+
+http://www.openswatchbook.org/uri/2009/osb";
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   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";
+   enable-background="new 0 0 55 54.696"
+   height="54.696px"
+   version="1.1"
+   viewBox="0 0 55 54.696"
+   width="55px"
+   x="0px"
+   xml:space="preserve"
+   y="0px"
+   id="svg2"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="select-all.svg">image/svg+xmlhttp://purl.org/dc/dcmitype/StillImage"; 
/>
-- 
1.7.4.4

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [sugar-toolkit PATCH] sl#3317: Batch Operations on Journal Entries (Copy, Erase)

2012-02-05 Thread Ajay Garg
A new function has been added, which provides the ability to have a callback 
executed, 
after the alert is shown.

Note that, in usual cases (that is, prior addition of this function), the alert 
is shown;
and the action taken only after user clicks one of the action-buttons (eg. 
'OK', 'Cancel', etc.).
However, if it was needed that an alert shown, and some other work done 
(WITHOUT 
USER CLICKING ANY ACTION-BUTTON), that would not be possible.


 src/sugar/graphics/window.py |5 +
 1 files changed, 5 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 src/sugar/graphics/window.py

diff --git a/src/sugar/graphics/window.py b/src/sugar/graphics/window.py
old mode 100644
new mode 100755
index b269efc..0f5ebf6
--- a/src/sugar/graphics/window.py
+++ b/src/sugar/graphics/window.py
@@ -224,6 +224,11 @@ class Window(gtk.Window):
 else:
 self.__vbox.reorder_child(alert, 0)
 
+def add_alert_and_callback(self, alert, callback, data):
+self.add_alert(alert)
+if callback is not None:
+gobject.idle_add(callback, data)
+
 def remove_alert(self, alert):
 if alert in self._alerts:
 self._alerts.remove(alert)
-- 
1.7.4.4

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [sugar PATCH] sl#3317: Batch Operations on Journal Entries (Copy, Erase)

2012-02-05 Thread Ajay Garg
Note that this patch MUST be applied after the applying of patch at :
http://patchwork.sugarlabs.org/patch/1157/


== This code has been written almost exclusively by Martin Abente.

== Design discussions at :
   http://wiki.sugarlabs.org/go/Features/Multi_selection

== Screenshots at :
   http://wiki.sugarlabs.org/go/Features/Multi_selection_screenshots

== Martin's work's video at :
   http://www.sugarlabs.org/~tch/journal2.mpeg



Following are the changes/enhancements from Martin's work :

a. More copy-to options :: Clipboard, Documents (in addition to mounted 
drives). 

b. After entries are copied to another location, both - the source and the 
target - entries
   are de-selected automatically, without the user explicitly have to de-select 
them all manually. 

c. There has been a progress bar added for batch-operations. 


Codewise, effore has been put to have maximum code-reuse; and mimimal 
code-duplication,
as most of the operation-parts are same, irrespective of the operation 
performed.
   

 src/jarabe/journal/journalactivity.py |  135 -
 src/jarabe/journal/journaltoolbox.py  |  176 ++-
 src/jarabe/journal/listmodel.py   |   13 +
 src/jarabe/journal/listview.py|   48 +++
 src/jarabe/journal/model.py   |   13 +-
 src/jarabe/journal/palettes.py|  574 +++--
 6 files changed, 844 insertions(+), 115 deletions(-)

diff --git a/src/jarabe/journal/journalactivity.py 
b/src/jarabe/journal/journalactivity.py
index 8cafef0..6f03a73 100644
--- a/src/jarabe/journal/journalactivity.py
+++ b/src/jarabe/journal/journalactivity.py
@@ -1,5 +1,9 @@
 # Copyright (C) 2006, Red Hat, Inc.
 # Copyright (C) 2007, One Laptop Per Child
+# Copyright (C) 2012, Walter Bender  
+# Copyright (C) 2012, Gonzalo Odiard 
+# Copyright (C) 2012, Martin Abente  
+# Copyright (C) 2012, Ajay Garg  
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,15 +21,18 @@
 
 import logging
 from gettext import gettext as _
+from gettext import ngettext
 import uuid
 
 import gtk
 import dbus
 import statvfs
 import os
+import gobject
 
 from sugar.graphics.window import Window
-from sugar.graphics.alert import ErrorAlert
+from sugar.graphics.alert import Alert, ErrorAlert
+from sugar.graphics.icon import Icon
 
 from sugar.bundle.bundle import ZipExtractException, RegistrationException
 from sugar import env
@@ -34,7 +41,9 @@ from sugar import wm
 
 from jarabe.model import bundleregistry
 from jarabe.journal.journaltoolbox import MainToolbox, DetailToolbox
+from jarabe.journal.journaltoolbox import EditToolbox
 from jarabe.journal.listview import ListView
+from jarabe.journal.listmodel import ListModel
 from jarabe.journal.detailview import DetailView
 from jarabe.journal.volumestoolbar import VolumesToolbar
 from jarabe.journal import misc
@@ -53,6 +62,7 @@ _SPACE_TRESHOLD = 52428800
 _BUNDLE_ID = 'org.laptop.JournalActivity'
 
 _journal = None
+_mount_point = None
 
 
 class JournalActivityDBusService(dbus.service.Object):
@@ -119,8 +129,15 @@ class JournalActivity(JournalWindow):
 self._list_view = None
 self._detail_view = None
 self._main_toolbox = None
+self._edit_toolbox = None
 self._detail_toolbox = None
 self._volumes_toolbar = None
+self._editing_mode = False
+self._editing_alert = None
+self._info_alert = None
+self._selected_entries = []
+
+set_mount_point('/')
 
 self._setup_main_view()
 self._setup_secondary_view()
@@ -184,7 +201,7 @@ class JournalActivity(JournalWindow):
 search_toolbar = self._main_toolbox.search_toolbar
 search_toolbar.connect('query-changed', self._query_changed_cb)
 search_toolbar.set_mount_point('/')
-self._mount_point = '/'
+set_mount_point('/')
 
 def _setup_secondary_view(self):
 self._secondary_view = gtk.VBox()
@@ -217,9 +234,13 @@ class JournalActivity(JournalWindow):
 self.show_main_view()
 
 def show_main_view(self):
-if self.toolbar_box != self._main_toolbox:
-self.set_toolbar_box(self._main_toolbox)
-self._main_toolbox.show()
+if self._editing_mode:
+toolbox = EditToolbox()
+else:
+toolbox = self._main_toolbox
+
+self.set_toolbar_box(toolbox)
+toolbox.show()
 
 if self.canvas != self._main_view:
 self.set_canvas(self._main_view)
@@ -254,7 +275,7 @@ class JournalActivity(JournalWindow):
 def __volume_changed_cb(self, volume_toolbar, mount_point):
 logging.debug('Selected volume: %r.', mount_point)
 self._main_toolbox.search_toolbar.set_mount_point(mount_point)
-self._mount_point = mount_point
+set_mount_point(mount_point)
 self._main_toolbox.set_current_toolbar(0)
 
 def __model_created_cb(self, sender, 

[Sugar-devel] [ASLO] Release Yupana-1

2012-02-05 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4533

Sugar Platform:
0.82 - 0.94

Download Now:
http://activities.sugarlabs.org/downloads/file/27847/yupana-1.xo

Release notes:
Version 1 of Yupana, a counting device used by the Icans (similar to an abacus)


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

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Speak 33 voice chat problem on XO-1 11.3.0

2012-02-05 Thread David Leeming
On Tue, 2012-01-31 at 20:11 +1000, David Leeming wrote:
>> I have been trying OLPC release 11.3.0 / build 883 (Sugar 0.94.1) on
>> the XO-1.
>>
>> Has anyone noticed an issue in using voice chat, with the above
>> equipment specification? Maybe it was just me but I was unable to get
>> any audio of a shared chat text on the joined XO(s). Tried with XS
>> server and with XO mesh. I am used to this activity on earlier
>> versions of Speak and have never had any problems.

> We tested this today and found that on both the XO-1 and XO-1.75 Speak
> does not speak incoming messages. Outgoing messages were spoken. Is this
> what you are talking about?

> We also found two more bugs. When joining a shared session, Speak does
> not focus the shared chat screen but instead drops the user in the
> "speak what I type" screen. When entering Voice chat mode with the
> activity shared, you get a spoken warning that the activity is offline.

Hi Tom

Yes, that is precisely what we experienced. With earlier version Speak-11 voice 
chat spoke incoming messages OK and joined users into the collaboration.

David



___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel