Re: [Sugar-devel] [PATCH Help v3] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-26 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 22:19, Gonzalo Odiard gonz...@laptop.org wrote: We need a way to keep the code consistent. OK. I got many reasonable answers. I will make a new version of this patch and I will send it as [v4] Thanks all! -- Kaufmann Manuel Blog: http://humitos.wordpress.com/

Re: [Sugar-devel] [PATCH] Add the DescriptionItem if available

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 09:06, godi...@sugarlabs.org wrote: +        except: +            pass + I think you should avoid except: catching all the exception possible there. Instead of this you should use except ImportError: in this case. -- Kaufmann Manuel Blog:

[Sugar-devel] [PATCH Paint] Avoid numpy version 1.6.1

2012-04-26 Thread Manuel Kaufmann
Invert colors function doesn't work well with numpy version 1.6.1, so this PATCH is to avoid using this version and use the string module version (slower) of invert colors instead. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- Area.py | 11 ++- 1 file changed, 10 insertions

Re: [Sugar-devel] [PATCH Paint] Avoid numpy version 1.6.1

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 11:36, Gonzalo Odiard gonz...@laptop.org wrote: Can we confirm this is really a bug in numpy 1.6.1? I don't know how to confirm this but I can say that after the upgrade from 1.5.1 to 1.6.1 the invert colors function does not work anymore. If is a bug, please report it

[Sugar-devel] [PATCH Help v4] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-26 Thread Manuel Kaufmann
/go/Features/GTK3/Porting Signed-off-by: Manuel Kaufmann humi...@gmail.com --- browser.py | 43 --- helpactivity.py | 36 +++- 2 files changed, 15 insertions(+), 64 deletions(-) delete mode 100644 browser.py diff

Re: [Sugar-devel] [PATCH Paint] Add cursor for the picker tool #3496

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 09:41, Manuel Quiñones ma...@laptop.org wrote: Area.py           |   18 +- It works and looks great! The patch passed my review and my test :P -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr:

[Sugar-devel] Example gtk app that invert colors

2012-04-26 Thread Manuel Kaufmann
Hello, I'm working on this ticket * http://bugs.sugarlabs.org/ticket/3509 And I found a problem with numpy 1.6.1. I wrote an example[1] that uses the code from Paint.activity/Area.py and I ran it with numpy 1.6.1 and it worked. So, I'm confused about what's exactly the problem here. Can

Re: [Sugar-devel] Example gtk app that invert colors

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 13:33, Manuel Kaufmann humi...@gmail.com wrote: I wrote an example[1] that uses the code from Paint.activity/Area.py and I ran it with numpy 1.6.1 and it worked. I used a .png file in this example it works. I mean, it tries to invert the colors (doesn't exploit

Re: [Sugar-devel] Example gtk app that invert colors

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 15:28, Gonzalo Odiard gonz...@laptop.org wrote: Is the same effect you see? Yes. It's the same effect. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/

Re: [Sugar-devel] [PATCH Words] Add description item to the toolbar if available - SL# 3525

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 11:14, godi...@sugarlabs.org wrote: +               logging.debug('DescriptionItem button is not available,' + +                    'toolkit version 0.96') You don't need the + sign here. logging.debug('DescriptionItem button is not available,'

[Sugar-devel] Reply-To email header

2012-04-26 Thread Manuel Kaufmann
Hello, I would like to ask why the mailing list doesn't have the header Reply-To: Sugar Devel sugar-devel@lists.sugarlabs.org (or something like that)? With that header we can just click on Reply and send the email to the list instead clicking on Reply-All and send an email to each participant.

Re: [Sugar-devel] Reply-To email header

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 23:20, James Cameron qu...@laptop.org wrote: Because most of us prefer there be no Reply-To.  There are some very good reasons, which I won't go into now.  But you can find a few: Good answer :D -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio:

Re: [Sugar-devel] Wiki login

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 03:19, Bernie Innocenti ber...@sugarlabs.org wrote: Ok, I've finally fixed it. Apologies for taking so much time and thanks for working around the issue by re-enabling user creation in the wiki. Thanks! I can login now! -- Kaufmann Manuel Blog:

[Sugar-devel] [PATCH Help v2] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-25 Thread Manuel Kaufmann
/go/Features/GTK3/Porting Signed-off-by: Manuel Kaufmann humi...@gmail.com --- browser.py | 18 -- helpactivity.py | 29 +++-- 2 files changed, 11 insertions(+), 36 deletions(-) diff --git a/browser.py b/browser.py index 85017cb..650e5c0 100644

Re: [Sugar-devel] [PATCH Help v3] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-25 Thread Manuel Kaufmann
2012/4/25 Manuel Quiñones ma...@laptop.org: One more little thing, we use one import per line, is a style decision, so please do three lines here. Why? What I did is PEP8 syntax: http://www.python.org/dev/peps/pep-0008/#imports -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio:

Re: [Sugar-devel] [PATCH Help v3] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-25 Thread Manuel Kaufmann
2012/4/25 Manuel Quiñones ma...@laptop.org: Both forms pass PEP8, but we use one import per line in Sugar.  Is a matter of style, that's all. Do you have the reasons of this decision? (link to a discussion or something like that) -- Kaufmann Manuel Blog: http://humitos.wordpress.com/

Re: [Sugar-devel] [PATCH Help v3] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 13:41, Rafael Ortiz raf...@activitycentral.com wrote: Many ''imports'' on one line doesn't pass pep8. pep8 script you mean? PEP8 allows to import many things from the same module in the same line, but it doesn't allow to import different modules in the same line. If

Re: [Sugar-devel] [PATCH Help v3] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 14:06, Rafael Ortiz raf...@activitycentral.com wrote: So, pep8 has a bug :) +1 that's what I meant. What version of pep8 do you have? It works for me: [humitos] [/tmp]$ cat script.py from os import path, mkdir print path.join('/home', 'humitos') [humitos] [/tmp]$

