Re: [Sugar-devel] Schoolserver icon

2010-06-29 Thread Bert Freudenberg

On 29.06.2010, at 03:49, Gary Martin wrote:

 On 28 Jun 2010, at 23:57, Bernie Innocenti wrote:
 
 FWIW There are some simple school house type icons that
 could sugarise well, pretty much something like this very
 quick shape, perhaps making sure it's not too church like.
 There's other variations that can be flat top based, and/or
 place a round clock face in the top section and a couple of
 windows in the lower section. I could generate a few
 versions around this theme and see what works for folks?
 
 I'm ok with the one you posted, but I'm not a designer so I'll simply
 step back and enjoy the fight :-)
 
 Here's a few more misc. plays around school building shape. Maybe I'm being 
 too literal here and should stray more down the server/resource aspect, 
 rather than a school aspect? Shout if you think one works better than others 
 (or some specific feature):
 
 Schoolserver icon ideas.pdf

/me likes the lower right one. 


- Bert -


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


[Sugar-devel] 0.90 Meeting --- 30. June 2010 (14:00 UTC)

2010-06-29 Thread Simon Schampijer
Hey,

I would like to do a short developer meeting tomorrow Wednesday 
30.06.2010 at 14:00 UTC in #sugar-meeting (freenode).

The topic is the upcoming 0.90 release. We will talk about the schedule, 
the focus of the release and any other points that come up regarding the 
release. I have started the draft for 0.90 roadmap [1]. I will work on 
it more later today.

Have a nice day,
 Simon

[1] http://wiki.sugarlabs.org/go/0.90/Roadmap
[2] How can I convert UTC into localtime? You can use the command: date 
-d '2010-06-30 14:00 UTC' or one of the many websites offering a 
UTC-service.

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


Re: [Sugar-devel] [ASLO] Release Read-87

2010-06-29 Thread Peter Robinson
On Mon, Jun 28, 2010 at 10:32 PM, Sugar Labs Activities
activit...@sugarlabs.org wrote:
 Activity Homepage:
 http://activities.sugarlabs.org/addon/4028

 Sugar Platform:
 0.84 - 0.84

Is there a reason that Read is now only supported on 0.84?

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


Re: [Sugar-devel] [ASLO] Release Read-87

2010-06-29 Thread Sayamindu Dasgupta
On Tue, Jun 29, 2010 at 2:55 PM, Peter Robinson pbrobin...@gmail.com wrote:
 On Mon, Jun 28, 2010 at 10:32 PM, Sugar Labs Activities
 activit...@sugarlabs.org wrote:
 Activity Homepage:
 http://activities.sugarlabs.org/addon/4028

 Sugar Platform:
 0.84 - 0.84

 Is there a reason that Read is now only supported on 0.84?


This is a bugfix release for 0.84 (specifically the F11 based builds
for XO-15 and XO-1). It avoids using the new toolbars.
Thanks,
Sayamindu


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




-- 
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] 0.90 Meeting --- 30. June 2010 (14:00 UTC)

2010-06-29 Thread Tomeu Vizoso
On Tue, Jun 29, 2010 at 11:43, Bert Freudenberg b...@freudenbergs.de wrote:

 On 29.06.2010, at 10:30, Simon Schampijer wrote:

 Hey,

 I would like to do a short developer meeting tomorrow Wednesday
 30.06.2010 at 14:00 UTC in #sugar-meeting (freenode).

 The topic is the upcoming 0.90 release. We will talk about the schedule,
 the focus of the release and any other points that come up regarding the
 release. I have started the draft for 0.90 roadmap [1]. I will work on
 it more later today.

 Have a nice day,
     Simon

 [1] http://wiki.sugarlabs.org/go/0.90/Roadmap
 [2] How can I convert UTC into localtime? You can use the command: date
 -d '2010-06-30 14:00 UTC' or one of the many websites offering a
 UTC-service.

 This lists the local time directly:
 http://tinyurl.com/26zgff4

 Unfortunately, I most probably can't attend :(

What time would be good for you? (And for anybody who is interested in
attending).

Regards,

Tomeu

 - Bert -


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

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


Re: [Sugar-devel] Schoolserver icon

2010-06-29 Thread Christian Marc Schmidt
I can try to find the original icon we designed back in 2006. It was
similar to the designs Gary sent over, but simplified...

Christian

On Tue, Jun 29, 2010 at 4:14 AM, Bert Freudenberg b...@freudenbergs.de wrote:

 On 29.06.2010, at 03:49, Gary Martin wrote:

 On 28 Jun 2010, at 23:57, Bernie Innocenti wrote:

 FWIW There are some simple school house type icons that
 could sugarise well, pretty much something like this very
 quick shape, perhaps making sure it's not too church like.
 There's other variations that can be flat top based, and/or
 place a round clock face in the top section and a couple of
 windows in the lower section. I could generate a few
 versions around this theme and see what works for folks?

 I'm ok with the one you posted, but I'm not a designer so I'll simply
 step back and enjoy the fight :-)

 Here's a few more misc. plays around school building shape. Maybe I'm being 
 too literal here and should stray more down the server/resource aspect, 
 rather than a school aspect? Shout if you think one works better than others 
 (or some specific feature):

 Schoolserver icon ideas.pdf

 /me likes the lower right one.


 - Bert -






-- 
anyth...@christianmarcschmidt.com
917/ 575 0013

http://www.christianmarcschmidt.com
http://www.linkedin.com/in/christianmarcschmidt
http://twitter.com/cms_
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] 0.90 Meeting --- 30. June 2010 (14:00 UTC)

2010-06-29 Thread Michael Stone
 On Tue, Jun 29, 2010 at 6:17 AM, Tomeu Vizoso to...@sugarlabs.org wrote:
 On Tue, Jun 29, 2010 at 11:43, Bert Freudenberg b...@freudenbergs.de
 wrote:

 On 29.06.2010, at 10:30, Simon Schampijer wrote:

 Hey,

 I would like to do a short developer meeting tomorrow Wednesday
 30.06.2010 at 14:00 UTC in #sugar-meeting (freenode).

 The topic is the upcoming 0.90 release. We will talk about the schedule,
 the focus of the release and any other points that come up regarding the
 release. I have started the draft for 0.90 roadmap [1]. I will work on
 it more later today.

 Have a nice day,
 =A0 =A0 Simon

 [1] http://wiki.sugarlabs.org/go/0.90/Roadmap
 [2] How can I convert UTC into localtime? You can use the command: date
 -d '2010-06-30 14:00 UTC' or one of the many websites offering a
 UTC-service.

 This lists the local time directly:
 http://tinyurl.com/26zgff4

 Unfortunately, I most probably can't attend :(

 What time would be good for you? (And for anybody who is interested in
 attending).

 An hour earlier (13UTC) would be better for me. (or after 17UTC).

13:00 UTC is better for me as a time. Also, email is better for me as a medium.

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


Re: [Sugar-devel] Schoolserver icon

2010-06-29 Thread Martin Langhoff
On Mon, Jun 28, 2010 at 6:57 PM, Bernie Innocenti ber...@codewiz.org wrote:
 El Mon, 28-06-2010 a las 21:36 +0100, Gary Martin escribió:

 A joke right? Something I missed from the early days?

 No joke! Sugar Labs is actually a masonic lodge. Oops, now I'll have to
 kill you.

*I actually got questions about masonic influence on our UI design.*
Not kidding...

Anyway - there's a nice school at the 1 minute mark in this video -
http://www.dailymotion.com/video/x7ft2t_olpc-mission-video-part-1_tech


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


