[Sugar-devel] Help with translations on Clock

2012-05-04 Thread Manuel Kaufmann
Hello guys, I need a bit of help with the translation process. I'm trying to fix this bug[1] but I don't know how is the workflow to do this and I don't want to make a mistake. I've already commented[2] the ticket explaining what is my problem and how I fixed it. [1] http://bugs.sugarlabs.org/tic

[Sugar-devel] [PATCH Browse v2] Use user's LANG for search results SL #3445

2012-05-04 Thread Manuel Kaufmann
When the user types a string that is not like an url, we use Google to search that string with the results in the language defined by LANG environment variable. Signed-off-by: Manuel Kaufmann --- browser.py | 12 +--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a

Re: [Sugar-devel] [PATCH Browse v2] Display 'Loading...' message in the tab and url titles while the page is loading #3550

2012-05-04 Thread Manuel Kaufmann
On Fri, May 4, 2012 at 9:28 AM, Manuel Kaufmann wrote: > +    def __load_status_changed_cb(self, widget, param): > +        status = widget.get_load_status() > +        if WebKit.LoadStatus.PROVISIONAL <= status \ > +                < WebKit.LoadStatus.FINISHED: &

Re: [Sugar-devel] [PATCH Browse v2] Display 'Loading...' message in the tab title while the page is loading #3550

2012-05-04 Thread Manuel Kaufmann
On Fri, May 4, 2012 at 9:27 AM, Manuel Kaufmann wrote: > First of all, ignore this email. Sorry about that. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com

[Sugar-devel] [PATCH Browse v2] Display 'Loading...' message in the tab and url titles while the page is loading #3550

2012-05-04 Thread Manuel Kaufmann
title put in the tab and url label. Now, we check for the "load-status" property and set the title according to the load progress: if WebKit is loading the page we put "Loading..." or the page's title otherwise with the exception of "about:blank" page th

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

2012-05-04 Thread Manuel Kaufmann
On Fri, May 4, 2012 at 8:53 AM, Anish Mangal wrote: > I used preupgrade to move to f17 yesterday night, and sugar-jhbuild > worked out of the box after a recompile. (It was working on f16 as well). Thanks for reporting. This is good to know! -- Kaufmann Manuel Blog: http://humitos.wordpress.com

[Sugar-devel] [PATCH Browse v2] Display 'Loading...' message in the tab title while the page is loading #3550

2012-05-03 Thread Manuel Kaufmann
title put in the tab label. Now, we check for the "load-status" property and set the title according to the load progress: if WebKit is loading the page we put "Loading..." or the page's title otherwise with the exception of "about:blank" page that has no title,

Re: [Sugar-devel] [PATCH v2 Browse] Fix for the MIME type handling of a request SL #3512

2012-05-03 Thread Manuel Kaufmann
On Wed, May 2, 2012 at 1:07 PM, Manuel Quiñones wrote: >             self.emit('open-pdf', request.get_uri()) > -            return False Reading the WebKit documentation [1] I found that we HAVE TO return True if we are handling the MIME type ourselves. In fact, we have to open a new tab (as we

[Sugar-devel] [PATCH Browse] Use user's LANG for search results SL #3445

2012-05-03 Thread Manuel Kaufmann
When the user types a string that is not like an url, we use Google to search that string with the results in the language defined by LANG environment variable. Signed-off-by: Manuel Kaufmann --- browser.py | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a

Re: [Sugar-devel] [PATCH Browse 1/2] .po file updated

2012-05-03 Thread Manuel Kaufmann
On Thu, May 3, 2012 at 9:41 PM, Gonzalo Odiard wrote: > Sorry for not tell you before. OK. First of all, ignore these (two) patches because they are wrong and make not sense. After talking with you we found a better solution for this. We will make this to work automatically using the LANG envir

[Sugar-devel] [PATCH Browse 2/2] Comment on getting localized Google search to translators SL #3445

2012-05-03 Thread Manuel Kaufmann
Add a new comment in the .po file explaining how to translate Google search string. Signed-off-by: Manuel Kaufmann --- po/Browse.pot |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/po/Browse.pot b/po/Browse.pot index c12abcd..c63aa81 100644 --- a/po/Browse.pot +++ b

[Sugar-devel] [PATCH Browse 1/2] .po file updated

2012-05-03 Thread Manuel Kaufmann
New version of po/Browse.pot created by running "python setup.py genpot" Signed-off-by: Manuel Kaufmann --- po/Browse.pot | 137 +++- 1 files changed, 76 insertions(+), 61 deletions(-) diff --git a/po/Browse.pot b/po/Browse.pot ind

Re: [Sugar-devel] [PATCH Browse] Display 'Loading...' message in the tab title while the page is loading #3550

2012-05-03 Thread Manuel Kaufmann
On Thu, May 3, 2012 at 12:22 PM, Chris Leonard wrote: > I seem to recall figuring out (in an old Broswe ) that if you are > loading a PDF that the "Loading..." line actually comes from evince. > Will this change that? No. This PATCH is not related with that. You are talking about the "Loading..."

[Sugar-devel] [PATCH Browse] Display 'Loading...' message in the tab title while the page is loading #3550

2012-05-03 Thread Manuel Kaufmann
title put in the tab label. Now, we check for the "load-status" property and set the title according to the load progress: if WebKit is loading the page we put "Loading..." or the page's title otherwise with the exception of "about:blank" page that has no title,

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

2012-05-03 Thread Manuel Kaufmann
On Thu, May 3, 2012 at 10:59 AM, Gonzalo Odiard wrote: > My personal opinion is try to mimic the behaviour of search in the home. I like this. So, if there are no objections I will do this :) -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr:

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

2012-05-03 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 11:04 AM, Manuel Kaufmann wrote: > With these said, I will do what you say in the new patch :) I'd like to finish this patch. Did we decide what to do here? -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ Py

Re: [Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

2012-05-02 Thread Manuel Kaufmann
On Wed, May 2, 2012 at 1:24 PM, Manuel Quiñones wrote: > Works for me in my dev machine and in the XO.  Are we safe to assume > that the text in GtkEntry is utf-8 ? I don't know. I'm really new on this :) , but it depends on the codification that we are using with sugar. I guess there is a defaul

[Sugar-devel] [PATCH Browse] Use UNICODE string to search into places SL #2830

2012-05-02 Thread Manuel Kaufmann
Decode (using 'utf-8') the string inserted by the user in the URL address bar to search with SQLite into places' database. Signed-off-by: Manuel Kaufmann --- webtoolbar.py |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webtoolbar.py b/webtoolbar.p

[Sugar-devel] [PATCH Paint] Keep flood fill cursor after clicks SL #3491

2012-04-30 Thread Manuel Kaufmann
When the user selects the Paint Bucket tool and clicks on the canvas, the bucket cursor is kept until the user selects another tool. Signed-off-by: Manuel Kaufmann --- Area.py |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Area.py b/Area.py index aae3d78

[Sugar-devel] [PATCH Paint] Don't cut the image when rotate SL #3457

2012-04-30 Thread Manuel Kaufmann
When the user rotates the image the Y coordinate have to be 0 so it image is visible from the top of it. Signed-off-by: Manuel Kaufmann --- OficinaActivity.py |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OficinaActivity.py b/OficinaActivity.py index a74b7c1..1745d0a

Re: [Sugar-devel] [PATCH Browse] Zoom full content, not just text SL #3541

2012-04-30 Thread Manuel Kaufmann
On Sun, Apr 29, 2012 at 12:36, Manuel Quiñones wrote: > As previous Browse.  Is also the default in common browsers. Tested on Sugar JHBuild in Fedora 16 and Browse git version. It worked :) -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: ht

Re: [Sugar-devel] [PATCH Browse v3] Revert zoom with the original value SL #3540

2012-04-30 Thread Manuel Kaufmann
On Mon, Apr 30, 2012 at 08:28, Simon Schampijer wrote: > As this is not a bug fix nor a regression fix, adds UI and string, it can > not go in now. I marked the ticket 0.98, please attach the latest patch to > the ticket so it does not get lost. OK. I'll do it > About the UI, I presume you did s

Re: [Sugar-devel] [PATCH Browse] Revert zoom with the original value

2012-04-29 Thread Manuel Kaufmann
On Sun, Apr 29, 2012 at 12:45, Manuel Quiñones wrote: > Great!!  Two minimal changes: I've already sent a new patch with these modifications called: [PATCH Browse v3] Revert zoom with the original value SL #3540 and sorry again. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio

Re: [Sugar-devel] [PATCH Browse v2] Revert zoom with the original value SL #3540

2012-04-29 Thread Manuel Kaufmann
On Sun, Apr 29, 2012 at 12:42, Manuel Kaufmann wrote: >  3 files changed, 16 insertions(+), 0 deletions(-) Sorry about all this mess. Forget this email. -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com.ar/ PyAr: http://www.python.com

[Sugar-devel] [PATCH Browse v3] Revert zoom with the original value SL #3540

2012-04-29 Thread Manuel Kaufmann
New functionality to go back to the original zoom value. Added an icon next to zoom properties in View Toolbar. This function can be used with the hotkey "Control + 0" as well. Signed-off-by: Manuel Kaufmann --- browser.py |1 + viewtoolbar.py | 11 +++ webactivity

[Sugar-devel] [PATCH Browse v2] Revert zoom with the original value SL #3540

2012-04-29 Thread Manuel Kaufmann
New functionality to go back to the original zoom value. Added an icon next to zoom properties in View Toolbar. This function can be used with the hotkey "Control + 0" as well. Signed-off-by: Manuel Kaufmann --- browser.py |1 + viewtoolbar.py | 11 +++ webactivity

[Sugar-devel] [PATCH Browse] Revert zoom with the original value

2012-04-29 Thread Manuel Kaufmann
New functionality to go back to the original zoom value. Added an icon next to zoom properties in View Toolbar. This function can be used with the hotkey "Control + 0" as well. Signed-off-by: Manuel Kaufmann --- browser.py |1 + viewtoolbar.py | 11 +++ webactivity

Re: [Sugar-devel] [PATCH Browse] Step scroll with the keypad arrow keys OLPC #11806

2012-04-29 Thread Manuel Kaufmann
On Sat, Apr 28, 2012 at 20:06, Manuel Quiñones wrote: > Signed-off-by: Manuel Quiñones > --- >  webactivity.py |   17 + The patch works perfect! I tested it on Sugar JHBuild in Fedora 16 -- Kaufmann Manuel Blog: http://humitos.wordpress.com/ Porfolio: http://fotos.mkaufmann.com

Re: [Sugar-devel] [PATCH Browse] Allow 'Up' key in the drop-down list of suggested pages SL #3473

2012-04-28 Thread Manuel Kaufmann
On Sat, Apr 28, 2012 at 12:27, Martin Langhoff wrote: > Looping Peter in. Manuel, for Peter's info, is the patch already in the > upstream pygobject repo? In their master or their stable branch? Is there a > bug in the upstream bugtracker that explains the bug, or a mailing list > thread? Anything

Re: [Sugar-devel] [PATCH Browse] Remove search url from translation strings SL #3311

2012-04-28 Thread Manuel Kaufmann
On Sat, 2012-04-28 at 12:55 +0100, Eduardo H. Silva wrote: > This should probably be explained in a developers commentary to the > string in the PO file, so translators know it. Yes, I totally agree with you. Now, how do we do to put a comment so the translators can see it? -- Kaufmann Manuel

[Sugar-devel] [PATCH Browse] Remove search url from translation strings SL #3311

2012-04-28 Thread Manuel Kaufmann
This string is not translatable, so it's removed from the list. Signed-off-by: Manuel Kaufmann --- browser.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/browser.py b/browser.py index 259d888..e628848 100644 --- a/browser.py +++ b/browser.py @@ -136,7 +

Re: [Sugar-devel] [PATCH Browse] Allow 'Up' key in the drop-down list of suggested pages SL #3473

2012-04-28 Thread Manuel Kaufmann
On Fri, 2012-04-27 at 17:03 -0400, Martin Langhoff wrote: > - fedpkg swich-branch f17 # defaults to "head" which is rawhide > (debian's sid) Good! I'm working on this. I could do all the steps that you mentioned but I had to change some things. For example, I'm running F16 so I had to change th

[Sugar-devel] [PATCH Browse] Escape key stops page load SL #3373

2012-04-27 Thread Manuel Kaufmann
When a page is still loading the user is able to press the Escape key to stop its load. Signed-off-by: Manuel Kaufmann --- webactivity.py |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/webactivity.py b/webactivity.py index 156ea3c..3892010 100644 --- a

Re: [Sugar-devel] [PATCH Browse] Allow 'Up' key in the drop-down list of suggested pages SL #3473

2012-04-27 Thread Manuel Kaufmann
On Fri, 2012-04-27 at 12:57 -0300, Manuel Kaufmann wrote: > This patch fixes #3473 but it's necessary to have the git version of > python-gi > because it needs this commit[1] to work How is the process in Fedora 16 to download a .rpm from it sources and re-build it again? I di

[Sugar-devel] [PATCH Browse] Allow 'Up' key in the drop-down list of suggested pages SL #3473

2012-04-27 Thread Manuel Kaufmann
This patch fixes #3473 but it's necessary to have the git version of python-gi because it needs this commit[1] to work [1] http://git.gnome.org/browse/pygobject/commit/?id=d37680bb9390426f7f58ea3d352c3e5e2106e978 Signed-off-by: Manuel Kaufmann --- webtoolbar.py |8 1 file ch

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

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 23:20, James Cameron 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: http://fotos.mkaufmann.c

[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 " (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. I think maybe it is because so

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, 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,' 'toolkit version <

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 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/ ___ Sugar-dev

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 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)

