Re: [Sugar-devel] Is there a way to purposefully do synchronous GUI updates?

2012-08-20 Thread James Cameron
On Tue, Aug 21, 2012 at 12:18:43PM +0530, Ajay Garg wrote: > James, > > Yes. Only one thread ACTUALLY executes on at any time on a > uniprocessor system. That is logical. > > But the thing is.. I am not at all wanting to speed up anything > .. :P :P I think you are wanting to speed up yourself,

Re: [Sugar-devel] Is there a way to purposefully do synchronous GUI updates?

2012-08-20 Thread Ajay Garg
James, Yes. Only one thread ACTUALLY executes on at any time on a uniprocessor system. That is logical. But the thing is.. I am not at all wanting to speed up anything .. :P :P I am wanting to solve an issue, which in the present case seems possible ONLY by using two threads. My intention is t

Re: [Sugar-devel] Is there a way to purposefully do synchronous GUI updates?

2012-08-20 Thread James Cameron
First, learn that on a single processor system, only one thread actually executes at a given time, so if you think you have more than one thread of execution, you're wrong and you really only have one. As soon as you expand the time for sampling, yes, more than one thread, or process, may execute.

Re: [Sugar-devel] Is there a way to purposefully do synchronous GUI updates?

2012-08-20 Thread Ajay Garg
Thanks James for the reply. On Tue, Aug 21, 2012 at 3:47 AM, James Cameron wrote: > On Tue, Aug 21, 2012 at 12:11:13AM +0530, Ajay Garg wrote: > > So, is there a way to have the code always in-order; in other words, > > have the GUI updates absolutely synchronous? > > No, not without waiting fo

Re: [Sugar-devel] [PATCH sugar] Fix drag and drop to the clipboard - SL #3811

2012-08-20 Thread Manuel Quiñones
2012/8/21 Manuel Quiñones : > gtk.gdk.DragContext.get_source_widget returns None if the drag is not > made within the same application. pygtk documentation for reference: http://www.pygtk.org/docs/pygtk/class-gdkdragcontext.html#method-gdkdragcontext--get-source-widget This is enough test to say

[Sugar-devel] [PATCH sugar] Fix drag and drop to the clipboard - SL #3811

2012-08-20 Thread Manuel Quiñones
gtk.gdk.DragContext.get_source_widget returns None if the drag is not made within the same application. This is enough test to say that it's not an internal drag. The gtk.Viewport comparison is left as fallback. Signed-off-by: Manuel Quiñones --- src/jarabe/frame/clipboardtray.py | 5 - 1

Re: [Sugar-devel] [DESIGN] Journal: confirmation before erasing/duplicating an entry

2012-08-20 Thread Simon Schampijer
On 08/20/2012 11:21 PM, Manuel Quiñones wrote: 2012/8/19 Simon Schampijer : Hi, I have been working on the confirmation alert for the Journal, submitted a patch [1]. "Erasing an entry in the Journal does not ask for confirmation before doing the erase. This patch adds an alert to the ListView

Re: [Sugar-devel] [PATCH sugar] Frame: new behavior for revealing/hiding the Frame with the mouse

2012-08-20 Thread Simon Schampijer
On 08/20/2012 05:06 PM, Manuel Quiñones wrote: 2012/8/20 Simon Schampijer : On 08/20/2012 04:44 PM, Manuel Quiñones wrote: 2012/8/17 Simon Schampijer : On 08/17/2012 12:48 AM, Manuel Quiñones wrote: I've tested an earlier patch for this and now I reviewed it. This is a much more solid in

Re: [Sugar-devel] [PATCH sugar] Neighborhood View: reveal Palette on left click/touch instead of a primary action

2012-08-20 Thread Simon Schampijer
On 08/16/2012 02:10 PM, Manuel Quiñones wrote: 2012/8/15 Simon Schampijer : Having a primary action for the icons in the Neighborhood View like the AP icon, the Ad-hoc, the Mesh network icon and the icon for a shared activity has never been a fully working UI design because the result you get by

Re: [Sugar-devel] [PATCH sugar] Making the buddy icons in the Views reveal the Palette on left click or touch

2012-08-20 Thread Simon Schampijer
On 08/16/2012 02:07 PM, Manuel Quiñones wrote: Very good Simon, 2012/8/15 Simon Schampijer : The owner icon (in the Home, Group and Neighborhood View) has no primary action. On left click we agreed to always reveal the Palette. This will give a better experience for users with a mouse/trackpad

Re: [Sugar-devel] [DESIGN] unfocus search entries in Views and the Journal

2012-08-20 Thread Gonzalo Odiard
> > >> - the entry contains a hint (e.g. "Search in your Journal..."), adding > a placeholder text is available in GTK+3.2 [2] > > > > Nice find. The place holder text would need to vary from place to place > e.g. "Search journal", "Search neighbourhood", "Search group" [1], "Search > favourite act

Re: [Sugar-devel] [PATCH sugar] Frame: reveal Palette on left click for device, friends and clipboard items v2

2012-08-20 Thread Manuel Quiñones
Have to say this again: interaction with the frame elemenst is much better and less error prone with this patch. 2012/8/19 Simon Schampijer : > In previous design discussions we agreed on making the Palette appear > immediately on left click. Actually some device icons like Speech or > Speaker hav

Re: [Sugar-devel] [PATCH sugar] Journal: add alert to confirm before erasing an entry

2012-08-20 Thread Manuel Quiñones
2012/8/19 Simon Schampijer : > Erasing an entry in the Journal does not ask for confirmation > before doing the erase. This patch adds an alert to the ListView > and the DetailView that asks for confirmation before doing the > erase. This is part of the touch interaction work [1]. > > Signed-off-by

Re: [Sugar-devel] gst-plugins-espeak port to gstreamer 1.0

2012-08-20 Thread Gonzalo Odiard
A very nice feature provided by the gstreamer espeak plugin is the signals at the begining of the words, useful to highlight every spoken word. Also, is true we can use espeak with the command line, but if we can avoid calling another process, I think is better. Gonzalo On Mon, Aug 20, 2012 at 5

Re: [Sugar-devel] gst-plugins-espeak port to gstreamer 1.0

2012-08-20 Thread Aleksey Lim
On Mon, Aug 20, 2012 at 05:28:04PM -0300, Flavio Danesse wrote: > Hello, on this subject, I think it is not necessary to create a special > plugin for sugar, Sorry, what kind of plugins you mean? > you can do the same in this way: > Check it out at: http://git.sugarlabs.org/speak/mainline There

Re: [Sugar-devel] Is there a way to purposefully do synchronous GUI updates?

2012-08-20 Thread James Cameron
On Tue, Aug 21, 2012 at 12:11:13AM +0530, Ajay Garg wrote: > So, is there a way to have the code always in-order; in other words, > have the GUI updates absolutely synchronous? No, not without waiting for the update to complete, and if you do this, the code runs very slowly. (When there is only o

Re: [Sugar-devel] [DESIGN] Journal: confirmation before erasing/duplicating an entry

2012-08-20 Thread Manuel Quiñones
2012/8/19 Simon Schampijer : > Hi, > > I have been working on the confirmation alert for the Journal, submitted a > patch [1]. > > "Erasing an entry in the Journal does not ask for confirmation > before doing the erase. This patch adds an alert to the ListView > and the DetailView that asks for con

Re: [Sugar-devel] [DESIGN] unfocus search entries in Views and the Journal

2012-08-20 Thread Manuel Quiñones
2012/8/20 Gary Martin : > Hi Simon, > > On 20 Aug 2012, at 12:56, Simon Schampijer wrote: > >> Hi, >> >> I have been thinking a bit about how we can enhance the interaction with the >> search entries in the Shell so they will work well in touch as well [1]. >> >> When you have a touchscreen devic

Re: [Sugar-devel] gst-plugins-espeak port to gstreamer 1.0

2012-08-20 Thread Flavio Danesse
Hello, on this subject, I think it is not necessary to create a special plugin for sugar, you can do the same in this way: Check it out at: http://git.sugarlabs.org/speak/mainline class BaseAudioGrab(GObject.GObject): __gsignals__ = { 'new-buffer': (GObject.SIGNAL_RUN_FIRST, No

Re: [Sugar-devel] conversations about sugar ui design

2012-08-20 Thread Sebastian Silva
"We have an opportunity in Peru to do some experiments." - WB Hi David, As a member of the Somos Azucar research & development team and direct responsible for the software distribution prototypes to be piloted in Peru, I warmly welcome your constructive offer of help. We (Laura and I) are responsi

[Sugar-devel] Is there a way to purposefully do synchronous GUI updates?

2012-08-20 Thread Ajay Garg
Hi all. I frequently happen to encounter cases, where GUI updates do not happen in the in-order manner. For eg, if the code is on the lines :: logic statement 1 update GUI logic state

Re: [Sugar-devel] [PATCH sugar] SpreadLayout: do not remove items from the grid if there is none yet, SL #3814

2012-08-20 Thread Simon Schampijer
On 08/20/2012 05:45 PM, Manuel Quiñones wrote: Good fix. I was seeing this issue of not initialized grid in the shell port too. 2012/8/19 Simon Schampijer : A grid is added to the ViewContainer when the children are allocated, we can not do it earlier because we need to pass the allocation det

[Sugar-devel] [RELEASE] sugar-0.97.1

2012-08-20 Thread Simon Schampijer
The 'no-hippo' release. == Source == http://download.sugarlabs.org/sources/sucrose/glucose/sugar/sugar-0.97.1.tar.bz2 == News == * Release 0.97.1 (Simon Schampijer) * SpreadLayout: do not remove items from the grid if there is none yet, SL #3814 (Simon Schampijer) * Use the gdk window to get t

Re: [Sugar-devel] Testing Rotate in sugar-jhbuild

2012-08-20 Thread Walter Bender
On Mon, Aug 20, 2012 at 12:25 PM, Gary Martin wrote: > Hi Walter, > > On 20 Aug 2012, at 00:57, Walter Bender wrote: > >> On Thu, Aug 16, 2012 at 5:27 PM, Gary Martin >> wrote: >>> Hi Walter, >>> >>> >>> On 16 Aug 2012, at 16:53, Walter Bender wrote: >>> >>> On Thu, Aug 16, 2012 at 11:36 AM, G

Re: [Sugar-devel] Testing Rotate in sugar-jhbuild

2012-08-20 Thread Gary Martin
Hi Walter, On 20 Aug 2012, at 00:57, Walter Bender wrote: > On Thu, Aug 16, 2012 at 5:27 PM, Gary Martin > wrote: >> Hi Walter, >> >> >> On 16 Aug 2012, at 16:53, Walter Bender wrote: >> >> On Thu, Aug 16, 2012 at 11:36 AM, Gonzalo Odiard wrote: >> >> In anybody want test how activities

Re: [Sugar-devel] [PATCH sugar] SpreadLayout: do not remove items from the grid if there is none yet, SL #3814

2012-08-20 Thread Manuel Quiñones
Good fix. I was seeing this issue of not initialized grid in the shell port too. 2012/8/19 Simon Schampijer : > A grid is added to the ViewContainer when the children > are allocated, we can not do it earlier because we need to > pass the allocation details. The allocation happens when > the chil

[Sugar-devel] Call For Proposals: OLPC SF Community Summit 2012

2012-08-20 Thread rihowa...@gmail.com
OLPC-SF has opened proposal submission for the 2012 Community Summit held in San Francisco, California during the weekend of October 19th-21st. Submission form here: http://olpcsf.org/submit-proposal-2012 Workshops range from topics in Technology to Education to Outreach and are generally in the

Re: [Sugar-devel] Testing Rotate in sugar-jhbuild

2012-08-20 Thread Manuel Quiñones
2012/8/19 Gonzalo Odiard : >> >> I've been thinking for quite some time that we need a new approach to >> the problem of toolbar items following off the end of the toolbar This >> problem will be greatly exacerbated by the more frequent use of screen >> rotate one would expect with more use of tabl

Re: [Sugar-devel] [DESIGN] unfocus search entries in Views and the Journal

2012-08-20 Thread Gary Martin
Hi Simon, On 20 Aug 2012, at 12:56, Simon Schampijer wrote: > Hi, > > I have been thinking a bit about how we can enhance the interaction with the > search entries in the Shell so they will work well in touch as well [1]. > > When you have a touchscreen device focusing an entry will automatic

Re: [Sugar-devel] Testing Rotate in sugar-jhbuild

2012-08-20 Thread Manuel Quiñones
2012/8/19 Walter Bender : > On Thu, Aug 16, 2012 at 5:27 PM, Gary Martin > wrote: >> Hi Walter, >> >> >> On 16 Aug 2012, at 16:53, Walter Bender wrote: >> >> On Thu, Aug 16, 2012 at 11:36 AM, Gonzalo Odiard wrote: >> >> In anybody want test how activities work with the screen rotated in >> >> s

Re: [Sugar-devel] [PATCH sugar] Frame: new behavior for revealing/hiding the Frame with the mouse

2012-08-20 Thread Manuel Quiñones
2012/8/20 Simon Schampijer : > On 08/20/2012 04:44 PM, Manuel Quiñones wrote: >> >> 2012/8/17 Simon Schampijer : >>> >>> On 08/17/2012 12:48 AM, Manuel Quiñones wrote: I've tested an earlier patch for this and now I reviewed it. This is a much more solid interaction with the fr

Re: [Sugar-devel] [PATCH sugar] Port the gstreamer code to pygi

2012-08-20 Thread Manuel Quiñones
2012/8/18 Daniel Narvaez : > Feel free to ignore this, I pushed it on the manuqs-erikos-shell-port > branch. I think the idea everything will be posted for review here as > soon as the port is in good shape. Yes, thanks for pushing it and help with the shell port :) Added your name to http://wiki

Re: [Sugar-devel] [PATCH sugar] Frame: new behavior for revealing/hiding the Frame with the mouse

2012-08-20 Thread Simon Schampijer
On 08/20/2012 04:44 PM, Manuel Quiñones wrote: 2012/8/17 Simon Schampijer : On 08/17/2012 12:48 AM, Manuel Quiñones wrote: I've tested an earlier patch for this and now I reviewed it. This is a much more solid interaction with the frame, and less error prone. All looks good. Please commit.

Re: [Sugar-devel] Gio.VolumeMonitor.get() crash

2012-08-20 Thread Manuel Quiñones
2012/8/18 Daniel Narvaez : > As mentioned on the wiki shell port page, calling > Gio.VolumeMonitor.get() inside sugar was causing a segfault. > > I found this was due to the fact that we was mixing statinc and > dynamic bindings by importing gst. Now I added the gstreamer 1.0 port > of gst-plugins

Re: [Sugar-devel] [PATCH sugar] Frame: new behavior for revealing/hiding the Frame with the mouse

2012-08-20 Thread Manuel Quiñones
2012/8/17 Simon Schampijer > > After discussing with Gary I prepared this patch to change the > interaction with the Frame in the following manner: > > - you can reveal the Frame by going with the cursor in one of the > hot corners > > - you can hide the Frame by going with the cursor in one of

Re: [Sugar-devel] [PATCH sugar] Frame: new behavior for revealing/hiding the Frame with the mouse

2012-08-20 Thread Manuel Quiñones
2012/8/17 Simon Schampijer : > On 08/17/2012 12:48 AM, Manuel Quiñones wrote: >> >> I've tested an earlier patch for this and now I reviewed it. This is >> a much more solid interaction with the frame, and less error prone. >> >> All looks good. Please commit. > > > Thanks Manuel for testing and

Re: [Sugar-devel] conversations about sugar ui design

2012-08-20 Thread Walter Bender
On Sun, Aug 19, 2012 at 11:56 PM, David Brown wrote: > this note embraces several different emails from >Aleksey and > >> What you see on http://network-testing.sugarlabs.org >> is a first rough and implementation for webui, > > you have put quite some effort into presenting your sketches, Alekse

[Sugar-devel] [DESIGN] unfocus search entries in Views and the Journal

2012-08-20 Thread Simon Schampijer
Hi, I have been thinking a bit about how we can enhance the interaction with the search entries in the Shell so they will work well in touch as well [1]. When you have a touchscreen device focusing an entry will automatically bring up the onscreen keyboard (OSK). We are currently doing this i

Re: [Sugar-devel] conversations about sugar ui design

2012-08-20 Thread Aleksey Lim
On Mon, Aug 20, 2012 at 01:56:39PM +1000, David Brown wrote: > this note embraces several different emails from >Aleksey and > > > I've CCed people who are working on current webui implementation (that > > is intended to be piloted in several Peruvian schools). If you are have > > time, you can h

Re: [Sugar-devel] conversations about sugar ui design

2012-08-20 Thread Aleksey Lim
On Mon, Aug 20, 2012 at 01:56:39PM +1000, David Brown wrote: > this note embraces several different emails from >Aleksey and > > activities by using the Sugar tools as individual building blocks,> > > ah if the objective were to produce sugar-literacy, that would > make sense, but if sugar

Re: [Sugar-devel] [DESIGN] Frame Device icon Volumes

2012-08-20 Thread Simon Schampijer
On 08/19/2012 08:04 PM, Gary Martin wrote: On 19 Aug 2012, at 15:54, Simon Schampijer wrote: On 08/19/2012 03:45 PM, Gonzalo Odiard wrote: There are a convention about the position of the primary action? Should be the closest to the button or the first at top of the palette? The palettes re