Re: [Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-29 Thread Martin Abente
Martin and James,

In case you haven't noticed, we know how it could be better and we know
how the high level pseudo code would look like. We just can't do it,
because we have no more time to spend on this.

The backup and restore script are just a little part of this whole patch,
and it would be _very_ helpful if someone could actually test it and review
the code.

Thanks for your comments, hopefully we or someone else will have the time
to improve it, in the near future.
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-29 Thread Martin Langhoff
On Tue, Jun 29, 2010 at 2:56 PM, Martin Abente
mabe...@paraguayeduca.org wrote:
 In case you haven't noticed, we know how it could be better and we know
 how the high level pseudo code would look like. We just can't do it,
 because we have no more time to spend on this.

I understand this -- and I am in a similar quandary.

However, I am bothering you with this because I am a bit worried --
because two things have combined in an unfortunate way:

 - the restore action is destructive

 - it is now in a UI button that is present in the everyday UI

kids are going to try things. They try things all the time; and
they'll try the restore button.

One of the key design concerns in Sugar is that operations should not
be destructive. You can imagine how a dangerous button, made so
easily available, can be... well... dangerous.

 Thanks for your comments, hopefully we or someone else will have the time
 to improve it, in the near future.

And that may well be me. I hope at least.




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


Re: [Sugar-devel] Schoolserver icon

2010-06-29 Thread Gary Martin
On 29 Jun 2010, at 15:39, Martin Langhoff martin.langh...@gmail.com wrote:

 On Mon, Jun 28, 2010 at 6:57 PM, Bernie Innocenti ber...@codewiz.org wrote:
 El Mon, 28-06-2010 a las 21:36 +0100, Gary Martin escribió:
 
 A joke right? Something I missed from the early days?
 
 No joke! Sugar Labs is actually a masonic lodge. Oops, now I'll have to
 kill you.
 
 *I actually got questions about masonic influence on our UI design.*
 Not kidding...
 
 Anyway - there's a nice school at the 1 minute mark in this video -
 http://www.dailymotion.com/video/x7ft2t_olpc-mission-video-part-1_tech

Thanks for the pointer, yea that works, a little like the top right 'with bell' 
attempt on my last sheet. I worried that one would be seen as too church like.

Regards,
--Gary

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


[Sugar-devel] [PATCH] Browse: Add support for creating multiple tabs

2010-06-29 Thread anishmangal2002
This patch adds support to create multiple tabbed windows
in Browse. A tab may be added by either clicking the add tab
('+') icon in the activity toolbar or by pressing 'ctrl+t'.

Signed-off-by: anishmangal2002 anishmangal2...@gmail.com
---
 icons/add-tab.svg |   86 +
 webactivity.py|   11 +++
 webtoolbar.py |   21 +
 3 files changed, 118 insertions(+), 0 deletions(-)
 create mode 100644 icons/add-tab.svg

diff --git a/icons/add-tab.svg b/icons/add-tab.svg
new file mode 100644
index 000..0220993
--- /dev/null
+++ b/icons/add-tab.svg
@@ -0,0 +1,86 @@
+?xml version=1.0 encoding=UTF-8 standalone=no?
+!-- Created with Inkscape (http://www.inkscape.org/) --
+
+svg
+   xmlns:dc=http://purl.org/dc/elements/1.1/;
+   xmlns:cc=http://creativecommons.org/ns#;
+   xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
+   xmlns:svg=http://www.w3.org/2000/svg;
+   xmlns=http://www.w3.org/2000/svg;
+   xmlns:sodipodi=http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd;
+   xmlns:inkscape=http://www.inkscape.org/namespaces/inkscape;
+   version=1.1
+   width=55
+   height=55
+   id=svg2
+   inkscape:version=0.47 r22583
+   sodipodi:docname=add-tab.svg
+  metadata
+ id=metadata10
+rdf:RDF
+  cc:Work
+ rdf:about=
+dc:formatimage/svg+xml/dc:format
+dc:type
+   rdf:resource=http://purl.org/dc/dcmitype/StillImage; /
+  /cc:Work
+/rdf:RDF
+  /metadata
+  sodipodi:namedview
+ pagecolor=#ff
+ bordercolor=#66
+ borderopacity=1
+ objecttolerance=10
+ gridtolerance=10
+ guidetolerance=10
+ inkscape:pageopacity=0
+ inkscape:pageshadow=2
+ inkscape:window-width=1280
+ inkscape:window-height=721
+ id=namedview8
+ showgrid=false
+ inkscape:zoom=4.2909091
+ inkscape:cx=27.5
+ inkscape:cy=27.033898
+ inkscape:window-x=0
+ inkscape:window-y=27
+ inkscape:window-maximized=1
+ inkscape:current-layer=layer1 /
+  defs
+ id=defs4
+inkscape:perspective
+   sodipodi:type=inkscape:persp3d
+   inkscape:vp_x=0 : 27.5 : 1
+   inkscape:vp_y=0 : 1000 : 0
+   inkscape:vp_z=55 : 27.5 : 1
+   inkscape:persp3d-origin=27.5 : 18.33 : 1
+   id=perspective12 /
+  /defs
+  g
+ transform=translate(0,-997.36218)
+ id=layer1
+rect
+   width=55
+   height=55
+   x=0
+   y=0
+   transform=translate(0,997.36218)
+   id=rect2818
+   style=fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none /
+rect
+   width=9
+   height=38
+   x=23
+   y=1005.8622
+   id=rect3599
+   style=fill:#ff;fill-opacity:1;stroke:none /
+rect
+   width=8.94349
+   height=37.99044
+   x=1020.3485
+   y=-47.595592
+   transform=matrix(-0.00107369,0.9942,-0.9889,-0.00148761,0,0)
+   id=rect3599-4
+   style=fill:#ff;fill-opacity:1;stroke:none /
+  /g
+/svg
diff --git a/webactivity.py b/webactivity.py
index 4be551e..5f4f917 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -152,6 +152,7 @@ def _set_accept_languages():
 logging.debug('LANG set')
 
 from browser import TabbedView
+from browser import Browser
 from webtoolbar import PrimaryToolbar
 from edittoolbar import EditToolbar
 from viewtoolbar import ViewToolbar
@@ -443,6 +444,16 @@ class WebActivity(activity.Activity):
 _logger.debug('keyboard: Zoom in')
 self._tabbed_view.props.current_browser.zoom_in()
 return True
+elif gtk.gdk.keyval_name(event.keyval) == t:
+browser = Browser()
+self._tabbed_view._append_tab(browser)
+if os.path.isfile(_LIBRARY_PATH):
+browser.load_uri('file://' + _LIBRARY_PATH)
+else:
+default_page = os.path.join(activity.get_bundle_path(),
+data/index.html)
+browser.load_uri(default_page)
+
 return False
 
 def _add_link(self):
diff --git a/webtoolbar.py b/webtoolbar.py
index 854345c..99979ca 100644
--- a/webtoolbar.py
+++ b/webtoolbar.py
@@ -18,6 +18,9 @@
 
 from gettext import gettext as _
 
+_LIBRARY_PATH = '/usr/share/library-common/index.html'
+
+import os
 import gobject
 import gtk
 import pango
@@ -31,6 +34,7 @@ from sugar.graphics.toolbarbox import ToolbarBox
 from sugar.activity.widgets import ActivityToolbarButton
 from sugar.activity.widgets import StopButton
 from sugar.activity import activity
+from browser import Browser
 
 import filepicker
 import places
@@ -267,6 +271,13 @@ class PrimaryToolbar(ToolbarBox):
 self.toolbar.insert(self._forward, -1)
 self._forward.show()
 
+self._add_tab = ToolButton('add-tab')
+self._add_tab.set_tooltip(_('Add a tab'))
+self._add_tab.props.sensitive = True
+self._add_tab.connect('clicked', self._add_tab_cb)
+

Re: [Sugar-devel] 0.90 Meeting --- 30. June 2010 (14:00 UTC)

2010-06-29 Thread Simon Schampijer
On 06/29/2010 02:31 PM, Walter Bender wrote:
 On Tue, Jun 29, 2010 at 6:17 AM, Tomeu Vizosoto...@sugarlabs.org  wrote:
 On Tue, Jun 29, 2010 at 11:43, Bert Freudenbergb...@freudenbergs.de  wrote:

 On 29.06.2010, at 10:30, Simon Schampijer wrote:

 Hey,

 I would like to do a short developer meeting tomorrow Wednesday
 30.06.2010 at 14:00 UTC in #sugar-meeting (freenode).

 The topic is the upcoming 0.90 release. We will talk about the schedule,
 the focus of the release and any other points that come up regarding the
 release. I have started the draft for 0.90 roadmap [1]. I will work on
 it more later today.

 Have a nice day,
  Simon

 [1] http://wiki.sugarlabs.org/go/0.90/Roadmap
 [2] How can I convert UTC into localtime? You can use the command: date
 -d '2010-06-30 14:00 UTC' or one of the many websites offering a
 UTC-service.

 This lists the local time directly:
 http://tinyurl.com/26zgff4

 Unfortunately, I most probably can't attend :(

Ok, we can keep you updated (and anybody else) on the list.

 What time would be good for you? (And for anybody who is interested in
 attending).

 An hour earlier (13UTC) would be better for me. (or after 17UTC).

 -walter

13:00 UTC is fine with me, let's just move it here.

Sorry for the late notice, I just try to move on as we are already late 
in the cycle.

Regards,
Simon


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


Re: [Sugar-devel] [PATCH] Browse: Add support for creating multiple tabs

2010-06-29 Thread Anish Mangal
Note:

1. On f13 based sugar environments (such as soas3, jhbuild-0.88), this
patch will occasionally cause Browse to crash when closing tabs. This
probably happens because of a bug [1] (or something very similar to
this). As a workaround, one can downgrade the cairo package from
cairo-1.8.10 to cairo-1.8.8-1.fc11 (or upgrade to the latest
development version 1.9.10-1, though I haven't tested that).

2. This patch doesn't add an entry 'open link in new tab' to the
context menu. That can come as a separate patch.


[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551852

--
Anish Mangal
an...@sugarlabs.org


On Wed, Jun 30, 2010 at 2:28 AM, anishmangal2002
anishmangal2...@gmail.com wrote:
 This patch adds support to create multiple tabbed windows
 in Browse. A tab may be added by either clicking the add tab
 ('+') icon in the activity toolbar or by pressing 'ctrl+t'.

 Signed-off-by: anishmangal2002 anishmangal2...@gmail.com
 ---
  icons/add-tab.svg |   86 
 +
  webactivity.py    |   11 +++
  webtoolbar.py     |   21 +
  3 files changed, 118 insertions(+), 0 deletions(-)
  create mode 100644 icons/add-tab.svg

 diff --git a/icons/add-tab.svg b/icons/add-tab.svg
 new file mode 100644
 index 000..0220993
 --- /dev/null
 +++ b/icons/add-tab.svg
 @@ -0,0 +1,86 @@
 +?xml version=1.0 encoding=UTF-8 standalone=no?
 +!-- Created with Inkscape (http://www.inkscape.org/) --
 +
 +svg
 +   xmlns:dc=http://purl.org/dc/elements/1.1/;
 +   xmlns:cc=http://creativecommons.org/ns#;
 +   xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
 +   xmlns:svg=http://www.w3.org/2000/svg;
 +   xmlns=http://www.w3.org/2000/svg;
 +   xmlns:sodipodi=http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd;
 +   xmlns:inkscape=http://www.inkscape.org/namespaces/inkscape;
 +   version=1.1
 +   width=55
 +   height=55
 +   id=svg2
 +   inkscape:version=0.47 r22583
 +   sodipodi:docname=add-tab.svg
 +  metadata
 +     id=metadata10
 +    rdf:RDF
 +      cc:Work
 +         rdf:about=
 +        dc:formatimage/svg+xml/dc:format
 +        dc:type
 +           rdf:resource=http://purl.org/dc/dcmitype/StillImage; /
 +      /cc:Work
 +    /rdf:RDF
 +  /metadata
 +  sodipodi:namedview
 +     pagecolor=#ff
 +     bordercolor=#66
 +     borderopacity=1
 +     objecttolerance=10
 +     gridtolerance=10
 +     guidetolerance=10
 +     inkscape:pageopacity=0
 +     inkscape:pageshadow=2
 +     inkscape:window-width=1280
 +     inkscape:window-height=721
 +     id=namedview8
 +     showgrid=false
 +     inkscape:zoom=4.2909091
 +     inkscape:cx=27.5
 +     inkscape:cy=27.033898
 +     inkscape:window-x=0
 +     inkscape:window-y=27
 +     inkscape:window-maximized=1
 +     inkscape:current-layer=layer1 /
 +  defs
 +     id=defs4
 +    inkscape:perspective
 +       sodipodi:type=inkscape:persp3d
 +       inkscape:vp_x=0 : 27.5 : 1
 +       inkscape:vp_y=0 : 1000 : 0
 +       inkscape:vp_z=55 : 27.5 : 1
 +       inkscape:persp3d-origin=27.5 : 18.33 : 1
 +       id=perspective12 /
 +  /defs
 +  g
 +     transform=translate(0,-997.36218)
 +     id=layer1
 +    rect
 +       width=55
 +       height=55
 +       x=0
 +       y=0
 +       transform=translate(0,997.36218)
 +       id=rect2818
 +       style=fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none /
 +    rect
 +       width=9
 +       height=38
 +       x=23
 +       y=1005.8622
 +       id=rect3599
 +       style=fill:#ff;fill-opacity:1;stroke:none /
 +    rect
 +       width=8.94349
 +       height=37.99044
 +       x=1020.3485
 +       y=-47.595592
 +       transform=matrix(-0.00107369,0.9942,-0.9889,-0.00148761,0,0)
 +       id=rect3599-4
 +       style=fill:#ff;fill-opacity:1;stroke:none /
 +  /g
 +/svg
 diff --git a/webactivity.py b/webactivity.py
 index 4be551e..5f4f917 100644
 --- a/webactivity.py
 +++ b/webactivity.py
 @@ -152,6 +152,7 @@ def _set_accept_languages():
     logging.debug('LANG set')

  from browser import TabbedView
 +from browser import Browser
  from webtoolbar import PrimaryToolbar
  from edittoolbar import EditToolbar
  from viewtoolbar import ViewToolbar
 @@ -443,6 +444,16 @@ class WebActivity(activity.Activity):
                 _logger.debug('keyboard: Zoom in')
                 self._tabbed_view.props.current_browser.zoom_in()
                 return True
 +            elif gtk.gdk.keyval_name(event.keyval) == t:
 +                browser = Browser()
 +                self._tabbed_view._append_tab(browser)
 +                if os.path.isfile(_LIBRARY_PATH):
 +                    browser.load_uri('file://' + _LIBRARY_PATH)
 +                else:
 +                    default_page = os.path.join(activity.get_bundle_path(),
 +                                            data/index.html)
 +                    browser.load_uri(default_page)
 +
         return False

     def _add_link(self):
 diff --git a/webtoolbar.py b/webtoolbar.py
 index 854345c..99979ca 100644
 

Re: [Sugar-devel] [PATCH] Browse: Add support for creating multiple tabs

2010-06-29 Thread Anish Mangal
 1. On f13 based sugar environments (such as soas3, jhbuild-0.88), this

Oops, I meant soas3 and jhbuild-0.88 running on f13.

On Wed, Jun 30, 2010 at 2:46 AM, Anish Mangal anishmangal2...@gmail.com wrote:
 Note:

 1. On f13 based sugar environments (such as soas3, jhbuild-0.88), this
 patch will occasionally cause Browse to crash when closing tabs. This
 probably happens because of a bug [1] (or something very similar to
 this). As a workaround, one can downgrade the cairo package from
 cairo-1.8.10 to cairo-1.8.8-1.fc11 (or upgrade to the latest
 development version 1.9.10-1, though I haven't tested that).

 2. This patch doesn't add an entry 'open link in new tab' to the
 context menu. That can
come as a separate patch.


 [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551852

 --
 Anish Mangal
 an...@sugarlabs.org


 On Wed, Jun 30, 2010 at 2:28 AM, anishmangal2002
 anishmangal2...@gmail.com wrote:
 This patch adds support to create multiple tabbed windows
 in Browse. A tab may be added by either clicking the add tab
 ('+') icon in the activity toolbar or by pressing 'ctrl+t'.

 Signed-off-by: anishmangal2002 anishmangal2...@gmail.com
 ---
  icons/add-tab.svg |   86 
 +
  webactivity.py    |   11 +++
  webtoolbar.py     |   21 +
  3 files changed, 118 insertions(+), 0 deletions(-)
  create mode 100644 icons/add-tab.svg

 diff --git a/icons/add-tab.svg b/icons/add-tab.svg
 new file mode 100644
 index 000..0220993
 --- /dev/null
 +++ b/icons/add-tab.svg
 @@ -0,0 +1,86 @@
 +?xml version=1.0 encoding=UTF-8 standalone=no?
 +!-- Created with Inkscape (http://www.inkscape.org/) --
 +
 +svg
 +   xmlns:dc=http://purl.org/dc/elements/1.1/;
 +   xmlns:cc=http://creativecommons.org/ns#;
 +   xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
 +   xmlns:svg=http://www.w3.org/2000/svg;
 +   xmlns=http://www.w3.org/2000/svg;
 +   xmlns:sodipodi=http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd;
 +   xmlns:inkscape=http://www.inkscape.org/namespaces/inkscape;
 +   version=1.1
 +   width=55
 +   height=55
 +   id=svg2
 +   inkscape:version=0.47 r22583
 +   sodipodi:docname=add-tab.svg
 +  metadata
 +     id=metadata10
 +    rdf:RDF
 +      cc:Work
 +         rdf:about=
 +        dc:formatimage/svg+xml/dc:format
 +        dc:type
 +           rdf:resource=http://purl.org/dc/dcmitype/StillImage; /
 +      /cc:Work
 +    /rdf:RDF
 +  /metadata
 +  sodipodi:namedview
 +     pagecolor=#ff
 +     bordercolor=#66
 +     borderopacity=1
 +     objecttolerance=10
 +     gridtolerance=10
 +     guidetolerance=10
 +     inkscape:pageopacity=0
 +     inkscape:pageshadow=2
 +     inkscape:window-width=1280
 +     inkscape:window-height=721
 +     id=namedview8
 +     showgrid=false
 +     inkscape:zoom=4.2909091
 +     inkscape:cx=27.5
 +     inkscape:cy=27.033898
 +     inkscape:window-x=0
 +     inkscape:window-y=27
 +     inkscape:window-maximized=1
 +     inkscape:current-layer=layer1 /
 +  defs
 +     id=defs4
 +    inkscape:perspective
 +       sodipodi:type=inkscape:persp3d
 +       inkscape:vp_x=0 : 27.5 : 1
 +       inkscape:vp_y=0 : 1000 : 0
 +       inkscape:vp_z=55 : 27.5 : 1
 +       inkscape:persp3d-origin=27.5 : 18.33 : 1
 +       id=perspective12 /
 +  /defs
 +  g
 +     transform=translate(0,-997.36218)
 +     id=layer1
 +    rect
 +       width=55
 +       height=55
 +       x=0
 +       y=0
 +       transform=translate(0,997.36218)
 +       id=rect2818
 +       style=fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none /
 +    rect
 +       width=9
 +       height=38
 +       x=23
 +       y=1005.8622
 +       id=rect3599
 +       style=fill:#ff;fill-opacity:1;stroke:none /
 +    rect
 +       width=8.94349
 +       height=37.99044
 +       x=1020.3485
 +       y=-47.595592
 +       
 transform=matrix(-0.00107369,0.9942,-0.9889,-0.00148761,0,0)
 +       id=rect3599-4
 +       style=fill:#ff;fill-opacity:1;stroke:none /
 +  /g
 +/svg
 diff --git a/webactivity.py b/webactivity.py
 index 4be551e..5f4f917 100644
 --- a/webactivity.py
 +++ b/webactivity.py
 @@ -152,6 +152,7 @@ def _set_accept_languages():
     logging.debug('LANG set')

  from browser import TabbedView
 +from browser import Browser
  from webtoolbar import PrimaryToolbar
  from edittoolbar import EditToolbar
  from viewtoolbar import ViewToolbar
 @@ -443,6 +444,16 @@ class WebActivity(activity.Activity):
                 _logger.debug('keyboard: Zoom in')
                 self._tabbed_view.props.current_browser.zoom_in()
                 return True
 +            elif gtk.gdk.keyval_name(event.keyval) == t:
 +                browser = Browser()
 +                self._tabbed_view._append_tab(browser)
 +                if os.path.isfile(_LIBRARY_PATH):
 +                    browser.load_uri('file://' + _LIBRARY_PATH)
 +                else:
 +                    default_page = os.path.join(activity.get_bundle_path(),
 +                      

Re: [Sugar-devel] Sugar with a virtual (onscreen) keyboard

2010-06-29 Thread Sayamindu Dasgupta
On Wed, Jun 23, 2010 at 1:58 AM, Sayamindu Dasgupta sayami...@gmail.com wrote:
 On Fri, Jun 18, 2010 at 9:04 AM, Gary Martin garycmar...@googlemail.com 
 wrote:
 Hi Sayamindu,

 On 17 Jun 2010, at 13:16, Sayamindu Dasgupta wrote:

 [Apologies for the cross-posting]

 Hello,
 Thanks to the pointers provided by Peter Robinson, I got the Meego
 FVKBD (Free Virtual Keyboard)¹ running along with Sugar.
 A problem with the current FVKBD is that it supports only one base
 layout. Even variants of that layout (eg: CapsLock enabled, Symbols,
 etc) are treated as temporary, which means that you press the Caps
 key, enter a capital letter, and immediately after that, it gets reset
 back to the base layout (lower case qwerty).
 I wanted something which would be similar to the existing physical
 keyboards that we ship with the XO machines - with a dedicated key to
 switch between different scripts in the same keyboard. I had to extend
 the code of FVKBD to implement that, and with the modified FVKBD, I
 have spun a live-cd ISO (based on the current SOAS). You can download
 it from http://dev.laptop.org/~sayamindu/sugar-vkbd-test/sugar-vkbd-test.iso

 Wow, big thanks for launching into this. For anyone not sure how to try the 
 iso, I'm on a Mac and just used Virtual Box to create a new empty Fedora VM, 
 no HD, and just point to the iso as the boot CD. Started up just fine, 
 keyboard is already open to type in your user name (of course this is all 
 read only, any changes you make will be gone after a reboot).



...snip


 Sayamindu, what kind'a feedback/assistance would be most useful? Is it too 
 soon to start collating notes and screen shots on a wiki page somewhere?

 Yes - I think we should start putting all of this in a wiki.


I have put in some of my thoughts and ideas into the wiki :
http://wiki.sugarlabs.org/go/Features/Onscreen_Keyboard

Thanks,
Sayamindu

-- 
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Browse: Add support for creating multiple tabs

2010-06-29 Thread Lucian Branescu
I'm not sure it's a good idea to merge this if it causes Browse (vital
app) to occasionally crash on SoaS (very popular Sugar environment).
At the very least, the tabs feature should be disabled if that certain
version of cairo is detected.

Also, it would be more convenient if you put your work in a fork of
Browse at http://git.sugarlabs.org/projects/browse

On 29 June 2010 22:19, Anish Mangal anishmangal2...@gmail.com wrote:
 1. On f13 based sugar environments (such as soas3, jhbuild-0.88), this

 Oops, I meant soas3 and jhbuild-0.88 running on f13.

 On Wed, Jun 30, 2010 at 2:46 AM, Anish Mangal anishmangal2...@gmail.com 
 wrote:
 Note:

 1. On f13 based sugar environments (such as soas3, jhbuild-0.88), this
 patch will occasionally cause Browse to crash when closing tabs. This
 probably happens because of a bug [1] (or something very similar to
 this). As a workaround, one can downgrade the cairo package from
 cairo-1.8.10 to cairo-1.8.8-1.fc11 (or upgrade to the latest
 development version 1.9.10-1, though I haven't tested that).

 2. This patch doesn't add an entry 'open link in new tab' to the
 context menu. That can
 come as a separate patch.


 [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551852

 --
 Anish Mangal
 an...@sugarlabs.org


 On Wed, Jun 30, 2010 at 2:28 AM, anishmangal2002
 anishmangal2...@gmail.com wrote:
 This patch adds support to create multiple tabbed windows
 in Browse. A tab may be added by either clicking the add tab
 ('+') icon in the activity toolbar or by pressing 'ctrl+t'.

 Signed-off-by: anishmangal2002 anishmangal2...@gmail.com
 ---
  icons/add-tab.svg |   86 
 +
  webactivity.py    |   11 +++
  webtoolbar.py     |   21 +
  3 files changed, 118 insertions(+), 0 deletions(-)
  create mode 100644 icons/add-tab.svg

 diff --git a/icons/add-tab.svg b/icons/add-tab.svg
 new file mode 100644
 index 000..0220993
 --- /dev/null
 +++ b/icons/add-tab.svg
 @@ -0,0 +1,86 @@
 +?xml version=1.0 encoding=UTF-8 standalone=no?
 +!-- Created with Inkscape (http://www.inkscape.org/) --
 +
 +svg
 +   xmlns:dc=http://purl.org/dc/elements/1.1/;
 +   xmlns:cc=http://creativecommons.org/ns#;
 +   xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
 +   xmlns:svg=http://www.w3.org/2000/svg;
 +   xmlns=http://www.w3.org/2000/svg;
 +   xmlns:sodipodi=http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd;
 +   xmlns:inkscape=http://www.inkscape.org/namespaces/inkscape;
 +   version=1.1
 +   width=55
 +   height=55
 +   id=svg2
 +   inkscape:version=0.47 r22583
 +   sodipodi:docname=add-tab.svg
 +  metadata
 +     id=metadata10
 +    rdf:RDF
 +      cc:Work
 +         rdf:about=
 +        dc:formatimage/svg+xml/dc:format
 +        dc:type
 +           rdf:resource=http://purl.org/dc/dcmitype/StillImage; /
 +      /cc:Work
 +    /rdf:RDF
 +  /metadata
 +  sodipodi:namedview
 +     pagecolor=#ff
 +     bordercolor=#66
 +     borderopacity=1
 +     objecttolerance=10
 +     gridtolerance=10
 +     guidetolerance=10
 +     inkscape:pageopacity=0
 +     inkscape:pageshadow=2
 +     inkscape:window-width=1280
 +     inkscape:window-height=721
 +     id=namedview8
 +     showgrid=false
 +     inkscape:zoom=4.2909091
 +     inkscape:cx=27.5
 +     inkscape:cy=27.033898
 +     inkscape:window-x=0
 +     inkscape:window-y=27
 +     inkscape:window-maximized=1
 +     inkscape:current-layer=layer1 /
 +  defs
 +     id=defs4
 +    inkscape:perspective
 +       sodipodi:type=inkscape:persp3d
 +       inkscape:vp_x=0 : 27.5 : 1
 +       inkscape:vp_y=0 : 1000 : 0
 +       inkscape:vp_z=55 : 27.5 : 1
 +       inkscape:persp3d-origin=27.5 : 18.33 : 1
 +       id=perspective12 /
 +  /defs
 +  g
 +     transform=translate(0,-997.36218)
 +     id=layer1
 +    rect
 +       width=55
 +       height=55
 +       x=0
 +       y=0
 +       transform=translate(0,997.36218)
 +       id=rect2818
 +       style=fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none /
 +    rect
 +       width=9
 +       height=38
 +       x=23
 +       y=1005.8622
 +       id=rect3599
 +       style=fill:#ff;fill-opacity:1;stroke:none /
 +    rect
 +       width=8.94349
 +       height=37.99044
 +       x=1020.3485
 +       y=-47.595592
 +       
 transform=matrix(-0.00107369,0.9942,-0.9889,-0.00148761,0,0)
 +       id=rect3599-4
 +       style=fill:#ff;fill-opacity:1;stroke:none /
 +  /g
 +/svg
 diff --git a/webactivity.py b/webactivity.py
 index 4be551e..5f4f917 100644
 --- a/webactivity.py
 +++ b/webactivity.py
 @@ -152,6 +152,7 @@ def _set_accept_languages():
     logging.debug('LANG set')

  from browser import TabbedView
 +from browser import Browser
  from webtoolbar import PrimaryToolbar
  from edittoolbar import EditToolbar
  from viewtoolbar import ViewToolbar
 @@ -443,6 +444,16 @@ class WebActivity(activity.Activity):
                 _logger.debug('keyboard: Zoom in')
                 

Re: [Sugar-devel] Sugar with a virtual (onscreen) keyboard

2010-06-29 Thread Gary Martin
Hi Sayamindu,

On 29 Jun 2010, at 22:25, Sayamindu Dasgupta sayami...@gmail.com wrote:

 On Wed, Jun 23, 2010 at 1:58 AM, Sayamindu Dasgupta sayami...@gmail.com 
 wrote:
 On Fri, Jun 18, 2010 at 9:04 AM, Gary Martin garycmar...@googlemail.com 
 wrote:
 Hi Sayamindu,
 
 On 17 Jun 2010, at 13:16, Sayamindu Dasgupta wrote:
 
 [Apologies for the cross-posting]
 
 Hello,
 Thanks to the pointers provided by Peter Robinson, I got the Meego
 FVKBD (Free Virtual Keyboard)¹ running along with Sugar.
 A problem with the current FVKBD is that it supports only one base
 layout. Even variants of that layout (eg: CapsLock enabled, Symbols,
 etc) are treated as temporary, which means that you press the Caps
 key, enter a capital letter, and immediately after that, it gets reset
 back to the base layout (lower case qwerty).
 I wanted something which would be similar to the existing physical
 keyboards that we ship with the XO machines - with a dedicated key to
 switch between different scripts in the same keyboard. I had to extend
 the code of FVKBD to implement that, and with the modified FVKBD, I
 have spun a live-cd ISO (based on the current SOAS). You can download
 it from 
 http://dev.laptop.org/~sayamindu/sugar-vkbd-test/sugar-vkbd-test.iso
 
 Wow, big thanks for launching into this. For anyone not sure how to try the 
 iso, I'm on a Mac and just used Virtual Box to create a new empty Fedora 
 VM, no HD, and just point to the iso as the boot CD. Started up just fine, 
 keyboard is already open to type in your user name (of course this is all 
 read only, any changes you make will be gone after a reboot).
 
 
 
 ...snip
 
 
 Sayamindu, what kind'a feedback/assistance would be most useful? Is it too 
 soon to start collating notes and screen shots on a wiki page somewhere?
 
 Yes - I think we should start putting all of this in a wiki.
 
 
 I have put in some of my thoughts and ideas into the wiki :
 http://wiki.sugarlabs.org/go/Features/Onscreen_Keyboard

Thanks, that's a good set of notes. I'll add some of my scrawl to the talk page.

FWIW: My iPad testing using RDP has only been partially successful so far. Have 
been using the iTap RDP client to connect to the Virtual Box built in RDP 
support:

Pros: Pretty fast for a remote session; no redraw or graphics issues; can run 
the VM headless from the host; sound is remotely relayed (half second delay so 
not too great for UI feedback testing); uses 100% fullscreen so a 1024x768 
Sugar VM looks great on an iPad (iTap uses three finger gestures to invoke its 
local onscreen controls so you can pretend they don't exist).

Cons: Mouse cursor for clicks are not aligned correctly most of the time (still 
trying to track this issue down, may be client vs. host pointer related); due 
to the cursor alignment issues you need to invoke a hold gesture to drag the 
visible cursor to where you want to make a click (slow and defeats the goal of 
touch screen testing); iPad main virtual keyboard not correctly communicating 
with the VM (all the custom iTap keys work, esc, function keys, ctrl, alt, 
cursors etc, but the main keyboard letters do not get through) — which makes 
using your fvkbd image a must have ;)   

Regards,
--Gary

 Thanks,
 Sayamindu
 
 -- 
 Sayamindu Dasgupta
 [http://sayamindu.randomink.org/ramblings]
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Schoolserver icon

2010-06-29 Thread Bernie Innocenti
El Tue, 29-06-2010 a las 02:49 +0100, Gary Martin escribió:

 Here's a few more misc. plays around school building shape.
 Maybe I'm being too literal here and should stray more down
 the server/resource aspect, rather than a school aspect?
 Shout if you think one works better than others (or some
 specific feature):

For me, the one on the bottom left is the one which better communicates
the concept of school.

Do you have SVG versions of these icons?

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

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


Re: [Sugar-devel] Schoolserver icon

2010-06-29 Thread Gary Martin
On 29 Jun 2010, at 23:34, Bernie Innocenti ber...@codewiz.org wrote:

 El Tue, 29-06-2010 a las 02:49 +0100, Gary Martin escribió:
 
 Here's a few more misc. plays around school building shape.
 Maybe I'm being too literal here and should stray more down
 the server/resource aspect, rather than a school aspect?
 Shout if you think one works better than others (or some
 specific feature):
 
 For me, the one on the bottom left is the one which better communicates
 the concept of school.
 
 Do you have SVG versions of these icons?

No, I was going to build the SVG to order, based on feedback from you folks :) 
Do you need something now/today (to get the ball rolling at least, could be 
changed later)?

Regards,
--Gary

 -- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/
 
 ___
 Sugar-devel mailing list
 Sugar-devel@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/sugar-devel
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH] Browse: Add support for creating multiple tabs

2010-06-29 Thread Walter Bender
On Tue, Jun 29, 2010 at 4:58 PM, anishmangal2002
anishmangal2...@gmail.com wrote:
 This patch adds support to create multiple tabbed windows
 in Browse. A tab may be added by either clicking the add tab
 ('+') icon in the activity toolbar or by pressing 'ctrl+t'.

 Signed-off-by: anishmangal2002 anishmangal2...@gmail.com
 ---
  icons/add-tab.svg |   86 
 +
  webactivity.py    |   11 +++
  webtoolbar.py     |   21 +
  3 files changed, 118 insertions(+), 0 deletions(-)
  create mode 100644 icons/add-tab.svg

 diff --git a/icons/add-tab.svg b/icons/add-tab.svg
 new file mode 100644
 index 000..0220993
 --- /dev/null
 +++ b/icons/add-tab.svg
 @@ -0,0 +1,86 @@
 +?xml version=1.0 encoding=UTF-8 standalone=no?
 +!-- Created with Inkscape (http://www.inkscape.org/) --
 +
 +svg
 +   xmlns:dc=http://purl.org/dc/elements/1.1/;
 +   xmlns:cc=http://creativecommons.org/ns#;
 +   xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
 +   xmlns:svg=http://www.w3.org/2000/svg;
 +   xmlns=http://www.w3.org/2000/svg;
 +   xmlns:sodipodi=http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd;
 +   xmlns:inkscape=http://www.inkscape.org/namespaces/inkscape;
 +   version=1.1
 +   width=55
 +   height=55
 +   id=svg2
 +   inkscape:version=0.47 r22583
 +   sodipodi:docname=add-tab.svg
 +  metadata
 +     id=metadata10
 +    rdf:RDF
 +      cc:Work
 +         rdf:about=
 +        dc:formatimage/svg+xml/dc:format
 +        dc:type
 +           rdf:resource=http://purl.org/dc/dcmitype/StillImage; /
 +      /cc:Work
 +    /rdf:RDF
 +  /metadata
 +  sodipodi:namedview
 +     pagecolor=#ff
 +     bordercolor=#66
 +     borderopacity=1
 +     objecttolerance=10
 +     gridtolerance=10
 +     guidetolerance=10
 +     inkscape:pageopacity=0
 +     inkscape:pageshadow=2
 +     inkscape:window-width=1280
 +     inkscape:window-height=721
 +     id=namedview8
 +     showgrid=false
 +     inkscape:zoom=4.2909091
 +     inkscape:cx=27.5
 +     inkscape:cy=27.033898
 +     inkscape:window-x=0
 +     inkscape:window-y=27
 +     inkscape:window-maximized=1
 +     inkscape:current-layer=layer1 /
 +  defs
 +     id=defs4
 +    inkscape:perspective
 +       sodipodi:type=inkscape:persp3d
 +       inkscape:vp_x=0 : 27.5 : 1
 +       inkscape:vp_y=0 : 1000 : 0
 +       inkscape:vp_z=55 : 27.5 : 1
 +       inkscape:persp3d-origin=27.5 : 18.33 : 1
 +       id=perspective12 /
 +  /defs
 +  g
 +     transform=translate(0,-997.36218)
 +     id=layer1
 +    rect
 +       width=55
 +       height=55
 +       x=0
 +       y=0
 +       transform=translate(0,997.36218)
 +       id=rect2818
 +       style=fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none /
 +    rect
 +       width=9
 +       height=38
 +       x=23
 +       y=1005.8622
 +       id=rect3599
 +       style=fill:#ff;fill-opacity:1;stroke:none /
 +    rect
 +       width=8.94349
 +       height=37.99044
 +       x=1020.3485
 +       y=-47.595592
 +       transform=matrix(-0.00107369,0.9942,-0.9889,-0.00148761,0,0)
 +       id=rect3599-4
 +       style=fill:#ff;fill-opacity:1;stroke:none /
 +  /g
 +/svg

Please save your svg file as Simple SVG so as to eliminate all of the
Inkscape spam.

-walter

 diff --git a/webactivity.py b/webactivity.py
 index 4be551e..5f4f917 100644
 --- a/webactivity.py
 +++ b/webactivity.py
 @@ -152,6 +152,7 @@ def _set_accept_languages():
     logging.debug('LANG set')

  from browser import TabbedView
 +from browser import Browser
  from webtoolbar import PrimaryToolbar
  from edittoolbar import EditToolbar
  from viewtoolbar import ViewToolbar
 @@ -443,6 +444,16 @@ class WebActivity(activity.Activity):
                 _logger.debug('keyboard: Zoom in')
                 self._tabbed_view.props.current_browser.zoom_in()
                 return True
 +            elif gtk.gdk.keyval_name(event.keyval) == t:
 +                browser = Browser()
 +                self._tabbed_view._append_tab(browser)
 +                if os.path.isfile(_LIBRARY_PATH):
 +                    browser.load_uri('file://' + _LIBRARY_PATH)
 +                else:
 +                    default_page = os.path.join(activity.get_bundle_path(),
 +                                            data/index.html)
 +                    browser.load_uri(default_page)
 +
         return False

     def _add_link(self):
 diff --git a/webtoolbar.py b/webtoolbar.py
 index 854345c..99979ca 100644
 --- a/webtoolbar.py
 +++ b/webtoolbar.py
 @@ -18,6 +18,9 @@

  from gettext import gettext as _

 +_LIBRARY_PATH = '/usr/share/library-common/index.html'
 +
 +import os
  import gobject
  import gtk
  import pango
 @@ -31,6 +34,7 @@ from sugar.graphics.toolbarbox import ToolbarBox
  from sugar.activity.widgets import ActivityToolbarButton
  from sugar.activity.widgets import StopButton
  from sugar.activity import activity
 +from browser import Browser

  import filepicker
  import places
 @@ -267,6 +271,13 @@ class 

Re: [Sugar-devel] Schoolserver icon

2010-06-29 Thread Walter Bender
On Tue, Jun 29, 2010 at 6:34 PM, Bernie Innocenti ber...@codewiz.org wrote:
 El Tue, 29-06-2010 a las 02:49 +0100, Gary Martin escribió:

 Here's a few more misc. plays around school building shape.
 Maybe I'm being too literal here and should stray more down
 the server/resource aspect, rather than a school aspect?
 Shout if you think one works better than others (or some
 specific feature):

 For me, the one on the bottom left is the one which better communicates
 the concept of school.

Might be something we eventually have to localize. None of these look
anything like the schools I have seen in Nigeria, Thailand, etc.

-walter


 Do you have SVG versions of these icons?

 --
   // Bernie Innocenti - http://codewiz.org/
  \X/  Sugar Labs       - http://sugarlabs.org/

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




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


Re: [Sugar-devel] [PATCH] Browse: Add support for creating multiple tabs

2010-06-29 Thread Bernie Innocenti
El Tue, 29-06-2010 a las 22:26 +0100, Lucian Branescu escribió:
 I'm not sure it's a good idea to merge this if it causes Browse (vital
 app) to occasionally crash on SoaS (very popular Sugar environment).
 At the very least, the tabs feature should be disabled if that certain
 version of cairo is detected.

I'd go for the workaround, as we'd really want this feature merged in
time for F11-0.88.

Meanwhile, can someone please file a bug in RedHat's bugzilla? I've cc'd
the current Cairo maintainer in Fedora. Benjamin, this is the equivalent
bug in Debian: 

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551852


On 29 June 2010 22:19, Anish Mangal anishmangal2...@gmail.com wrote:
  1. On f13 based sugar environments (such as soas3, jhbuild-0.88),
this
 
  Oops, I meant soas3 and jhbuild-0.88 running on f13.
 
  On Wed, Jun 30, 2010 at 2:46 AM, Anish Mangal
anishmangal2...@gmail.com wrote:
  Note:
 
  1. On f13 based sugar environments (such as soas3, jhbuild-0.88), this
  patch will occasionally cause Browse to crash when closing tabs. This
  probably happens because of a bug [1] (or something very similar to
  this). As a workaround, one can downgrade the cairo package from
  cairo-1.8.10 to cairo-1.8.8-1.fc11 (or upgrade to the latest
  development version 1.9.10-1, though I haven't tested that).
 
  2. This patch doesn't add an entry 'open link in new tab' to the
  context menu. That can come as a separate patch.
 
 
  [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551852
 
  --
  Anish Mangal
  an...@sugarlabs.org

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

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


Re: [Sugar-devel] Sugar with a virtual (onscreen) keyboard

2010-06-29 Thread C. Scott Ananian
On Tue, Jun 22, 2010 at 4:28 PM, Sayamindu Dasgupta sayami...@gmail.com wrote:
 - Ideally something (Gnome I assume?) should trigger the keyboard overlay 
 when you focus on a text field, perhaps with some hints about what the 
 'return' key behaviour should do (or expose a tab key as that is usually the 
 other common text field navigation method). Dismissing the keyboard overlay 
 when a text field is defocused would also be ideal.

 AFAIK, this requires a GTK+ module to be loaded. I'm still trying to
 write a proof of concept implementation of this - it seems that
 there's no documentation anywhere for writing GTK+ modules :-(

Yeah, I gave up and just used LD_PRELOAD when I had this problem.  If
you want to try the quick-and-dirty way for a proof of concept, this
might be handy:
  http://dev.laptop.org/git/users/cscott/journal2/tree/

Do all of firefox/xulrunner/chrome use GTK widgets for text entry?
I'm nervous that some programs might not pop up the keyboard
appropriately.

You could add a gesture to force the keyboard up even for badly
behaved applications.  I think the iPad/iPhone gesture for that is
dragging your finger from the bottom of the screen to the top.
  --scott

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


Re: [Sugar-devel] Schoolserver icon

2010-06-29 Thread C. Scott Ananian
On Tue, Jun 29, 2010 at 7:00 PM, Walter Bender walter.ben...@gmail.com wrote:
 On Tue, Jun 29, 2010 at 6:34 PM, Bernie Innocenti ber...@codewiz.org wrote:
 El Tue, 29-06-2010 a las 02:49 +0100, Gary Martin escribió:

 Here's a few more misc. plays around school building shape.
 Maybe I'm being too literal here and should stray more down
 the server/resource aspect, rather than a school aspect?
 Shout if you think one works better than others (or some
 specific feature):

 For me, the one on the bottom left is the one which better communicates
 the concept of school.

 Might be something we eventually have to localize. None of these look
 anything like the schools I have seen in Nigeria, Thailand, etc.

Most icons don't look anything like what they represent.

I like the dailymotion one; it's consistent with the sugar theme, and
I personally think the bell is an important visual element here.  It's
true, the schools I went to in central america usually had a big steel
pipe the teacher would bang on to summon us, instead of a nice
traditional bell shape, but I think the summon kids to school
element (in some form) is a nice hook for a school icon.

That said, a schoolserver isn't really a school (neither is a floppy
disk a decent representation for 'save'), so an abstract shape would
work just as well.  But if we're going to go for representing a
school, I vote for a bell.
  --scott

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


Re: [Sugar-devel] 0.90 Meeting --- 30. June 2010 (14:00 UTC)

2010-06-29 Thread Bernie Innocenti
El Tue, 29-06-2010 a las 23:12 +0200, Simon Schampijer escribió:

 13:00 UTC is fine with me, let's just move it here.
 
 Sorry for the late notice, I just try to move on as we are already late 
 in the cycle.

Jorge (jasg) and I will be in a car to Caacupé tomorrow at 13:00 UTC.
Perhaps Martin (tch) can attend.

We've accumulated a whopping 48 Sugar patches which we'd like to see
merged into Sugar 0.90 in some form. I'll post a summary ASAP.

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

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


Re: [Sugar-devel] Sugar with a virtual (onscreen) keyboard

2010-06-29 Thread Gary Martin
On 30 Jun 2010, at 00:18, C. Scott Ananian csc...@laptop.org wrote:

 On Tue, Jun 22, 2010 at 4:28 PM, Sayamindu Dasgupta sayami...@gmail.com 
 wrote:
 - Ideally something (Gnome I assume?) should trigger the keyboard overlay 
 when you focus on a text field, perhaps with some hints about what the 
 'return' key behaviour should do (or expose a tab key as that is usually 
 the other common text field navigation method). Dismissing the keyboard 
 overlay when a text field is defocused would also be ideal.
 
 AFAIK, this requires a GTK+ module to be loaded. I'm still trying to
 write a proof of concept implementation of this - it seems that
 there's no documentation anywhere for writing GTK+ modules :-(
 
 Yeah, I gave up and just used LD_PRELOAD when I had this problem.  If
 you want to try the quick-and-dirty way for a proof of concept, this
 might be handy:
  http://dev.laptop.org/git/users/cscott/journal2/tree/
 
 Do all of firefox/xulrunner/chrome use GTK widgets for text entry?
 I'm nervous that some programs might not pop up the keyboard
 appropriately.
 
 You could add a gesture to force the keyboard up even for badly
 behaved applications.  I think the iPad/iPhone gesture for that is
 dragging your finger from the bottom of the screen to the top.

FWIW: There is no global system gesture or button on the iPad for revealing the 
virtual keyboard. Selecting any text widget will reveal it; app developers can 
programatically reveal it (say if they have a custom canvas, our Labyrinth 
activity would fall in this category); a few individual apps from 3rd parties 
(none I can see from Apple) have added their own floating semi transparent 
keyboard icon usually in the far lower right screen corner, in one case (a text 
chat app) this just seems like poor design, in the others I can remember it's 
for cases where there is no sane way to know if the keyboard is needed (VNC, 
RDP clients).

There are no keyboard only iOS devices, and all app developers knew from day 1 
that devices were touch only, so we are in a slightly different position with 
needing to support both key and keyless devices, and activities that were 
written without touch input in mind... So I'm sure we will need a fallback 
button. Sayamindu device frame seems a good choice, once we have a touch 
gesture to reveal the frame that is ;)   

Anyone know what the planned physical buttons may be for the XO-3? If Sugar was 
native on iPad hardware, I'd certainly want the single home button to reveal 
the frame, with perhaps a double click of it switching to the Sugar favourites 
ring view.

Regards,
--Gary 

  --scott
 
 -- 
 ( http://cscott.net/ )
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] 0.90 Meeting --- 30. June 2010 (14:00 UTC)

2010-06-29 Thread James Cameron
On Tue, Jun 29, 2010 at 07:54:33PM -0400, Bernie Innocenti wrote:
 We've accumulated a whopping 48 Sugar patches which we'd like to see
 merged into Sugar 0.90 in some form. I'll post a summary ASAP.

Patches from deployments should certainly be looked at with eagerness.
I'm looking forward to the summary.

14:00 UTC is midnight for me, and I've a meeting at 5:30am.  ;-}

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] F11-0.88 unmerged patches summary

2010-06-29 Thread Bernie Innocenti
Here's an executive summary of all outstanding patches in my queue:

  http://people.sugarlabs.org/bernie/sugar/sugar-0.88-patches/

Most of these have already been submitted to sugar-devel@ or attached
to tickets in bugs.sugarlabs.org.

Some of these patches have outstanding quality issues, but all of
them have been integrated and tested for a while in F11-0.88 and together
contribute to a better Sugar experience.


== Bugfixes ==

 sugar-toolkit/use-set_toolbar_box-in-example-code.patch
 sugar-toolkit/set-default-accelerators-for-Copy-and-Paste-buttons.patch

These have been ack'd by Alsroot. Do we also need Erikos' approval?


 sugar-toolkit/sl1842-notify-red-alert.patch
 sugar/sl1842-journal-error-messates.patch

The review has been swamped by a design discussion. It's not clear what Anish
should do to pass review.


 sugar-toolkit/sl1948-Race-condition-with-name-widget-in-the-activ.patch

This patch has a corner case in which it fails to update the activity
name, but I think it's still a little better than the current behavior.
See ticket for details.


 sugar/add-font-dpi-schema.patch

This is a companion patch of a fix sugar-settings-manager which has
already landed in git. It's needed by xulrunner (Browse).


 sugar/avoid-popping-an-empty-list-in-the-software-updater.patch

Works, but James Cameron's posted a better counter-patch. Merge that one.


 sugar/click-on-journal-icons-with-a-exclusive-time-frame.patch

Requested by the Waveplace folks. Please merge.


 sugar/dynamically-set-number-of-control-panel-columns.patch

The approach to comoute the column width is wrong, but it produces better
results than the current fixed number of columns. So, for now, I'm keeping it
around.


 sugar/fix-duplication-of-OLPC-mesh-icons.patch
 
sugar/fix-for-file-list-sorting-for-FAT32-formatted-flash-drives-in-journal.patch

All the above have no issues to my knowledge and should be merged.


 sugar/use-the-spanish-verb-quitar-for-unmounting-devices.patch

Better-than-nothing patch, but the real fix would require a gettext
kludge in the code (see http://bugs.python.org/issue2504 )



== Minor bugfixes ==

 sugar-toolkit/fix-two-trivial-shell-log-warnings.patch

Reviewed on sugar-devel, should be merged.


 sugar-toolkit/sl1876.patch

Patch is in comment 2 of the ticket. It has been overlooked becuase
the ticket had also an attachment.

 sugar/fix-name-clash-set_state.patch

Should be merged.


== New Features ==

 sugar/backup-0001-Volumes-Backup-and-Restore.patch
 sugar/backup-0002-Journal-XS-backup-and-restore.patch

There are concerns about restore deleting new entries since the
last backup. I agree, but since nobody seems to have the time to
implement and test a more sophisticated procedure, at this time
this is the best restore feature we have for Sugar.


== Cleanups ==

 sugar/simplify-the-definition-of-UpdateModel._bundles_to_check..patch

Merge.

 sugar-toolkit/remove-incomplete-MANIFEST-support.patch

The incomplete design and implementation of MANIFEST files has been laying
around for 3 years. We can choose to clean it up now, or let it bitrot for
another 3 years.


== Experimental patches ==

 sugar/set-default-scaling-to-100.patch

This is only required on the XO. We should really autodetect this.


 sugar/cpu-and-memory-resource-indicator.patch

Not yet reviewed on sugar-de...@. Not even tested by us yet.


 sugar-artwork/sl2006-icons-for-touchpad-panel.patch
 sugar/sl2006-touchpad-section-for-control-panel.patch
 sugar/sl2006-file-exists-check.patch

Walter's XO-1 touchpad control panel. For me, it could already go in, but it
would be nice to add a global shortcut such as alt-shift-t, and maybe move the
functionality to a frame icon, for fast switching.


 sugar-toolkit/change-keep-string-to-keep-a-copy.patch

Several alternatives have been suggested on the list, but nobody implemented
them, so this one still stands.


 sugar-toolkit/kill-the-delayed-menus-for-good.patch

This change has been at the center of a huge design / UX / testing flame war a
while ago. I've merged it to observe user reactions, so
hopefully we can have a polite discussion based on some real data.


 sugar/backup-0003-Journal-documents-volume-button.patch

We no longer need this feature since we decided to disable Gnome, but other
deployments may find it useful. (but journal crashes when you drop files on
the icon)


== Patches with outstanding issues ==

 sugar-datastore/0001-Add-ctime-and-timestamp-properties-to-the-index.patch
 sugar-datastore/0002-Add-migration-from-DS-v0-code-for-the-new-properties.patch
 
sugar-datastore/0003-increment-CURRENT_LAYOUT_VERSION-to-trigger-an-index-rebuild.patch
 sugar/sizelist--cover-letter.patch
 sugar/sizelist-0001-Journal-Retrieve-filesize-from-the-datastore.patch
 sugar/sizelist-0002-Add-a-filesize-column-to-the-journal-list-model.patch
 sugar/sizelist-0003-Journaltoolbox-Add-add_separator-method-for-convenie.patch
 

Re: [Sugar-devel] 0.90 Meeting --- 30. June 2010 (14:00 UTC)

2010-06-29 Thread Bernie Innocenti
El Wed, 30-06-2010 a las 11:37 +1000, James Cameron escribió:
 On Tue, Jun 29, 2010 at 07:54:33PM -0400, Bernie Innocenti wrote:
  We've accumulated a whopping 48 Sugar patches which we'd like to see
  merged into Sugar 0.90 in some form. I'll post a summary ASAP.
 
 Patches from deployments should certainly be looked at with eagerness.
 I'm looking forward to the summary.

Posted. Let me know if I overlooked any patch you'd recommend me to
have.


 14:00 UTC is midnight for me, and I've a meeting at 5:30am.  ;-}

...and I complain when we have a meeting a 9:30am!

-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs   - http://sugarlabs.org/

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


Re: [Sugar-devel] [PATCH] Journal Volumes Backup and Restore

2010-06-29 Thread James Cameron
On Tue, Jun 29, 2010 at 02:56:57PM -0400, Martin Abente wrote:
 The backup and restore script are just a little part of this whole
 patch, and it would be _very_ helpful if someone could actually test
 it and review the code.

I've reviewed it just now.  You have my support for merging; because the
situation is still greatly improved over what was present previously.

Reviewed-by: James Cameron qu...@laptop.org

-- 
James Cameron
http://quozl.linux.org.au/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel