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

2012-10-03 Thread Peter Robinson
Hi Agustin,

I currently see an issue building it. The logs are below. I believe
Walter has seen this issue before so he might be able to assist. I
think there's something that needs to be adjusted in bundlebuilder for
a gtk3 activity

http://kojipkgs.fedoraproject.org//work/tasks/1664/4551664/build.log

Regards,
Peter

On Tue, Oct 2, 2012 at 11:30 PM, Agustin Zubiaga Sanchez
a...@sugarlabs.org wrote:
 Hi Chris,
 For me is a pleasure to contribute to the sugar development, is a pleasure
 to program with the people who made possible for me to enter the world of
 the computers :)
 I received my XO when I was 9, at the primary school and two years later I
 started python programming and now it is my favourite hobbie.

 Thanks for everything!

 Regards,
 aguz


 2012/10/2 Chris Leonard cjlhomeaddr...@gmail.com

 On Tue, Oct 2, 2012 at 11:02 AM, Manuel Quiñones ma...@laptop.org wrote:
  2012/10/2 Agustin Zubiaga Sanchez a...@sugarlabs.org:
  Mhh, the server don't allow me to put the tarball.
 
  Please ask the infra team so you can do it by yourself the next time.
 

 Agustin,

 Amidst the discussion of how to submit new versions so that it is
 seamlessly farmed out for packaging, etc.  I wanted to pause and thank
 you for creating an improved version of ImageViewer.

 I think there is a certain understandable tendency among people as
 busy and productive as our Sugar Developers to forget that it can take
 a little time for a new contributor to get indoctrinated in to the way
 we do things, but as you also see, there are people who are more than
 eager to help teach you the ropes.

 Thanks for your contributions.

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



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

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


