Re: [Sugar-devel] Double Gtk.main_quit (was Re: [PATCH sugar-toolkit-gtk3] Sugar scroll bar clicks should invoke page up/page down SL #3859)

2012-11-06 Thread Daniel Narvaez
About to send a couple of patches to fix this.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [PATCH sugar 1/2] Move IntroWindow creation to sugar-session

2012-11-06 Thread Daniel Narvaez
From: Daniel Narvaez dwnarv...@gmail.com

It avoids the unexpected side effect (showing the intro UI
implicityly when we are just checking the profile existence).

It also prepares for listening to an IntroWindow done signal
instead of blocking in a mainloop.
---
 bin/sugar-session|7 ++-
 src/jarabe/intro/__init__.py |8 +---
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/bin/sugar-session b/bin/sugar-session
index 23f88a1..5c72ff2 100755
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -278,6 +278,7 @@ def main():
 from jarabe.desktop import homewindow
 from jarabe.model import sound
 from jarabe import intro
+from jarabe.intro.window import IntroWindow
 
 logger.start('shell')
 
@@ -301,7 +302,11 @@ def main():
 # TODO #3204
 if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr', 
shell=True):
 logging.warning('Can not reset cursor')
-intro.check_profile()
+
+if not intro.check_profile():
+win = IntroWindow()
+win.show_all()
+Gtk.main()
 
 start_ui_service()
 start_session_manager()
diff --git a/src/jarabe/intro/__init__.py b/src/jarabe/intro/__init__.py
index d2e9276..0045c74 100644
--- a/src/jarabe/intro/__init__.py
+++ b/src/jarabe/intro/__init__.py
@@ -1,11 +1,8 @@
 import os
 
-from gi.repository import Gtk
-
 from sugar3 import env
 from sugar3.profile import get_profile
 
-from jarabe.intro.window import IntroWindow
 from jarabe.intro.window import create_profile
 
 
@@ -20,7 +17,4 @@ def check_profile():
 if os.path.exists(path):
 profile.convert_profile()
 
-if not profile.is_valid():
-win = IntroWindow()
-win.show_all()
-Gtk.main()
+return profile.is_valid()
-- 
1.7.10.2

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


[Sugar-devel] [PATCH sugar 2/2] Listen on a IntroWindow done signal instead of blocking

2012-11-06 Thread Daniel Narvaez
From: Daniel Narvaez dwnarv...@gmail.com

Creating multiple non-nested mainloops in gtk 3.6 breaks
at least accessibility.

See https://bugzilla.gnome.org/show_bug.cgi?id=685453
---
 bin/sugar-session  |   38 ++
 src/jarabe/intro/window.py |6 +-
 2 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/bin/sugar-session b/bin/sugar-session
index 5c72ff2..6d2435e 100755
--- a/bin/sugar-session
+++ b/bin/sugar-session
@@ -253,6 +253,22 @@ def set_theme():
 settings.set_property('gtk-theme-name', sugar_theme)
 settings.set_property('gtk-icon-theme-name', 'sugar')
 
+def start_home():
+from jarabe.desktop import homewindow
+
+start_ui_service()
+start_session_manager()
+
+# open homewindow before window_manager to let desktop appear fast
+home_window = homewindow.get_instance()
+home_window.show()
+
+screen = Wnck.Screen.get_default()
+screen.connect('window-manager-changed', __window_manager_changed_cb)
+_check_for_window_manager(screen)
+
+def intro_window_done_cb(window):
+start_home()
 
 def main():
 try:
@@ -275,7 +291,6 @@ def main():
 gettext.bindtextdomain('sugar-toolkit', config.locale_path)
 gettext.textdomain('sugar')
 
-from jarabe.desktop import homewindow
 from jarabe.model import sound
 from jarabe import intro
 from jarabe.intro.window import IntroWindow
@@ -303,14 +318,6 @@ def main():
 if subprocess.call('echo $DISPLAY; xsetroot -cursor_name left_ptr', 
shell=True):
 logging.warning('Can not reset cursor')
 