[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 anybod

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 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: http://www.python.com.ar

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

2012-04-26 Thread Manuel Kaufmann
croll the page. [1] http://wiki.sugarlabs.org/go/Features/GTK3/Porting Signed-off-by: Manuel Kaufmann --- browser.py | 43 --- helpactivity.py | 36 +++- 2 files changed, 15 insertions(+), 64 deletions(-) delete mode 100644

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 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 upstream, and a

[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 --- Area.py | 11 ++- 1 file changed, 10 insertions(+), 1 del

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

2012-04-26 Thread Manuel Kaufmann
On Thu, Apr 26, 2012 at 09:06, 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: http://humitos.wordpress.com/ Porfolio: htt

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 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/ Porfolio: http://fotos.mka

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

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 22:25, Gonzalo Odiard 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 "telepathy-mission-co

[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: http://ww

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

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 22:13, Gonzalo Odiard wrote: >> On Wed, Apr 25, 2012 at 15:47, Gonzalo Odiard 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 feature that you are missin

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 : > 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 important. I

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

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 15:47, Gonzalo Odiard 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] datastore.write problem

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 14:18, Walter Bender 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 share the relevant pa

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 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]$ pep8 script.py [humitos]

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 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 pep8 fails with: from os i

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 : > 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/ Porfolio: http://fotos.

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 : > 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: http://fotos.m

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

2012-04-25 Thread Manuel Kaufmann
croll the page. [1] http://wiki.sugarlabs.org/go/Features/GTK3/Porting Signed-off-by: Manuel Kaufmann --- browser.py | 43 --- helpactivity.py | 38 ++ viewtoolbar.py |3 +-- 3 files changed, 15 insertions(+), 69 deletio

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

2012-04-25 Thread Manuel Kaufmann
croll the page. [1] http://wiki.sugarlabs.org/go/Features/GTK3/Porting Signed-off-by: Manuel Kaufmann --- browser.py | 18 -- helpactivity.py | 29 +++-- 2 files changed, 11 insertions(+), 36 deletions(-) diff --git a/browser.py b/browser.py index 85017cb..650e5c

Re: [Sugar-devel] Wiki login

2012-04-25 Thread Manuel Kaufmann
On Wed, Apr 25, 2012 at 03:19, Bernie Innocenti 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: http://humitos.wordpress.com/ Porfolio: htt

[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 --- browser.py | 45 ++

Re: [Sugar-devel] GTK3 in Debian Testing

2012-04-24 Thread Manuel Kaufmann
On Tue, Apr 24, 2012 at 17:45, Manuel Kaufmann 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 main cont

[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] Wiki login

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

Re: [Sugar-devel] Wiki login

2012-04-23 Thread Manuel Kaufmann
On Mon, Apr 23, 2012 at 11:18, Frederick Grose 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: http://humitos.wordpress.com/ Po

Re: [Sugar-devel] Wiki login

2012-04-23 Thread Manuel Kaufmann
On Mon, Apr 23, 2012 at 08:29, Gonzalo Odiard 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/

[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 someth

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

2012-04-20 Thread Manuel Kaufmann
2012/4/19 Manuel Quiñones : > 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 Python Argenti

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 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, because it don't confuse th

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 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 the prompt: echo

Re: [Sugar-devel] Gamepad keys in jhbuild

2012-04-17 Thread Manuel Kaufmann
On Tue, Apr 17, 2012 at 11:42, Manuel Kaufmann 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 Xep

[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] [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 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 have mor

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

2012-04-16 Thread Manuel Kaufmann
rwise 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 --- game.py | 27 --- player.py | 24 ++---

[Sugar-devel] [PATCH Maze] Allow collaboration (SL #3296)

2012-04-16 Thread Manuel Kaufmann
mesh.PARTICIPANT_ADD value and when it reads the messages it find the correct name (the name that the child chose) [1] http://dev.laptop.org/ticket/10750 Signed-off-by: Manuel Kaufmann --- game.py | 88 +-- 1 file changed, 52 insert

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 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/0363

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 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 whe

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 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: http://humitos.wordpress.com/ P

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 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, sugar-base or sugar-tool

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 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 but I

[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 e

Re: [Sugar-devel] Maze sharing error

2012-04-14 Thread Manuel Kaufmann
On Tue, Apr 3, 2012 at 23:30, Rafael Ortiz 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 can test it together over

Re: [Sugar-devel] jhbuild in Ubuntu

2012-04-14 Thread Manuel Kaufmann
On Sat, Apr 14, 2012 at 10:02, Sascha Silbe 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 > number of releases). For t

[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 distrib

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

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 15:11, Manuel Kaufmann 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 I could! I had to disable NetworkManage

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

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 14:50, Bert Freudenberg 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 eth0" says: /

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

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 14:28, Bert Freudenberg 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 Debian desktop machine

[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 proxy = bus.get_object('org.laptop.Shell',

Re: [Sugar-devel] Write activity crashes

2012-04-13 Thread Manuel Kaufmann
On Fri, Apr 13, 2012 at 12:25, Peter Robinson 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: http://fotos.mkaufmann.com

[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 infor

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 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 color and uses Key fo

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 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

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

2012-04-12 Thread Manuel Kaufmann
2012/4/12 Gary Martin : > 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 consistent. Mmm... I'm not su

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

2012-04-12 Thread Manuel Kaufmann
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 --- logviewer.py | 43 ++- 1 file changed, 34 insertions(+), 9 deletions(-) diff

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

2012-04-12 Thread Manuel Kaufmann
results for that query the Entry box is highlighted with red color. This commit solves: #2734 Signed-off-by: Manuel Kaufmann --- logviewer.py | 32 +++- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/logviewer.py b/logviewer.py index 88fe2e6..8871aa0

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 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 for equality.

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 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 Could you explai

[Sugar-devel] [PATCH Chat v4] 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. Auto scroll again if the user entry a new message in the ChatBox. This commit solves http://bugs.sugarlabs.org/ticket/2782 Signed-off-by: Manuel

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

2012-04-11 Thread Manuel Kaufmann
On Wed, Apr 11, 2012 at 13:58, Aleksey Lim wrote: >> 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 because >> someone else wrote something. Think about a chat with a lot of people: >> you could not scroll free

Re: [Sugar-devel] [PATCH Chat] Don't treat the whole word as an URL

2012-04-11 Thread Manuel Kaufmann
On Wed, Apr 11, 2012 at 13:39, Manuel Kaufmann wrote: > Changed re.search to re.match because .search scan through the whole string > looking for the regex. So, for example "asodijfosidwww.google.comaosdfoisad" > with .search will be treated as a whole URL. > > With .mat

<    1   2   3   4   5   >