[Sugar-devel] First release of SemanticXO [laptop.org #67749]

2012-10-03 Thread Christophe Guéret
Dear all,

There is a first feature complete release of SemanticXO available for
testing, along with two demo activities.
I just published a description of the project there
http://worldwidesemanticweb.wordpress.com/projects/semanticxo/

The code has been tested to work correctly on three XO-1 running 12.1.0.
Once SemanticXO is installed, it is possible to browse the content of a
Journal remotely and also to send asynchronous messages across the XOs
(even if the messaging activity is closed).

As usual, I would appreciate a lot your feedback. Especially considering
the usefulness of the entire thing.
Beyond the two very simple demo activity shipped with SemanticXO, I would
be curious to hear from other possible use-cases for it.

Cheers,
Christophe

-- 
Dr. Christophe Guéret (christophe.gue...@dans.knaw.nl)
http://www.few.vu.nl/~cgueret/
http://semweb4u.wordpress.com/
Postdoctoral researcher working on CEDAR (http://cedar-project.nl/)
Royal Netherlands Academy of Arts and Sciences
Data Archiving and Networked Services (DANS)
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2012-10-03 Thread Gonzalo Odiard
Hmm, setup.py was not ported to gtk3 :(

Gonzalo

On Wed, Oct 3, 2012 at 3:48 AM, Peter Robinson pbrobin...@gmail.com wrote:

 Hi Agustin,

 I currently see an issue building it. The logs are below. I believe
 Walter has seen this issue before so he might be able to assist. I
 think there's something that needs to be adjusted in bundlebuilder for
 a gtk3 activity

 http://kojipkgs.fedoraproject.org//work/tasks/1664/4551664/build.log

 Regards,
 Peter

 On Tue, Oct 2, 2012 at 11:30 PM, Agustin Zubiaga Sanchez
 a...@sugarlabs.org wrote:
  Hi Chris,
  For me is a pleasure to contribute to the sugar development, is a
 pleasure
  to program with the people who made possible for me to enter the world of
  the computers :)
  I received my XO when I was 9, at the primary school and two years later
 I
  started python programming and now it is my favourite hobbie.
 
  Thanks for everything!
 
  Regards,
  aguz
 
 
  2012/10/2 Chris Leonard cjlhomeaddr...@gmail.com
 
  On Tue, Oct 2, 2012 at 11:02 AM, Manuel Quiñones ma...@laptop.org
 wrote:
   2012/10/2 Agustin Zubiaga Sanchez a...@sugarlabs.org:
   Mhh, the server don't allow me to put the tarball.
  
   Please ask the infra team so you can do it by yourself the next time.
  
 
  Agustin,
 
  Amidst the discussion of how to submit new versions so that it is
  seamlessly farmed out for packaging, etc.  I wanted to pause and thank
  you for creating an improved version of ImageViewer.
 
  I think there is a certain understandable tendency among people as
  busy and productive as our Sugar Developers to forget that it can take
  a little time for a new contributor to get indoctrinated in to the way
  we do things, but as you also see, there are people who are more than
  eager to help teach you the ropes.
 
  Thanks for your contributions.
 
  cjl
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 
 
 
  ___
  Sugar-devel mailing list
  Sugar-devel@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/sugar-devel
 

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


[Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Simon Schampijer

Hi,

in case not everybody has been aware of this, GStreamer 1.0.0 has now 
been officially released [1], and it has been picked up in Fedora [2].


Regards,
   Simon

[1] 
http://lists.freedesktop.org/archives/gstreamer-announce/2012-September/000265.html

[2] http://koji.fedoraproject.org/koji/packageinfo?packageID=14455
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


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

2012-10-03 Thread Simon Schampijer

On 10/03/2012 12:08 PM, Gonzalo Odiard wrote:

Hmm, setup.py was not ported to gtk3 :(

Gonzalo


Hopefully going through the steps using the porting guide [1] helps to 
avoid that.


Regards,
  Simon

[1] 
http://wiki.sugarlabs.org/go/Features/GTK3/Porting#Port_the_activity_from_GTK2_to_GTK3





On Wed, Oct 3, 2012 at 3:48 AM, Peter Robinson pbrobin...@gmail.com wrote:


Hi Agustin,

I currently see an issue building it. The logs are below. I believe
Walter has seen this issue before so he might be able to assist. I
think there's something that needs to be adjusted in bundlebuilder for
a gtk3 activity

http://kojipkgs.fedoraproject.org//work/tasks/1664/4551664/build.log

Regards,
Peter

On Tue, Oct 2, 2012 at 11:30 PM, Agustin Zubiaga Sanchez
a...@sugarlabs.org wrote:

Hi Chris,
For me is a pleasure to contribute to the sugar development, is a

pleasure

to program with the people who made possible for me to enter the world of
the computers :)
I received my XO when I was 9, at the primary school and two years later

I

started python programming and now it is my favourite hobbie.

Thanks for everything!

Regards,
aguz


2012/10/2 Chris Leonard cjlhomeaddr...@gmail.com


On Tue, Oct 2, 2012 at 11:02 AM, Manuel Quiñones ma...@laptop.org

wrote:

2012/10/2 Agustin Zubiaga Sanchez a...@sugarlabs.org:

Mhh, the server don't allow me to put the tarball.


Please ask the infra team so you can do it by yourself the next time.



Agustin,

Amidst the discussion of how to submit new versions so that it is
seamlessly farmed out for packaging, etc.  I wanted to pause and thank
you for creating an improved version of ImageViewer.

I think there is a certain understandable tendency among people as
busy and productive as our Sugar Developers to forget that it can take
a little time for a new contributor to get indoctrinated in to the way
we do things, but as you also see, there are people who are more than
eager to help teach you the ropes.

Thanks for your contributions.

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




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







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



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


Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Walter Bender
On Wed, Oct 3, 2012 at 8:53 AM, Simon Schampijer si...@schampijer.de wrote:
 Hi,

 in case not everybody has been aware of this, GStreamer 1.0.0 has now been
 officially released [1], and it has been picked up in Fedora [2].

Will is be part of the official F18 release?

-walter

 Regards,
Simon

 [1]
 http://lists.freedesktop.org/archives/gstreamer-announce/2012-September/000265.html
 [2] http://koji.fedoraproject.org/koji/packageinfo?packageID=14455
 ___
 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] GStreamer 1.0.0 has been released

2012-10-03 Thread Simon Schampijer

On 10/03/2012 03:17 PM, Manuel Kaufmann wrote:

On Wed, Oct 3, 2012 at 9:53 AM, Simon Schampijer si...@schampijer.de wrote:

in case not everybody has been aware of this, GStreamer 1.0.0 has now been
officially released [1], and it has been picked up in Fedora [2].


Great!

  * What's about gstreamer plugins (ugly, bad, good, etc)?


Same status: 
http://koji.fedoraproject.org/koji/search?match=globtype=packageterms=gstreamer1*



  * Should we remove gstreamer 1.0 from sugar-build and install it via yum?


Are you on F18? It does only make sense there.

Simon


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


Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Simon Schampijer

On 10/03/2012 02:59 PM, Walter Bender wrote:

On Wed, Oct 3, 2012 at 8:53 AM, Simon Schampijer si...@schampijer.de wrote:

Hi,

in case not everybody has been aware of this, GStreamer 1.0.0 has now been
officially released [1], and it has been picked up in Fedora [2].


Will is be part of the official F18 release?


It has been build for F18. I am quite sure it will be included. Peter 
will be able to give the official underline to my statement...


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


Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Peter Robinson
On Wed, Oct 3, 2012 at 2:24 PM, Simon Schampijer si...@schampijer.de wrote:
 On 10/03/2012 02:59 PM, Walter Bender wrote:

 On Wed, Oct 3, 2012 at 8:53 AM, Simon Schampijer si...@schampijer.de
 wrote:

 Hi,

 in case not everybody has been aware of this, GStreamer 1.0.0 has now
 been
 officially released [1], and it has been picked up in Fedora [2].


 Will is be part of the official F18 release?


 It has been build for F18. I am quite sure it will be included. Peter will
 be able to give the official underline to my statement...

Yes it will be part of the official F-18 release. It's a dependency
requirement for gnome 3.6 (and sugar 0.98 due to the requirement for
gobject-introspection).

Ultimately I'm sure we'd like to drop 0.10 if at all possible just so
we don't need to ship two copies and any of the deps that go with it.

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


Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Manuel Kaufmann
On Wed, Oct 3, 2012 at 10:51 AM, Peter Robinson pbrobin...@gmail.com wrote:
 Ultimately I'm sure we'd like to drop 0.10 if at all possible just so
 we don't need to ship two copies and any of the deps that go with it.

I'm working on the port of Jukebox to Gst 1.0 and I have it quite
stable but I'm doing some of my tests on my F17 Desktop with
sugar-build because I'm not sure how to install Gst1.0 with ugly
plugins and video support(*) on XO 1.75 with 13.1.0.

(*) Martin and Jon told me that video support is not available yet for 13.1.0

-- 
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-03 Thread Martin Langhoff
On Wed, Oct 3, 2012 at 6:52 AM, Manuel Kaufmann humi...@gmail.com wrote:
 On Tue, Oct 2, 2012 at 5:35 PM, Martin Langhoff
 martin.langh...@gmail.com wrote:
 Actually, the answer is to avoid datetime. It's fine for high level
 work; when you care about times defined as epoch values, you

 Yes, you are right. But datetime is much more elegant

Not at all. Ignoring the computer is not elegance.

In this case, datetime is horrible. If you are writing a calendar
(say, google calendar) yes, datetime is your friend.


 Anyway, I think we must add this function inside a GObject.idle_add()

Note that this function needs to run only _once_ and it is extremely cheap/fast.

Large files do not take a long time to be removed. Try it.



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


[Sugar-devel] ImageViewer (gtk3) traceback

2012-10-03 Thread Daniel Narvaez
Hello,

I added the gtk3 branch of the ImageViewer activity to buildbot but
it's failing to show the file picker, which breaks our UI test. I get
the following traceback

Traceback (most recent call last):
  File 
/home/dnarvaez/Development/sugar-build/master/install/share/sugar/activities/ImageViewer.activity/ImageViewerActivity.py,
line 266, in _show_picker_cb
what_filter=mime.GENERIC_TYPE_IMAGE)
TypeError: __init__() takes at most 3 arguments (5 given)

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


Re: [Sugar-devel] [PATCH v2 Browse] Remove temporary downloaded (cancelled) files SL #3973

2012-10-03 Thread Manuel Kaufmann
On Wed, Oct 3, 2012 at 12:08 PM, Martin Langhoff
martin.langh...@gmail.com wrote:
 Not at all. Ignoring the computer is not elegance.

OK. I will send a new version of this patch with all the things that
we were discussing.

-- 
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Peter Robinson
On Wed, Oct 3, 2012 at 3:39 PM, Manuel Kaufmann humi...@gmail.com wrote:
 On Wed, Oct 3, 2012 at 10:51 AM, Peter Robinson pbrobin...@gmail.com wrote:
 Ultimately I'm sure we'd like to drop 0.10 if at all possible just so
 we don't need to ship two copies and any of the deps that go with it.

 I'm working on the port of Jukebox to Gst 1.0 and I have it quite
 stable but I'm doing some of my tests on my F17 Desktop with
 sugar-build because I'm not sure how to install Gst1.0 with ugly
 plugins and video support(*) on XO 1.75 with 13.1.0.

 (*) Martin and Jon told me that video support is not available yet for 13.1.0

You can still port to gstreamer 1.0 on 13.1.0 and just test with non
ugly codecs (vorbis / webm etc).

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


Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Martin Langhoff
On Wed, Oct 3, 2012 at 11:54 AM, Peter Robinson pbrobin...@gmail.com wrote:
 You can still port to gstreamer 1.0 on 13.1.0 and just test with non
 ugly codecs (vorbis / webm etc).

Yep. Work now with the ugly codecs. Once vmeta is ready we'll have to
retest  debug, as it seems to be more fragile.

Extra work :-(



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


Re: [Sugar-devel] GStreamer 1.0.0 has been released

2012-10-03 Thread Peter Robinson
On Oct 3, 2012 6:56 PM, Martin Langhoff martin.langh...@gmail.com wrote:

 On Wed, Oct 3, 2012 at 11:54 AM, Peter Robinson pbrobin...@gmail.com
wrote:
  You can still port to gstreamer 1.0 on 13.1.0 and just test with non
  ugly codecs (vorbis / webm etc).

 Yep. Work now with the ugly codecs. Once vmeta is ready we'll have to
 retest  debug, as it seems to be more fragile.

 Extra work :-(

Not really as non vmeta support is needed on x86 co machines

Peter


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


Re: [Sugar-devel] ImageViewer (gtk3) traceback

2012-10-03 Thread Agustin Zubiaga Sanchez
Hi Daniel,
The bug is fixed in the repository [1]
Do you want to have a new release?

[1] git.sugarlabs.org/imageviewer/mainline/commit/7591e459

Regards,
aguz

2012/10/3 Daniel Narvaez dwnarv...@gmail.com

 Hello,

 I added the gtk3 branch of the ImageViewer activity to buildbot but
 it's failing to show the file picker, which breaks our UI test. I get
 the following traceback

 Traceback (most recent call last):
   File
 /home/dnarvaez/Development/sugar-build/master/install/share/sugar/activities/ImageViewer.activity/ImageViewerActivity.py,
 line 266, in _show_picker_cb
 what_filter=mime.GENERIC_TYPE_IMAGE)
 TypeError: __init__() takes at most 3 arguments (5 given)

 --
 Daniel Narvaez
 ___
 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] ImageViewer (gtk3) traceback

2012-10-03 Thread Daniel Narvaez
That was fast :) Just tested and it works now. Thanks a lot!

I don't need a release, I'm working from git.

On 3 October 2012 18:43, Agustin Zubiaga Sanchez a...@sugarlabs.org wrote:
 Hi Daniel,
 The bug is fixed in the repository [1]
 Do you want to have a new release?

 [1] git.sugarlabs.org/imageviewer/mainline/commit/7591e459

 Regards,
 aguz

 2012/10/3 Daniel Narvaez dwnarv...@gmail.com

 Hello,

 I added the gtk3 branch of the ImageViewer activity to buildbot but
 it's failing to show the file picker, which breaks our UI test. I get
 the following traceback

 Traceback (most recent call last):
   File
 /home/dnarvaez/Development/sugar-build/master/install/share/sugar/activities/ImageViewer.activity/ImageViewerActivity.py,
 line 266, in _show_picker_cb
 what_filter=mime.GENERIC_TYPE_IMAGE)
 TypeError: __init__() takes at most 3 arguments (5 given)

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





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


[Sugar-devel] [PATCH shell] Get back spacing between activity icon and hover border

2012-10-03 Thread Manuel Quiñones
size_request is deprecated and get_preferred_size should be used
instead.  We override the methods of EventIcon get_preferred_width and
get_preferred_height because they are simpler to use from python, no
need to make a requisition object, just return integers.

Signed-off-by: Manuel Quiñones ma...@laptop.org
---
 src/jarabe/desktop/favoriteslayout.py |  7 ---
 src/jarabe/desktop/favoritesview.py   | 13 +
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/src/jarabe/desktop/favoriteslayout.py 
b/src/jarabe/desktop/favoriteslayout.py
index a367ab6..e939d11 100644
--- a/src/jarabe/desktop/favoriteslayout.py
+++ b/src/jarabe/desktop/favoriteslayout.py
@@ -377,13 +377,14 @@ class RingLayout(ViewLayout):
 x, y = self._calculate_position(radius, icon_size, n,
 len(children), allocation.width,
 allocation.height)
-child.size_request()
 child.set_size(icon_size)
+new_width = child.get_preferred_width()[0]
+new_height = child.get_preferred_height()[0]
 child_allocation = Gdk.Rectangle()
 child_allocation.x = allocation.x + x
 child_allocation.y = allocation.y + y
-child_allocation.width = icon_size
-child_allocation.height = icon_size
+child_allocation.width = new_width
+child_allocation.height = new_height
 child.size_allocate(child_allocation)
 
 def compare_activities(self, icon_a, icon_b):
diff --git a/src/jarabe/desktop/favoritesview.py 
b/src/jarabe/desktop/favoritesview.py
index 17d014e..6d0da17 100644
--- a/src/jarabe/desktop/favoritesview.py
+++ b/src/jarabe/desktop/favoritesview.py
@@ -443,10 +443,15 @@ class ActivityIcon(EventIcon):
  allocation.width,
  allocation.height)
 
-def do_size_request(self, req):
-EventIcon.do_size_request(self, req)
-req.height += ActivityIcon._BORDER_WIDTH * 2
-req.width += ActivityIcon._BORDER_WIDTH * 2
+def do_get_preferred_width(self):
+width = EventIcon.do_get_preferred_width(self)[0]
+width += ActivityIcon._BORDER_WIDTH * 2
+return (width, width)
+
+def do_get_preferred_height(self):
+height = EventIcon.do_get_preferred_height(self)[0]
+height += ActivityIcon._BORDER_WIDTH * 2
+return (height, height)
 
 def __button_release_event_cb(self, icon, event):
 self._activate()
-- 
1.7.11.4

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


[Sugar-devel] [PATCH shell 2/2] Home view: add active state to activity icons for click and tap feedback

2012-10-03 Thread Manuel Quiñones
This makes the active state styleable in the theme.  When the icon is
pressed, the state is changed to active.

Also add a background render to the draw method, to make the backgroud
styleable too.

Signed-off-by: Manuel Quiñones ma...@laptop.org
---
 src/jarabe/desktop/favoritesview.py | 30 ++
 1 file changed, 26 insertions(+), 4 deletions(-)

diff --git a/src/jarabe/desktop/favoritesview.py 
b/src/jarabe/desktop/favoritesview.py
index 6d0da17..c5ffdd3 100644
--- a/src/jarabe/desktop/favoritesview.py
+++ b/src/jarabe/desktop/favoritesview.py
@@ -357,8 +357,13 @@ class ActivityIcon(EventIcon):
 self._journal_entries = []
 self._resume_mode = True
 
+self._prelight = False
+self._active = False
+
 self.connect('enter-notify-event', self.__enter_notify_event_cb)
 self.connect('leave-notify-event', self.__leave_notify_event_cb)
+self.connect('button-press-event', self.__press_cb)
+self.connect('button-release-event', self.__release_cb)
 self.connect_after('button-release-event',
self.__button_release_event_cb)
 
@@ -429,20 +434,37 @@ class ActivityIcon(EventIcon):
 self._resume(metadata)
 
 def __enter_notify_event_cb(self, icon, event):
-self.set_state(Gtk.StateFlags.PRELIGHT)
+self._prelight = Gtk.StateFlags.PRELIGHT
+self._update_states()
 
 def __leave_notify_event_cb(self, icon, event):
-self.set_state(Gtk.StateFlags.NORMAL)
+self._prelight = False
+self._update_states()
 
-def do_draw(self, cr):
-EventIcon.do_draw(self, cr)
+def __press_cb(self, icon, event):
+self._active = Gtk.StateFlags.ACTIVE
+self._update_states()
+
+def __release_cb(self, icon, event):
+self._active = False
+self._update_states()
 
+def _update_states(self):
+state = self._active if self._active else self._prelight
+self.set_state(state)
+
+def do_draw(self, cr):
 allocation = self.get_allocation()
 context = self.get_style_context()
+Gtk.render_background(context, cr, 0, 0,
+  allocation.width,
+  allocation.height)
 Gtk.render_frame(context, cr, 0, 0,
  allocation.width,
  allocation.height)
 
+EventIcon.do_draw(self, cr)
+
 def do_get_preferred_width(self):
 width = EventIcon.do_get_preferred_width(self)[0]
 width += ActivityIcon._BORDER_WIDTH * 2
-- 
1.7.11.4

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


[Sugar-devel] [PATCH artwork] Style active state of activities in home view for tap and click feedback

2012-10-03 Thread Manuel Quiñones
Add a light grey background, which is the same size as the grey
outline that appears when the icon is hovered.

Also, make the rectangle corners a bit more round.

Signed-off-by: Manuel Quiñones ma...@laptop.org
---
 gtk3/theme/gtk-widgets.css.em | 15 ---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
index b9a39d5..b596764 100644
--- a/gtk3/theme/gtk-widgets.css.em
+++ b/gtk3/theme/gtk-widgets.css.em
@@ -687,11 +687,20 @@ SugarFrameWindow {
 
 /* Sugar Favorite Activity icon */
 
+SugarFavoriteActivityIcon {
+border-color: transparent;
+border-radius: $(4 * thickness)px;
+border-width: 2px;
+border-style: solid;
+}
+
 SugarFavoriteActivityIcon:prelight {
 border-color: @selection_grey;
-border-radius: $(2 * thickness)px;
-border-width: $(thickness)px;
-border-style: solid;
+}
+
+SugarFavoriteActivityIcon:active {
+border-color: @text_field_grey;
+background-color: @text_field_grey;
 }
 
 /* Text cursor handles */
-- 
1.7.11.4

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


Re: [Sugar-devel] [PATCH artwork] Style active state of activities in home view for tap and click feedback

2012-10-03 Thread Martin Langhoff
On Wed, Oct 3, 2012 at 4:53 PM, Manuel Quiñones ma...@laptop.org wrote:
 Add a light grey background, which is the same size as the grey
 outline that appears when the icon is hovered.

Yes! This stuff is needed. Touch feedback needs to be bright, clear,
and clearly larger than your finger so that you see it.




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


[Sugar-devel] Gst1.0 plugins in sugar-build

2012-10-03 Thread Manuel Kaufmann
Hello,

I'd like to comment that there are many Gst 1.0 plugin decoders that
are not built because of missing dependencies. I had to install
libmad-devel.x86_64 (on my F17) to be able to play MP3 files from
Jukebox.

Daniel, can be this package added as a dependency for sugar-build?

Cheers,

-- 
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] Gst1.0 plugins in sugar-build

2012-10-03 Thread Peter Robinson
On Wed, Oct 3, 2012 at 10:01 PM, Manuel Kaufmann humi...@gmail.com wrote:
 Hello,

 I'd like to comment that there are many Gst 1.0 plugin decoders that
 are not built because of missing dependencies. I had to install
 libmad-devel.x86_64 (on my F17) to be able to play MP3 files from
 Jukebox.

We've always been pretty cleat about not supporting non open codecs.
libmad isn't in mainline Fedora so it would be pulled from a third
party repo. I'm pretty sure that is the case with other distros as
well.

The advantage of gstreamer is you can add extra codecs easily by just
installing packages and without recompiling anything and the
functionality should just work without any changes in the application
so I'm not sure why it's a needed requirement.

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


Re: [Sugar-devel] [PATCH artwork] Style active state of activities in home view for tap and click feedback

2012-10-03 Thread Manuel Quiñones
2012/10/3 Martin Langhoff martin.langh...@gmail.com:
 On Wed, Oct 3, 2012 at 4:53 PM, Manuel Quiñones ma...@laptop.org wrote:
 Add a light grey background, which is the same size as the grey
 outline that appears when the icon is hovered.

 Yes! This stuff is needed. Touch feedback needs to be bright, clear,
 and clearly larger than your finger so that you see it.

Yes we need this in the other zoom views too.  I'm trying to enlarge
the feedback area right now.  Here are screengrabs of the spiral with
the two patches applied, for mouse hover and tap-click:

http://dev.laptop.org/~manuq/shell-port/icon-hover.png
http://dev.laptop.org/~manuq/shell-port/icon-tap.png

And enlarging a bit:

http://dev.laptop.org/~manuq/shell-port/icon-hover2.png
http://dev.laptop.org/~manuq/shell-port/icon-tap2.png

Note icons displace a bit, must be fixed.  This is done changing the
numbers here:

--- a/src/jarabe/desktop/favoritesview.py
+++ b/src/jarabe/desktop/favoritesview.py
@@ -467,12 +467,12 @@ class ActivityIcon(EventIcon):

 def do_get_preferred_width(self):
 width = EventIcon.do_get_preferred_width(self)[0]
-width += ActivityIcon._BORDER_WIDTH * 2
+width += ActivityIcon._BORDER_WIDTH * 5
 return (width, width)

 def do_get_preferred_height(self):
 height = EventIcon.do_get_preferred_height(self)[0]
-height += ActivityIcon._BORDER_WIDTH * 2
+height += ActivityIcon._BORDER_WIDTH * 5
 return (height, height)

 def __button_release_event_cb(self, icon, event):


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


Re: [Sugar-devel] Gst1.0 plugins in sugar-build

2012-10-03 Thread Manuel Kaufmann
On Wed, Oct 3, 2012 at 6:08 PM, Peter Robinson pbrobin...@gmail.com wrote:
 The advantage of gstreamer is you can add extra codecs easily by just
 installing packages and without recompiling anything and the
 functionality should just work without any changes in the application
 so I'm not sure why it's a needed requirement.

That's why I wasn't sure. This library is not a dependency but
gstreamer 1.0 is not as well and it's inside sugar-build. That's why I
was asking.

-- 
Kaufmann Manuel
Blog: http://humitos.wordpress.com/
Porfolio: http://fotos.mkaufmann.com.ar/
PyAr: http://www.python.com.ar/
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


Re: [Sugar-devel] [PATCH artwork] Style active state of activities in home view for tap and click feedback

2012-10-03 Thread Martin Langhoff
On Wed, Oct 3, 2012 at 5:12 PM, Manuel Quiñones ma...@laptop.org wrote:
 And enlarging a bit:

 http://dev.laptop.org/~manuq/shell-port/icon-hover2.png
 http://dev.laptop.org/~manuq/shell-port/icon-tap2.png

I am partial towards the enlarged ones :-)

cheers,



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