-if not intro.check_profile():
-win = IntroWindow()
-win.show_all()
-Gtk.main()
-
-start_ui_service()
-start_session_manager()
-
 sound.restore()
 
 sys.path.append(config.ext_path)
@@ -318,13 +325,12 @@ def main():
 icons_path = os.path.join(config.data_path, 'icons')
 Gtk.IconTheme.get_default().append_search_path(icons_path)
 
-# open homewindow before window_manager to let desktop appear fast
-home_window = homewindow.get_instance()
-home_window.show()
-
-screen = Wnck.Screen.get_default()
-screen.connect('window-manager-changed', __window_manager_changed_cb)
-_check_for_window_manager(screen)
+if not intro.check_profile():
+win = IntroWindow()
+win.connect(done, intro_window_done_cb)
+win.show_all()
+else:
+start_home()
 
 try:
 Gtk.main()
diff --git a/src/jarabe/intro/window.py b/src/jarabe/intro/window.py
index 252870d..bebffe4 100644
--- a/src/jarabe/intro/window.py
+++ b/src/jarabe/intro/window.py
@@ -261,6 +261,10 @@ class _IntroBox(Gtk.VBox):
 class IntroWindow(Gtk.Window):
 __gtype_name__ = 'SugarIntroWindow'
 
+__gsignals__ = {
+'done': (GObject.SignalFlags.RUN_FIRST, None, ([])),
+}
+
 def __init__(self):
 Gtk.Window.__init__(self)
 
@@ -280,7 +284,7 @@ class IntroWindow(Gtk.Window):
 
 def _create_profile_cb(self, name, color):
 create_profile(name, color)
-Gtk.main_quit()
+self.emit(done)
 
 return False
 
-- 
1.7.10.2

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


[Sugar-devel] Want to install sugar jh-build, but seems that Ubuntu can't host it.

2012-11-06 Thread laurent bernabe
Hello everyone,


I would like to installl sugar jhbuild on Ubuntu 12.10 64 bits, but when I
go to Ubuntu page of its wiki
http://wiki.sugarlabs.org/go/Development_Team/Jhbuild/Ubuntu, it says that
it is unsupported (because of python-xpcom lack).

But just below, there are instructions to install it.

Have I missed something or it is a way to bypass the problem ?



Thanks in advance :)

Laurent Bernabé

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


Re: [Sugar-devel] Want to install sugar jh-build, but seems that Ubuntu can't host it.

2012-11-06 Thread Daniel Narvaez
Hi,

I don't know about sugar-jhbuild but sugar-build supports Ubuntu 12.10.

git clone git://git.sugarlabs.org/~dnarvaez/sugar-build/gnome-3-6.git
sugar-build
cd sugar-build
make build
[wait ~10 minutes]
make run

(see the README for other useful commands)

Note that support for 12.10 was added very recently so there are
surely issues. If you give it a try please report them (see the
README) and I will get them fixed.

On 6 November 2012 13:46, laurent bernabe laurent.bern...@gmail.com wrote:
 Hello everyone,


 I would like to installl sugar jhbuild on Ubuntu 12.10 64 bits, but when I
 go to Ubuntu page of its wiki
 http://wiki.sugarlabs.org/go/Development_Team/Jhbuild/Ubuntu, it says that
 it is unsupported (because of python-xpcom lack).

 But just below, there are instructions to install it.

 Have I missed something or it is a way to bypass the problem ?



 Thanks in advance :)

 Laurent Bernabé

 Programmer Just By Hobby.

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




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


Re: [Sugar-devel] Want to install sugar jh-build, but seems that Ubuntu can't host it.

2012-11-06 Thread Ignacio Rodríguez
In Lubuntu 12.10 shows icons or even the X to start.