Re: [Sugar-devel] datastore.write problem

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 14:18, Walter Bender walter.ben...@gmail.com wrote: But it seems that sometimes the data in the audio file at the time of the call to write is not the same as the data that ends up in the datastore. Is there some way to make sure that the write has completed? Can you

Re: [Sugar-devel] Installing sugar-jhbuild in F17

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 15:47, Gonzalo Odiard gonz...@laptop.org wrote: We can use the packaged version more updated than the requested sources. How did you do this? -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/

Re: [Sugar-devel] [PATCH Help v3] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-25 Thread Manuel Kaufmann
2012/4/25 Manuel Quiñones ma...@laptop.org: That's PEP8.  However, is up to the maintainer to decide.  I was just trying to be helpful and give the same advices that were given to me while hacking activities.  Now I see this discussion is getting pointless :/ Yes, I think this discussion IS

Re: [Sugar-devel] Installing sugar-jhbuild in F17

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 22:13, Gonzalo Odiard gonz...@laptop.org wrote: On Wed, Apr 25, 2012 at 15:47, Gonzalo Odiard gonz...@laptop.org wrote: We can use the packaged version more updated than the requested sources. How did you do this? Just skip compiling the package. So, there is a

[Sugar-devel] Trac ticket resolution

2012-04-25 Thread Manuel Kaufmann
Hello, I was taking a look at this ticket: http://bugs.sugarlabs.org/ticket/3491 and I realized that works for me is missing in the resolve as options. I think it should be added. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr:

Re: [Sugar-devel] Installing sugar-jhbuild in F17

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 22:25, Gonzalo Odiard gonz...@laptop.org wrote: No, the package is already packaged and used in the distribution, in other conditions is needed compile it, not in F17. Oh, I'm not sure to understand you. I guess there is a package on Fedora 17 called something like

[Sugar-devel] GTK3 in Debian Testing

2012-04-24 Thread Manuel Kaufmann
Hello, I'm writing you to ask about GKT3 in Debian Testing. The thing is that I was trying to port Help Activity to Gtk3 and WebKit and I realized that the icons on the top toolbar are not shown. In fact, I made a PATCH (that ports the activity) and manuq told me it works properly in Fedora 16.

Re: [Sugar-devel] GTK3 in Debian Testing

2012-04-24 Thread Manuel Kaufmann
On Tue, Apr 24, 2012 at 17:45, Manuel Kaufmann humi...@gmail.com wrote: Do you have a clue about this? This was my workaround to this problem: 1. /etc/apt/sources.list deb ftp://ftp.us.debian.org/debian/ unstable main contrib non-free deb-src ftp://ftp.us.debian.org/debian/ unstable

[Sugar-devel] [PATCH Help] Migrated to Gtk3 and WebKit.WebView SL #3466

2012-04-24 Thread Manuel Kaufmann
- All the code was migrated to Gtk3 following this guide[1] - Toolbar View's icon was changed from camera to the right one: toolbar-view [1] http://wiki.sugarlabs.org/go/Features/GTK3/Porting Signed-off-by: Manuel Kaufmann humi...@gmail.com --- browser.py | 45

[Sugar-devel] Wiki login

2012-04-23 Thread Manuel Kaufmann
Hello, I'm trying to login to the Wiki[1] via OpenID but I'm getting: Verification error An error occured during verification of the OpenID URL. Return to Welcome to the Sugar Labs wiki. I've created my account using Google ID some weeks ago and now I'm using Google to login. Is there

Re: [Sugar-devel] Wiki login

2012-04-23 Thread Manuel Kaufmann
On Mon, Apr 23, 2012 at 08:29, Gonzalo Odiard gonz...@laptop.org wrote: Try to create a user in the wiki. The Login and the Create link is the same one -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/

Re: [Sugar-devel] Wiki login

2012-04-23 Thread Manuel Kaufmann
On Mon, Apr 23, 2012 at 11:18, Frederick Grose fgr...@gmail.com wrote: New wiki accounts should be possible now. (Alternate authentication is preferred over wiki accounts as they lead to wiki spam.) I can't log in yet... :( Humitos is my user. -- Kaufmann Manuel Blog:

Re: [Sugar-devel] Wiki login

2012-04-23 Thread Manuel Kaufmann
On Mon, Apr 23, 2012 at 13:37, Frederick Grose fgr...@gmail.com wrote: So until we can resolve the OpenID issue, you may create a new account at http://wiki.sugarlabs.org/index.php?title=Special:UserLogintype=signup Sorry, but I can't. I get this error after filling that form: Login error

Re: [Sugar-devel] [PATCH Maze] Collaboration: allow multiple users in the same XO

2012-04-20 Thread Manuel Kaufmann
On Fri, Apr 20, 2012 at 13:31, Rafael Ortiz raf...@activitycentral.com wrote: a minor glitch in this case is that the path ( o o o ) is not being draw on the other laptop, i.e I can see the path being draw on my XO but not in the other player XO I think it's done in that way intentionally,

Re: [Sugar-devel] Python name mangling in callbacks

2012-04-20 Thread Manuel Kaufmann
2012/4/19 Manuel Quiñones ma...@laptop.org: I just want to know if is there a reason to use name mangling in the callbacks, that bug was there for a lot of time because no one noticed the mangling. ... and at least for me was quite difficult to understand. I opened a interesting discussion in

[Sugar-devel] Gamepad keys in jhbuild

2012-04-17 Thread Manuel Kaufmann
Hello, I'd like to emulate the Gamepad keys in sugar-jhbuild but I didn't find the way yet. I'm reading those keys are the same than Numpad keys, witht the same code (at least in olpcgames module)[1] In fact, if I run xev from the Terminal Activity I can see the codes: KeyRelease event, serial

Re: [Sugar-devel] Gamepad keys in jhbuild

2012-04-17 Thread Manuel Kaufmann
On Tue, Apr 17, 2012 at 11:42, Manuel Kaufmann humi...@gmail.com wrote: In fact, if I run xev from the Terminal Activity I can see the codes: I was chatting with silbe on IRC and we found that the problem is Xephyr doesn't change your X server configuration, so if you started Xephyr with Numlock

Re: [Sugar-devel] [PATCH sugar] Create a default unencrypted keyring, OLPC #10290

2012-04-17 Thread Manuel Kaufmann
On Mon, Apr 16, 2012 at 07:33, Simon Schampijer si...@schampijer.de wrote: This patch does create an ununcrypted default keyring if there is not one available already. This will stop prompts for unlocking the keyring after logging into Sugar. On Debian Testing I used these commands to stop

[Sugar-devel] [PATCH Maze] Collaboration: allow multiple users in the same XO

2012-04-16 Thread Manuel Kaufmann
this field is None. This new workaround allow to distinguish between many users (up to 3) for each XO laptop -using the gamepad keys. [1] http://dev.laptop.org/ticket/10750 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- game.py | 27 --- player.py | 24

Re: [Sugar-devel] [PATCH Maze] Collaboration: allow multiple users in the same XO

2012-04-16 Thread Manuel Kaufmann
On Tue, Apr 17, 2012 at 00:24, Manuel Kaufmann humi...@gmail.com wrote: This new workaround allow to distinguish between many users (up to 3) for each XO laptop -using the gamepad keys. I just tested it with only one XO and a Sugar JHBuild instance because I have got just one XO. Please, if you

Re: [Sugar-devel] Compiling sugar with jhbuild in Fedora 17

2012-04-15 Thread Manuel Kaufmann
On Sun, Apr 15, 2012 at 08:25, Sascha Silbe si...@activitycentral.com wrote: What package exactly produced this error? I didn't find the string 'telepathy-glib' nor anything else that looked like it could throw the above error in configure.ac of sugar, sugar-toolkit, sugar-presence-service,

Re: [Sugar-devel] Compiling sugar with jhbuild in Fedora 17

2012-04-15 Thread Manuel Kaufmann
On Sun, Apr 15, 2012 at 18:32, Peter Robinson pbrobin...@gmail.com wrote: You need to install the devel package. yum install telepathy-glib-devel should fix that for you. O.K. So, this is a missing packge in the depscheck command and should be added. -- Kaufmann Manuel Blog:

Re: [Sugar-devel] Compiling sugar with jhbuild in Fedora 17

2012-04-15 Thread Manuel Kaufmann
On Sun, Apr 15, 2012 at 18:29, Manuel Kaufmann humi...@gmail.com wrote: I install F16 yesterday to try to compile sugar again because I didn't find the solution with F17. In fact, after an upgrade my video card issue dissapeared and it (F16) run faster. Well, I this process (compile sugar

Re: [Sugar-devel] Compiling sugar with jhbuild in Fedora 17

2012-04-15 Thread Manuel Kaufmann
On Sun, Apr 15, 2012 at 20:44, Manuel Kaufmann humi...@gmail.com wrote: This time, after a succeful compilation in F16 and run sugar-emulator, I'm getting this error: Same error than here [1] but on different distro: * http://lists.sugarlabs.org/archive/sugar-devel/2012-March/036341.html

[Sugar-devel] jhbuild in Ubuntu

2012-04-14 Thread Manuel Kaufmann
Hello, I've just installed Ubuntu 11.10 in my netbook and I tried to compile Sugar on it. I'm getting this error: humitos@eulogia:~/sugar-jhbuild$ ./sugar-jhbuild depscheck Warning: unknown distro version, automatic fallback to unstable. ERROR: Dependencies information is missing (unknown

Re: [Sugar-devel] jhbuild in Ubuntu

2012-04-14 Thread Manuel Kaufmann
On Sat, Apr 14, 2012 at 10:02, Sascha Silbe si...@activitycentral.com wrote: While Ubuntu is based on Debian, they've added problems of their own that make running Sugar on Ubuntu a PITA (see e.g. [2]) and have shown no interest of fixing them for several _years_ (which equates to a large

Re: [Sugar-devel] Maze sharing error

2012-04-14 Thread Manuel Kaufmann
On Tue, Apr 3, 2012 at 23:30, Rafael Ortiz raf...@activitycentral.com wrote: I've not encounter this before, ideas on why this is happening is  welcomed. Can you create a new ticket in Trac with the steps to reproduce it and the information listed here?. I've got only one XO, but if you want we

[Sugar-devel] Compiling sugar with jhbuild in Fedora 17

2012-04-14 Thread Manuel Kaufmann
Hello, I installed Fedora 17 in my Netbook, I ran depscheck and I installed all the depencies to compile sugar but I'm getting this error: configure: error: Package requirements (telepathy-glib = 0.11.9) were not met: No package 'telepathy-glib' found Consider adjusting the PKG_CONFIG_PATH

Re: [Sugar-devel] Compiling sugar with jhbuild in Fedora 17

2012-04-14 Thread Manuel Kaufmann
On Sat, Apr 14, 2012 at 20:43, Manuel Kaufmann humi...@gmail.com wrote: I installed Fedora 17 in my Netbook What's about Fedora 16? jhbuild is working on it without problems? I installed it before on my netbook but I had an issue with the Video Card, so I decided to try F17 and it works better

Re: [Sugar-devel] [PATCH Log v2] Don't update search results every keystroke

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 08:27, Gary Martin garycmar...@googlemail.com wrote: I am not sure about changing the color in the entry. Is a nice feature, but is not used in any other place (in Sugar). Yea, -1 for colour change, we don't use that any where else in Sugar, Well, my patch changes the

[Sugar-devel] Write activity crashes

2012-04-13 Thread Manuel Kaufmann
Hello list, I was taking a look at a Writer's ticket and I found that I can start Write Activity. This is the traceback when I import abiword: [humitos] [~]$ python Python 2.7.2+ (default, Dec 1 2011, 01:55:02) [GCC 4.6.2] on linux2 Type help, copyright, credits or license for more information.

Re: [Sugar-devel] Write activity crashes

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 12:25, Peter Robinson pbrobin...@gmail.com wrote: What version of Write and Sugar are you running, on what OS / Release? I'm running the version of Git repository in sugar-jhbuild in Debian Testing. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio:

[Sugar-devel] Running an activity through ssh

2012-04-13 Thread Manuel Kaufmann
Hello, I'm trying to run an Activity over ssh -C -X to my XO. Once I'm logged in, I'm running: $ sugar-launch org.laptop.AbiWordActivity But I'm getting this error: Traceback (most recent call last): File /usr/bin/sugar-launch, line 38, in module proxy =

Re: [Sugar-devel] Running an activity through ssh

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 14:28, Bert Freudenberg b...@freudenbergs.de wrote: About the only way to run Sugar remotely is via VNC. But then, why bother? VirtualBox works fine. What is the actual problem you want to solve? I want to work on an application that I can not run via jhbuild in my

Re: [Sugar-devel] Running an activity through ssh

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 14:50, Bert Freudenberg b...@freudenbergs.de wrote: Try this:        http://wiki.laptop.org/go/Remote_display And when you get it working, maybe document it on the Sugar Labs wiki :) I can't connect to the networkin from the console. I don't know why. In fact the ifup

Re: [Sugar-devel] Running an activity through ssh

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 15:11, Manuel Kaufmann humi...@gmail.com wrote: I can't connect to the networkin from the console. I don't know why. In fact the ifup eth0 says: /sbin/ifup: configuration for eth0 not found Usage: ifup device name I could! I had to disable NetworkManager: /etc

Re: [Sugar-devel] [PATCH Chat v4] Scroll the chat log

2012-04-12 Thread Manuel Kaufmann
On Thu, Apr 12, 2012 at 02:38, Aleksey Lim alsr...@sugarlabs.org wrote: I only added #2782 to commit title to make it possible to see ticket number from short log. And, replaced Good! I missed it. Thanks!    event.state == gtk.gdk.CONTROL_MASK by    event.state gtk.gdk.CONTROL_MASK

Re: [Sugar-devel] [PATCH Chat v4] Scroll the chat log

2012-04-12 Thread Manuel Kaufmann
On Thu, Apr 12, 2012 at 10:09, James Cameron qu...@laptop.org wrote: CONTROL_MASK isn't the only bit that might be set in event.state, there may be other bits set as well.  So if you want to check for CONTROL_MASK with other bits set at the same time, you must AND () it out, instead of check

[Sugar-devel] [PATCH Log] Don't update search results every keystroke

2012-04-12 Thread Manuel Kaufmann
and if there are no results for that query the Entry box is highlighted with red color. This commit solves: #2734 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- logviewer.py | 32 +++- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/logviewer.py b/logviewer.py index

[Sugar-devel] [PATCH Log v2] Don't update search results every keystroke

2012-04-12 Thread Manuel Kaufmann
and if there are results for that query the Entry box is highlighted with yellow color and if there are no results with red color.. This commit solves: #2734 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- logviewer.py | 43 ++- 1 file changed, 34 insertions(+), 9

Re: [Sugar-devel] [PATCH Log v2] Don't update search results every keystroke

2012-04-12 Thread Manuel Kaufmann
2012/4/12 Gary Martin garycmar...@googlemail.com: Is it possible to use a delay in typing rather than an explicit return key stroke? We use a delay in typing for the existing search in the Sugar shell home favourite view so there should be code to go reuse and the behaviour would be

Re: [Sugar-devel] [PATCH Log v2] Don't update search results every keystroke

2012-04-12 Thread Manuel Kaufmann
On Thu, Apr 12, 2012 at 19:55, Manuel Kaufmann humi...@gmail.com wrote: Mmm... I'm not sure about this. If the user press just the a and the delay time is expired it will consume too much CPU. Besides, what is a delay time accordingly for children? I mean, maybe for a six-year-old kid 2 seconds

Re: [Sugar-devel] [PATCH Chat v2] Scroll the chat log

2012-04-11 Thread Manuel Kaufmann
On Wed, Apr 11, 2012 at 03:27, Aleksey Lim alsr...@sugarlabs.org wrote: Also, it might be predictable bu users that posting new messages will scroll history down. Mmm... here I don't agree with you. I think that is quite frustrating to look up for something in the history and get scrolled down

[Sugar-devel] [PATCH Chat v3] Scroll the chat log

2012-04-11 Thread Manuel Kaufmann
Check if the user pressed (Control +) Page Up, (Control +) Page Down, Control + Home or Control + End and scroll the window according the pressed key. This commit solves http://bugs.sugarlabs.org/ticket/2782 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- activity.py | 22

Re: [Sugar-devel] Running Maze on the XO

2012-04-11 Thread Manuel Kaufmann
2012/4/11 Manuel Quiñones ma...@laptop.org: Does this still happen in latest git? Yes :( Did you try it? -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/ ___ Sugar-devel

[Sugar-devel] [PATCH Maze] Comment bugfix and import missing

2012-04-10 Thread Manuel Kaufmann
- A triple quoted comment was accidentally removed, so I added it again. - Added 'gtk' module because it was missing. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- activity.py |1 + olpcgames/activity.py |2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff

[Sugar-devel] Running Maze on the XO

2012-04-10 Thread Manuel Kaufmann
Hello guys, I'm trying to run Maze on the XO (build 883) but I get this error all the time: ImportError: No module named olpcgames I'm not sure why, because when I unzip the Maze-16.xo that I generated with python setup.py dist_xo I can see the olpcgames directory there. Is there something

[Sugar-devel] [PATCH Chat] Scroll the chat log

2012-04-10 Thread Manuel Kaufmann
Check if the user pressed Page Up, Page Down, Home or End and scroll the window according the pressed key. Signed-off-by: Manuel Kaufmann humi...@gmail.com --- activity.py | 20 1 file changed, 20 insertions(+) diff --git a/activity.py b/activity.py index 297d57b..66f32f2

[Sugar-devel] [PATCH Chat v2] Scroll the chat log

2012-04-10 Thread Manuel Kaufmann
Check if the user pressed Page Up, Page Down, Home or End and scroll the window according the pressed key. This commit solves http://bugs.sugarlabs.org/ticket/2782 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- activity.py | 20 1 file changed, 20 insertions

Re: [Sugar-devel] [PATCH Chat v2] Scroll the chat log

2012-04-10 Thread Manuel Kaufmann
On Tue, Apr 10, 2012 at 22:46, Manuel Kaufmann humi...@gmail.com wrote: This commit solves http://bugs.sugarlabs.org/ticket/2782 Sorry for the first email. I was forgotten to add this line in the commit message. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http

Re: [Sugar-devel] [PATCH Maze] Buttons to generate a harder or an easier level

2012-03-29 Thread Manuel Kaufmann
2012/3/28 Manuel Quiñones ma...@laptop.org: Hey!  Would be great if you can add the icons that I put in the ticket :) I'm going to do this now. I'll send the patch in a while. Thanks for the icons, they are pretty cool. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio:

[Sugar-devel] [PATCH Maze v2] Buttons to generate a harder or an easier level

2012-03-29 Thread Manuel Kaufmann
Added two buttons in the toolbar to generate a new level (harder or easier). These butons do the same work than '+' and '-' keys respectively. Icons by Manuel Quiñones (manuq). This commit solves ticket: #3376 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- activity.py | 36

Re: [Sugar-devel] [PATCH Maze v2] Buttons to generate a harder or an easier level

2012-03-29 Thread Manuel Kaufmann
On Thu, Mar 29, 2012 at 14:11, Rafael Ortiz raf...@activitycentral.com wrote: Will be in next version (16). Cool! I'm SO happy! -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/

[Sugar-devel] [PATCH Maze] Buttons to generate a harder or an easier level

2012-03-28 Thread Manuel Kaufmann
Addedi two buttons in the toolbar to generate a new level (harder or easier). These butons do the same work than '+' and '-' keys respectively. This commit solves ticket: #3376 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- activity.py | 36 +++- game.py

[Sugar-devel] [PATCH Maze] Buttons to generate a harder or an easier level

2012-03-28 Thread Manuel Kaufmann
Added two buttons in the toolbar to generate a new level (harder or easier). These butons do the same work than '+' and '-' keys respectively. This commit solves ticket: #3376 Signed-off-by: Manuel Kaufmann humi...@gmail.com --- activity.py | 36 +++- game.py

Re: [Sugar-devel] [PATCH Maze] Buttons to generate a harder or an easier level

2012-03-28 Thread Manuel Kaufmann
On Wed, Mar 28, 2012 at 20:35, Manuel Kaufmann humi...@gmail.com wrote: diff --git a/activity.py b/activity.py index f21efdd..d5ea2eb 100755 --- a/activity.py +++ b/activity.py Here is the new PATCH with the index updated. So, you can apply it without any problem. Thanks! -- Kaufmann

Re: [Sugar-devel] [PATCH Maze 4/4] Save and restore state of the game

2012-03-27 Thread Manuel Kaufmann
On Mon, Mar 26, 2012 at 14:59, Sascha Silbe si...@activitycentral.com wrote: The first argument to the log.level family of functions is a format string. If you wish to log the value of some variable, you should use %s or %r in the format string and pass the variable as second+ parameter:      

Re: [Sugar-devel] [PATCH Maze v2] Save and restore state of the game

2012-03-27 Thread Manuel Kaufmann
On Tue, Mar 27, 2012 at 10:15, Manuel Kaufmann humi...@gmail.com wrote: Ability to 'save' (when the user closes the Activity) and 'restore' (when the user launch it from the Journal or the Home without holding Alt) the state of the game. Here, I sent the a new patch that contains Sascha's

[Sugar-devel] Wiki user

2012-03-27 Thread Manuel Kaufmann
Hello, I've just created a new user in http://wiki.sugarlabs.org and I connected it with OpenID (Google Account). When it asked me, I clicked on User the Full Name as Username (or something like that) by mistake, so Manuel_Kaufmann is my username now. I'd like to remove that user (but I didn't

Re: [Sugar-devel] Wiki user

2012-03-27 Thread Manuel Kaufmann
On Tue, Mar 27, 2012 at 17:21, Chris Leonard cjlhomeaddr...@gmail.com wrote: Except for the fact that wikipages start with capitals, your request has been addressed. THANKS! -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr:

Re: [Sugar-devel] [PATCH 1/2] Avoid Escape key disable fullscreen mode

2012-03-26 Thread Manuel Kaufmann
On Mon, Mar 26, 2012 at 12:34, Rafael Ortiz raf...@activitycentral.com wrote: Thanks applied as: Cool! I'm very happy! :) -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/

Re: [Sugar-devel] [PATCH Maze 4/4] Save and restore state of the game

2012-03-26 Thread Manuel Kaufmann
On Mon, Mar 26, 2012 at 14:59, Sascha Silbe si...@activitycentral.com wrote: First of all, thanks for the patch! Your help is very welcome. Disclaimer: I'm neither the maintainer of Maze nor a regular contributor to it. My opinions and advice may differ from what you need to do to get your

[Sugar-devel] Error on run sugar-emulator

2012-03-26 Thread Manuel Kaufmann
Hello, I'm trying to run sugar-emulator but I'm getting an error. The problem appeared today's morning after running: [humitos] [/srv/sugar-jhbuild]$ ./sugar-jhbuild update [...] [humitos] [/srv/sugar-jhbuild]$ ./sugar-jhbuild build [...] Every finished properly, but when I run ./sugar-jhbuild

Re: [Sugar-devel] Error on run sugar-emulator

2012-03-26 Thread Manuel Kaufmann
On Mon, Mar 26, 2012 at 19:12, Sascha Silbe si...@activitycentral.com wrote: Looks like you ran into Debian#648724 [1] again. Do you still have the local packages with the fix or should I publish mine (amd64, armel, i386)? I thought that, so I re-compiled the package as you told me some days

Re: [Sugar-devel] Error on run sugar-emulator

2012-03-26 Thread Manuel Kaufmann
On Mon, Mar 26, 2012 at 20:18, Manuel Kaufmann humi...@gmail.com wrote: I thought that, so I re-compiled the package as you told me some days ago. But the problem is still there. Sorry, I was confused. In fact, I tried to re-compile this package but I got this error: Take a look at this part

Re: [Sugar-devel] Changing the prompt when inside a Sugar shell

2012-03-26 Thread Manuel Kaufmann
://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com.ar/ From a0a60a810d897f9b9d2e06eb043a09eea72e5e01 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann humi...@gmail.com Date: Mon, 26 Mar 2012 23:23:57 -0300 Subject: [PATCH jhbuild 2/2] PS1 variable for shell command Identifier (sugar)$ added

Re: [Sugar-devel] Changing the prompt when inside a Sugar shell

2012-03-25 Thread Manuel Kaufmann
2012/3/25 Manuel Quiñones ma...@laptop.org: Is a bit confusing for me to know which tabs in my GNOME Terminal are inside Sugar shells.  I often end calling env and checking for the current environment variables. Yes, I agree with you. We should change the value of the PS1 variable as

Re: [Sugar-devel] [PATCH Maze 4/4] Save and restore state of the game

2012-03-21 Thread Manuel Kaufmann
On Wed, Mar 21, 2012 at 07:37, Gonzalo Odiard gonz...@laptop.org wrote: Question: I don't know pygame, why can't be used the standard read_file/write_file methods in the activity? Because of the way that PyGame works. The class that handle the game don't inheritance from Activity, so

Re: [Sugar-devel] [PATCH Maze 4/4] Save and restore state of the game

2012-03-21 Thread Manuel Kaufmann
On Wed, Mar 21, 2012 at 07:37, Gonzalo Odiard gonz...@laptop.org wrote: Rafael is the maintainer, but may be for clarity is better do two patches, one upgrading olpcgames and other doing the changes to save/restore the state. I can do you it if you want. Yesterday I chat with Rafael on IRC and

[Sugar-devel] Moon activity work

2012-03-21 Thread Manuel Kaufmann
Hello Gary, I'm going to start working on Moon Activity to fix this ticket: * http://bugs.sugarlabs.org/ticket/2910 There are some pep8 error that I'm fixing too, but I'd like to know if there is a patch already for this because of this comment on the ticket: [already have this roughly coded,

Re: [Sugar-devel] Moon activity work

2012-03-21 Thread Manuel Kaufmann
On Wed, Mar 21, 2012 at 10:13, Gonzalo Odiard gonz...@laptop.org wrote: may be you can help porting moon activity to cairo, Is this a pending issue? Could you give me some instructions, manuals, something to read if you have...? I mean, avoid me to crash to the wall :D -- Kaufmann Manuel

Re: [Sugar-devel] Moon activity work

2012-03-21 Thread Manuel Kaufmann
On Wed, Mar 21, 2012 at 10:41, Gonzalo Odiard gonz...@laptop.org wrote: If you want, Jukebox have a few pending issues, I can help you in this case ;) Of course! Let me know. I'm on the IRC if you want to chat. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Portfolio:

Re: [Sugar-devel] Error compiling with jhbuild

2012-03-20 Thread Manuel Kaufmann
2012/3/20 Manuel Quiñones ma...@laptop.org: Great!  What about adding this info to the sugarlabs wiki? It's here: http://wiki.sugarlabs.org/go/Community/Distributions/Debian -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Portfolio: http://fotos.mkaufmann.com.ar/ PyAr:

[Sugar-devel] [PATCH 1/2] Avoid Escape key disable fullscreen mode

2012-03-20 Thread Manuel Kaufmann
This commit disconnect the __key_press_cb callback used in sugar.graphics.window.Window to handle the Key Press event and connect a new __key_press_cb callback (inside TerminalActivity) to manage the Escape key properly and send this key to the vte module (Virtual Terminal) This solves ticket:

[Sugar-devel] [PATCH 2/2] pep8 syntax fixed

2012-03-20 Thread Manuel Kaufmann
Removed trailing spaces and added one more space before the inline comment --- terminal.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/terminal.py b/terminal.py index aed612a..6de7500 100644 --- a/terminal.py +++ b/terminal.py @@ -166,7 +166,7 @@ class

Re: [Sugar-devel] xephyr error on Fedora 16

2012-03-20 Thread Manuel Kaufmann
On Mon, Mar 19, 2012 at 19:34, Sascha Silbe si...@activitycentral.com wrote: Xephyr :100 -ac -title 'Sugar in a window' -screen 800x600 -noreset I expect it to fail, but once you tried that you can use the Fedora support channels to get help; there's nothing Sugar-specific about it then. As

[Sugar-devel] [PATCH] pep8 syntax fixed

2012-03-20 Thread Manuel Kaufmann
- Removed a lot of trailing spaces - Add spaces to both sides of operators --- maze.py | 59 +++ 1 files changed, 31 insertions(+), 28 deletions(-) diff --git a/maze.py b/maze.py index 8fec99c..f8737cf 100644 --- a/maze.py +++ b/maze.py

[Sugar-devel] [PATCH 2/2] some pep8 errors fixed

2012-03-20 Thread Manuel Kaufmann
- removed a lot of trailing slashes - added spaces between operators - splited lines with more than 80 chars --- game.py | 315 --- 1 files changed, 182 insertions(+), 133 deletions(-) diff --git a/game.py b/game.py index

Re: [Sugar-devel] xephyr error on Fedora 16

2012-03-19 Thread Manuel Kaufmann
On Mon, Mar 19, 2012 at 10:10, Simon Schampijer si...@schampijer.de wrote: Maybe you are seeing https://bugzilla.redhat.com/process_bug.cgi, you can get the toolkit http://koji.fedoraproject.org/koji/buildinfo?buildID=308045 and try if that fixes your issue. Today I ran yum update, after this

Re: [Sugar-devel] xephyr error on Fedora 16

2012-03-19 Thread Manuel Kaufmann
On Mon, Mar 19, 2012 at 11:07, Gonzalo Odiard gonz...@laptop.org wrote: try updating your sugar-toolkit: Sorry, I forgot to mention. I ran ./sugar-jhbuild update before running ./sugar-jhbuild build. cd source/sugar-toolkit/ git pull make install After running these commands, I get the

Re: [Sugar-devel] xephyr error on Fedora 16

2012-03-19 Thread Manuel Kaufmann
On Mon, Mar 19, 2012 at 11:54, Gonzalo Odiard gonz...@laptop.org wrote: 'make install' should not try to install in  `/usr/local/lib/python2.7': did you './configure' ? The target should be sugar-jhbuild/install/ Yes, I tried both. Without running ./configure and running ./configure --

Re: [Sugar-devel] xephyr error on Fedora 16

2012-03-19 Thread Manuel Kaufmann
On Mon, Mar 19, 2012 at 12:00, Manuel Kaufmann humi...@gmail.com wrote: Yes, I tried both. Without running ./configure and running ./configure OK. I ran: ./configure --prefix=/home/humitos/sugar-jhbuild/install make install It worked! I ran ./sugar-jhbuild run sugar-emulator and I got

<    1   2   3   4   5   >