2012/11/6 Daniel Narvaez dwnarv...@gmail.com

 Hi,

 I don't know about sugar-jhbuild but sugar-build supports Ubuntu 12.10.

 git clone git://git.sugarlabs.org/~dnarvaez/sugar-build/gnome-3-6.git
 sugar-build
 cd sugar-build
 make build
 [wait ~10 minutes]
 make run

 (see the README for other useful commands)

 Note that support for 12.10 was added very recently so there are
 surely issues. If you give it a try please report them (see the
 README) and I will get them fixed.

 On 6 November 2012 13:46, laurent bernabe laurent.bern...@gmail.com
 wrote:
  Hello everyone,
 
 
  I would like to installl sugar jhbuild on Ubuntu 12.10 64 bits, but when
 I
  go to Ubuntu page of its wiki
  http://wiki.sugarlabs.org/go/Development_Team/Jhbuild/Ubuntu, it says
 that
  it is unsupported (because of python-xpcom lack).
 
  But just below, there are instructions to install it.
 
  Have I missed something or it is a way to bypass the problem ?
 
 
 
  Thanks in advance :)
 
  Laurent Bernabé
 
  Programmer Just By Hobby.
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



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




-- 
Juan Ignacio Rodríguez
CeibalJAM!
Activity Central
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Want to install sugar jh-build, but seems that Ubuntu can't host it.

2012-11-06 Thread Daniel Narvaez
Hi Ignacio,

I'm not sure to understand what you mean here. Does it fail to start?
Icons are not shown? If you make bug-report and send the resulting
tarball, it would make it easier for me to debug.

On 6 November 2012 14:01, Ignacio Rodríguez nachoe...@gmail.com wrote:
 In Lubuntu 12.10 shows icons or even the X to start.


 2012/11/6 Daniel Narvaez dwnarv...@gmail.com

 Hi,

 I don't know about sugar-jhbuild but sugar-build supports Ubuntu 12.10.

 git clone git://git.sugarlabs.org/~dnarvaez/sugar-build/gnome-3-6.git
 sugar-build
 cd sugar-build
 make build
 [wait ~10 minutes]
 make run

 (see the README for other useful commands)

 Note that support for 12.10 was added very recently so there are
 surely issues. If you give it a try please report them (see the
 README) and I will get them fixed.

 On 6 November 2012 13:46, laurent bernabe laurent.bern...@gmail.com
 wrote:
  Hello everyone,
 
 
  I would like to installl sugar jhbuild on Ubuntu 12.10 64 bits, but when
  I
  go to Ubuntu page of its wiki
  http://wiki.sugarlabs.org/go/Development_Team/Jhbuild/Ubuntu, it says
  that
  it is unsupported (because of python-xpcom lack).
 
  But just below, there are instructions to install it.
 
  Have I missed something or it is a way to bypass the problem ?
 
 
 
  Thanks in advance :)
 
  Laurent Bernabé
 
  Programmer Just By Hobby.
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 



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




 --
 Juan Ignacio Rodríguez
 CeibalJAM!
 Activity Central




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


Re: [Sugar-devel] [ASLO] Release Speak-43

2012-11-06 Thread Peter Robinson
On Mon, Nov 5, 2012 at 6:38 AM, Rafael Ortiz raf...@activitycentral.com wrote:

 Provided a wrong link:

 http://download.sugarlabs.org/sources/honey/Speak/Speak-43.tar.bz2


 Sorry and Cheers. ;).

np. It seems the cjson removal patch didn't make it into Speak 43. I
thought that it was already committed to git but clearly that wasn't
the case as it's still crashing with the error.

Peter

 On Sat, Nov 3, 2012 at 10:04 AM, Peter Robinson pbrobin...@gmail.com
 wrote:



 On Thu, Nov 1, 2012 at 8:59 PM, Rafael Ortiz raf...@activitycentral.com
 wrote:

 = Release Notes =

 * Use radians instead of degrees
 Cairo.Context.arc needs the angle in radians instead of degrees. Give
 it as 360 (radians) was taking up to 8 seconds to draw the eyes. by:
 Manuel Kaufmann humi...@gmail.com

 * New translations.

 == Sources ==
 *http://download.sugarlabs.org/sources/honey/Speak/Speak-43.xo


 tar file please.


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


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


Re: [Sugar-devel] [ASLO] Release Speak-43

2012-11-06 Thread Rafael Ortiz
Odd will check.



On Tue, Nov 6, 2012 at 8:32 AM, Peter Robinson pbrobin...@gmail.com wrote:

 On Mon, Nov 5, 2012 at 6:38 AM, Rafael Ortiz raf...@activitycentral.com
 wrote:
 
  Provided a wrong link:
 
  http://download.sugarlabs.org/sources/honey/Speak/Speak-43.tar.bz2
 
 
  Sorry and Cheers. ;).

 np. It seems the cjson removal patch didn't make it into Speak 43. I
 thought that it was already committed to git but clearly that wasn't
 the case as it's still crashing with the error.

 Peter

  On Sat, Nov 3, 2012 at 10:04 AM, Peter Robinson pbrobin...@gmail.com
  wrote:
 
 
 
  On Thu, Nov 1, 2012 at 8:59 PM, Rafael Ortiz 
 raf...@activitycentral.com
  wrote:
 
  = Release Notes =
 
  * Use radians instead of degrees
  Cairo.Context.arc needs the angle in radians instead of degrees. Give
  it as 360 (radians) was taking up to 8 seconds to draw the eyes. by:
  Manuel Kaufmann humi...@gmail.com
 
  * New translations.
 
  == Sources ==
  *http://download.sugarlabs.org/sources/honey/Speak/Speak-43.xo
 
 
  tar file please.
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 
 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel

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


[Sugar-devel] sugar-build support for Fedora 18

2012-11-06 Thread Daniel Narvaez
Hello,

I just added support for Fedora 18 to sugar-build, in the gnome-3-6 repo

git://git.sugarlabs.org/~dnarvaez/sugar-build/gnome-3-6.git

I'm not planning to add buildbots for it until final is released. It
builds very quickly because we don't have external dependencies to
build :) If you try it and find any bug please report them!

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


Re: [Sugar-devel] Multi-touch test activity

2012-11-06 Thread Martin Langhoff
On Sun, Nov 4, 2012 at 8:29 PM, Bert Freudenberg b...@freudenbergs.de wrote:
 Ah, thanks. I wasn't even going to file a bug report about the aliasing 
 because that is a limitation inherent to the kind of sensor we have.

There are of course limitations, but we are in the process of tuning
and tightening things on the IR.

All sensor types have some forms of aliasing. If you know how, you can
confuse capacitive sensors too :-)



m
--
 martin.langh...@gmail.com
 mar...@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Multi-touch test activity

2012-11-06 Thread Bert Freudenberg
On 2012-11-06, at 23:50, Martin Langhoff martin.langh...@gmail.com wrote:

 On Sun, Nov 4, 2012 at 8:29 PM, Bert Freudenberg b...@freudenbergs.de wrote:
 Ah, thanks. I wasn't even going to file a bug report about the aliasing 
 because that is a limitation inherent to the kind of sensor we have.
 
 There are of course limitations, but we are in the process of tuning
 and tightening things on the IR.

Okay. The breaking up of touch contacts was surprising. I attached a photo here:

http://dev.laptop.org/ticket/12282

 All sensor types have some forms of aliasing. If you know how, you can
 confuse capacitive sensors too :-)

Yep. You may find my updated activity version useful in testing:

http://activities.sugarlabs.org/en-US/sugar/addon/4611/

I modified it to keep displaying the last touches.

Single-touch works pretty well already, tweaking multi-touch sounds good :)

- Bert -


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


[Sugar-devel] [ASLO] Release Image Viewer-54

2012-11-06 Thread Sugar Labs Activities
Activity Homepage:
http://activities.sugarlabs.org/addon/4032

Sugar Platform:
0.98 - 0.98

Download Now:
http://activities.sugarlabs.org/downloads/file/28341/image_viewer-54.xo

Release notes:
- Touch Zoom improvements (Manuel Kauffman)


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] Query regarding Drag and Drop

2012-11-06 Thread Ajay Garg
Hi all.

I have been checking the drag-and-drop thing on the os* images; as of os9,
I observe ::

*  I start to drag a journal-entry to one of the mount-points.

*  Before I can complete the process of dropping an entry into one
of the mount-points (Documents/Mounted-Pen-Drives), a palette opens up, and
the operation is aborted.
The palette is the same that would have cropped up, had the entry
been right-clicked.


So,

Is this a bug; or the drag-and-copy is NOT intended to work anyways, since
we are moving to a touch-friendly version?


Will be grateful for a reply :)





Regards,

Ajay Garg
Dextrose Developer
Activity Central: http://activitycentral.com
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Query regarding Drag and Drop

2012-11-06 Thread Samuel Greenfeld
It's a bug:

http://bugs.sugarlabs.org/ticket/3999


On Wed, Nov 7, 2012 at 12:37 AM, Ajay Garg a...@activitycentral.com wrote:

 Hi all.

 I have been checking the drag-and-drop thing on the os* images; as of os9,
 I observe ::

 *  I start to drag a journal-entry to one of the mount-points.

 *  Before I can complete the process of dropping an entry into one
 of the mount-points (Documents/Mounted-Pen-Drives), a palette opens up, and
 the operation is aborted.
 The palette is the same that would have cropped up, had the entry
 been right-clicked.


 So,

 Is this a bug; or the drag-and-copy is NOT intended to work anyways, since
 we are moving to a touch-friendly version?


 Will be grateful for a reply :)





 Regards,

 Ajay Garg
 Dextrose Developer
 Activity Central: http://activitycentral.com

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


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


Re: [Sugar-devel] [ASLO] Release Image Viewer-54

2012-11-06 Thread Peter Robinson
Tar ball please :-)

On Wed, Nov 7, 2012 at 1:39 AM, Sugar Labs Activities
activit...@sugarlabs.org wrote:
 Activity Homepage:
 http://activities.sugarlabs.org/addon/4032

 Sugar Platform:
 0.98 - 0.98

 Download Now:
 http://activities.sugarlabs.org/downloads/file/28341/image_viewer-54.xo

 Release notes:
 - Touch Zoom improvements (Manuel Kauffman)


 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 mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH 0/7] datastore: handle ENOSPC gracefully

2012-11-06 Thread Simon Schampijer

On 09/26/2012 06:09 PM, Martin Langhoff wrote:

On Sat, Sep 22, 2012 at 10:09 PM, Martin Langhoff mar...@laptop.org wrote:

On Fri, Sep 21, 2012 at 11:36 AM, Martin Langhoff
martin.langh...@gmail.com wrote:

Reviews are boring. Testing is more fun! rpms for ARM at


Reviews are boring, but necessary.

As these patches have seen some reviews, and the ml is a bit awkward
for tracking those, I've pushed a 'pu' (proposed updates) branch at
http://dev.laptop.org/git/users/martin/sugar-datastore/

I have posted all the patches to the mailing list, and will continue
to do so. The pu branch will have the latest, freshest set of patches
(so: it rewinds/rebases as needed).



m



Thanks Martin, Sam and Manuel for your work on this. The datastore runs 
here fine. I pushed the changes. Will be available in 0.97.2.


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


[Sugar-devel] [RELEASE] sugar-datastore-0.97.2

2012-11-06 Thread Simon Schampijer
== Source ==

http://download.sugarlabs.org/sources/sucrose/glucose/sugar-datastore/sugar-datastore-0.97.2.tar.bz2

== News ==

* Release 0.97.2 (Simon Schampijer)
* datastore: handle low-disk and ENOSPC conditions gracefully (Martin Langhoff)
* datastore: make delete() more reliable, log properly (Martin Langhoff)
* indexstore: exit on _flush() errors, work on tmpdir (Martin Langhoff)
* metadatareader: ignore .hidden files (Martin Langhoff)
* metadatastore: store/change files on disk defensively, SL #2317 (Martin 
Langhoff)
* Remove invalid/corrupt on-disk entries, SL #2317 (Martin Langhoff)
* Add ds_clean flag to trigger index rebuilds, SL #2095, #2317 (Martin Langhoff)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel