Re: [Sugar-devel] [FEATURE] Add can share/or not information to activities
El 16/11/11 22:42, James Cameron escribió: On Wed, Nov 16, 2011 at 07:11:03AM -0300, Gonzalo Odiard wrote: May be is a good idea use max_participants in the .info file, allowing us to limit the number of participants if needed, ... I agree, since max_participants is already known, the name should be used in the .info file. and set the property in the sugar.activity class. Yes, and allow the activity to change it. And then print a warning if the activity changes it from what the .info file said it could be. Thanks for all the great feedback! Looking at my proposal, yes it would make sense to have one option set in the activity.info file that handles max_participants for the shell (can I invite to) and toolbar (can I share this activity). Both cases are booleans, can I or can I not. However max_participants has a deeper meaning, how many persons can collaborate in that activity. Can be a technical reason (activity crashes for more than 5) or because not more persons can collaborate on that (2player game like Go or Chess). For the latter there is the concept of watching as well, so even only 2 can play, joining might be reasonable for a third person wanting to watch. Max participants might be as well relevant for a game like Memorize, a 4x4 game with 8 pairs is not very attractive for more than 8 players (as well we can have watchers here). This is a value that would be passed more on run-time than on activity creation, depending on the situation. There are some more interesting thoughts in this thread [1]. As you see, there have been some thoughts on the topic already :) As we are early in the cycle, I think we can think a bit more about it and flash out the use cases. Regards, Simon [1] http://lists.sugarlabs.org/archive/sugar-devel/2009-August/017656.html ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] sugar theme?
Dextrose version has got contrast theme for accessibility options. You can see source: http://download.sugarlabs.org/dextrose/testing/dxo2/rpms/source/ sugar, sugar-toolkit and sugar-artwork Regards, Esteban 2011/11/16 Erik Blankinship er...@mediamods.com Thanks Tony I am trying to do two things: (1) I want to theme sugar to look differently. Wondering if I can use existing themes from gnome. (2) I am trying to make my gnome environment look like Sugar. Erik On Wed, Nov 16, 2011 at 2:58 PM, fors...@ozonline.com.au wrote: Does this help? http://wiki.sugarlabs.org/go/Human_Interface_Guidelines Tony Is Sugar themed in this way? http://art.gnome.org/themes/metacity (understanding that mutter will make this obsolete, what I am trying to figure out is...) Where is the equivalent description of the look and feel that Activity developers can query for doing custom painting using sugar themed graphics and colors? ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel -- Esteban Arias Investigación y Desarrollo - Centro Ceibal para el Apoyo a la Educación de la Niñez y la Adolescencia - Plan Ceibal Avda. Italia 6201 - Edificio Los Ceibos Montevideo - Uruguay. Tel.: 2601.57.73 Interno 2228 E-mail : ear...@plan.ceibal.edu.uy ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Stepping down
This email is long overdue. As you might have noticed, I haven't contributed to Browse/Sugar in a long time. It was partly frustration with the technologies (GTK3/introspection migration, I hate you), partly lack of money; but mostly it was lack of spare time. I still don't have any more free time to devote to Sugar development now, so I wanted to let everyone that hasn't already noticed that I can't be depended on to maintain Browse. Also, I won't be paying much attention to the mailing list(s). Sugar was my gateway to real software development and I'd like to thank everyone that was patient with me and helped me along. I still like Sugar, and I'm not going anywhere, so if anyone wants to contact me about anything don't hesitate. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Stepping down
Thanks Lucian for all your work, and the best luck in your projects! Gonzalo On Thu, Nov 17, 2011 at 9:05 AM, Lucian Branescu lucian.brane...@gmail.comwrote: This email is long overdue. As you might have noticed, I haven't contributed to Browse/Sugar in a long time. It was partly frustration with the technologies (GTK3/introspection migration, I hate you), partly lack of money; but mostly it was lack of spare time. I still don't have any more free time to devote to Sugar development now, so I wanted to let everyone that hasn't already noticed that I can't be depended on to maintain Browse. Also, I won't be paying much attention to the mailing list(s). Sugar was my gateway to real software development and I'd like to thank everyone that was patient with me and helped me along. I still like Sugar, and I'm not going anywhere, so if anyone wants to contact me about anything don't hesitate. ___ 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] Stepping down
On Thu, Nov 17, 2011 at 7:05 AM, Lucian Branescu lucian.brane...@gmail.com wrote: This email is long overdue. As you might have noticed, I haven't contributed to Browse/Sugar in a long time. It was partly frustration with the technologies (GTK3/introspection migration, I hate you), partly lack of money; but mostly it was lack of spare time. I still don't have any more free time to devote to Sugar development now, so I wanted to let everyone that hasn't already noticed that I can't be depended on to maintain Browse. Also, I won't be paying much attention to the mailing list(s). Sugar was my gateway to real software development and I'd like to thank everyone that was patient with me and helped me along. I still like Sugar, and I'm not going anywhere, so if anyone wants to contact me about anything don't hesitate. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel It was a pleasure to mentor you so many years ago in GSOC. Stay in touch. -walter -- 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] error building etoys in a debian distro
On Wed, Nov 16, 2011 at 8:09 AM, Jonas Smedegaard d...@jones.dk wrote: Hi Alvar, Ohh, silly me: I misread the version number in your first post and thought your interest was in that old branch of Sugar. Debian maintains packages for newer branches of Sugar as well. The plan currently is to release 0.84, 0.88 and 0.94 with next stable Debian. good news! I wholeheartedly agree. Someone needs to do it, though. :-) I work on it for Debian, and your help is dearly appreciated! You are helping already: Knowing that someone out there appreciates the Sugar packages and are in need of them kept up-to-date helps me prioritize that work over other of my many pet projects in Debian. (lack of steady updates to Sugar in Debian is an indication that a) I am doing most work alone, and b) I feel that noone cares so have poured more love in other projects) good observations: in this case, you don't have to feel alone no more :D i'm learning to help to the community and the manteiners Would be awesome if you could see the benefit of joining us in improving those packages distributed globally instead of locally struggling with jh-build. That's the idea, i get my degree of teacher in the next month and i will put more time learning debian and the way to keep sugar updated in debian. Great! If you can coach me, I have tree monts to doit. I'd be delighted to couch you! I am travelling currently, so expect me to be slow in responding and often too distracted to dive deep into problems you may uncover. If curious, this is my journey: http://wiki.jones.dk/DebianAsia2011 Excelente! That's a really nice trip! Don't worry about the time... is on our side now :D I create a git repository (remeber i'm new in this too...) https://github.com/alvarmaciel/packg-deb-sugar to begin can I send to you the advances of this work? Good idea to work separately at first, but please join the Debian team and let us continue this discussion not discretely but on the dedicated mailinglist - and let's get you quickly in shape to work directly on the official Debian packages, to put your efforts into use globally :-) ok! Please (create an account and) join our team here: https://alioth.debian.org/projects/debian-olpc/ I'm there since the last five minutes :D ...and join our mailinglist here: http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-olpc-devel do ít ...and when ready post to that list and we can take it from there. ok If you run into problems, you are quite welcome to contact me directly, but generally it is more fruitful to work transparently via our mailinglist. ok Looking forward to work with you, - Jonas Thanks for all Alvar ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Stepping down
El 17/11/11 13:05, Lucian Branescu escribió: This email is long overdue. As you might have noticed, I haven't contributed to Browse/Sugar in a long time. It was partly frustration with the technologies (GTK3/introspection migration, I hate you), partly lack of money; but mostly it was lack of spare time. I still don't have any more free time to devote to Sugar development now, so I wanted to let everyone that hasn't already noticed that I can't be depended on to maintain Browse. Also, I won't be paying much attention to the mailing list(s). Sugar was my gateway to real software development and I'd like to thank everyone that was patient with me and helped me along. I still like Sugar, and I'm not going anywhere, so if anyone wants to contact me about anything don't hesitate. Hey Lucian, thanks a lot for your work on Browse and your contributions in all the other areas! We will miss them, but there is always a door open to come back at one point...:) Thanks for letting us know, it is good habit to notify the community as well in those cases, Simon ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] Removing hippo from Chat
I was working i removing the use of hippo in Chat activity. I have implemented a HBox type container to substitute the RoundBox, and used TextView to display the text. There are a few pending issues: * If the text writen in a message is longer than the horizontal space in one row, the box is widen, and the text is not sent to another row. I have tried using textview.set_wrap_mode(gtk.WRAP_WORD), but this cut every row with one word. * There are issue with the repainting of the cairo based RoundBox. The first row, after the activity alert is hidden, is not repainted. * The smiley images are aligned at bottom with the text. In the old Chat were aligned at middle and looked better. * After changing to another activity and come back, the palette asociated to a url, show a error message Cannot update the palette position. and is not displayed. Comments and ideas, welcomed. Gonzalo From dde66432641b228caedef6ced6e9928cbf733a38 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard godi...@gmail.com Date: Tue, 15 Nov 2011 16:29:35 -0300 Subject: [PATCH 1/2] Remove use of hippo (1) This patch remove the use of CanvasBox containers but does not support smiles and the links are managed by the standard gtk procedure. Smiles and links will be implemented in the next patch. Signed-by-off: Gonzalo Odiard gonz...@laptop.org --- activity.py |5 +- chat/box.py | 174 +- chat/roundbox.py | 96 ++ 3 files changed, 190 insertions(+), 85 deletions(-) create mode 100644 chat/roundbox.py diff --git a/activity.py b/activity.py index 7d239cc..18ce996 100644 --- a/activity.py +++ b/activity.py @@ -14,7 +14,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import hippo import gtk import logging import cjson @@ -267,14 +266,12 @@ class Chat(activity.Activity): self.entry = entry self.chatbox = ChatBox() -canvas = hippo.Canvas() -canvas.set_root(self.chatbox) hbox = gtk.HBox() hbox.add(entry) box = gtk.VBox(homogeneous=False) -box.pack_start(canvas) +box.pack_start(self.chatbox) box.pack_start(hbox, expand=False) return box diff --git a/chat/box.py b/chat/box.py index a05015c..c3db97d 100644 --- a/chat/box.py +++ b/chat/box.py @@ -25,13 +25,11 @@ from gettext import gettext as _ from os.path import join import gtk -import hippo import pango import cairo from sugar.graphics import style -from sugar.graphics.roundbox import CanvasRoundBox -from sugar.graphics.palette import Palette, CanvasInvoker +from sugar.graphics.palette import Palette from sugar.presence import presenceservice from sugar.graphics.menuitem import MenuItem from sugar.activity.activity import get_activity_root, show_object_in_journal @@ -40,6 +38,7 @@ from sugar.datastore import datastore from sugar import profile from chat import smilies +from chat.roundbox import RoundBox _URL_REGEXP = re.compile('((http|ftp)s?://)?' @@ -47,10 +46,33 @@ _URL_REGEXP = re.compile('((http|ftp)s?://)?' '(:[1-9][0-9]{0,4})?(/[-a-zA-Z0-9/%~@_+=;:,.?#]*[a-zA-Z0-9/])?') -class ChatBox(hippo.CanvasScrollbars): +class ColorLabel(gtk.Label): + +def __init__(self, text, color=None): +self._color = color +if self._color is not None: +text = 'span foreground=%s' % self._color.get_html() + \ +text + '/span' +gtk.Label.__init__(self) +self.set_use_markup(True) +self.set_markup(text) + + +class LinkLabel(ColorLabel): + +def __init__(self, text, color=None): +self.text = 'a href=%s' % text + \ +text + '/a' +ColorLabel.__init__(self, self.text, color) + +def create_palette(self): +return _URLMenu(self.text) + + +class ChatBox(gtk.ScrolledWindow): def __init__(self): -hippo.CanvasScrollbars.__init__(self) +gtk.ScrolledWindow.__init__(self) self.owner = presenceservice.get_instance().get_owner() @@ -62,16 +84,16 @@ class ChatBox(hippo.CanvasScrollbars): self._last_msg = None self._chat_log = '' -self._conversation = hippo.CanvasBox( -spacing=0, -box_width=-1, # natural width -background_color=style.COLOR_WHITE.get_int()) +self._conversation = gtk.VBox() +self._conversation.set_homogeneous(False) +#self._conversation.background_color=style.COLOR_WHITE +#spacing=0, +#box_width=-1, # natural width +#background_color=style.COLOR_WHITE.get_int()) -self.set_policy(hippo.ORIENTATION_HORIZONTAL, -hippo.SCROLLBAR_NEVER) -self.set_root(self._conversation) - -vadj = self.props.widget.get_vadjustment() +
Re: [Sugar-devel] Stepping down
On Thu, Nov 17, 2011 at 09:13:57AM -0300, Gonzalo Odiard wrote: Thanks Lucian for all your work, and the best luck in your projects! Gonzalo +1 -- | .''`. == Debian GNU/Linux ==.| http://kevix.myopenid.com..| | : :' : The Universal OS| mysite.verizon.net/kevin.mark/.| | `. `' http://www.debian.org/.| http://counter.li.org [#238656]| |___`-Unless I ask to be CCd,.assume I am subscribed._| All things being equal, you are bound to lose. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [ASLO] Release Turtle Blocks-126
Activity Homepage: http://activities.sugarlabs.org/addon/4027 Sugar Platform: 0.82 - 0.96 Download Now: http://activities.sugarlabs.org/downloads/file/27736/turtle_art-126.xo Release notes: 126 ENHANCEMENTS * Added speak block to media palette * Added sinewave block to media palette * Added mouse x, y, and click blocks to sensor palette * Added plugin support for clear method attached to Clean block and Erase button. Sugar Labs Activities http://activities.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Stepping down
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/17/2011 05:35 PM, Lucian Branescu wrote: This email is long overdue. As you might have noticed, I haven't contributed to Browse/Sugar in a long time. It was partly frustration with the technologies (GTK3/introspection migration, I hate you), partly lack of money; but mostly it was lack of spare time. I still don't have any more free time to devote to Sugar development now, so I wanted to let everyone that hasn't already noticed that I can't be depended on to maintain Browse. Also, I won't be paying much attention to the mailing list(s). Sugar was my gateway to real software development and I'd like to thank everyone that was patient with me and helped me along. I still like Sugar, and I'm not going anywhere, so if anyone wants to contact me about anything don't hesitate. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel Thanks Lucian! Your work made a lot of kids around the world happier :-) - -- Anish -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOxWLpAAoJEBoxUdDHDZVp1rkH/3k2z2rLZIQq9U8ddWJA5R34 wDDwgw2Gi+CBJ1KLhDk/fEyuw0jpBXjuU3D3YTSisAooThLDIr+14zlVH7dHdAIs uL6LFO0DTSGgRldQBjowoTkJD5icEkfBNpwxFkI5sNS/9lz0/J3g8LEKDxuis2EB NZZ3paWAZgFrAaN2szZq11RixxkvldbcbE5OT7enTUNehU85O1lytzvJX8AElc9K qutYuQ1oUVZ/yCFybQE7zFcd2rQxENkxqSG04Snv/FNJR30jvZoNOwZWeUYP06os 7fzEfG/q4zBxLckrykIJUyoXk79iug1ZeBFjCGw8v+P5flpbRMpu2V0dqUqBTus= =0sCX -END PGP SIGNATURE- ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Stepping down
Hi Lucian, On 17 Nov 2011, at 12:05, Lucian Branescu lucian.brane...@gmail.com wrote: This email is long overdue. As you might have noticed, I haven't contributed to Browse/Sugar in a long time. It was partly frustration with the technologies (GTK3/introspection migration, I hate you), partly lack of money; but mostly it was lack of spare time. I still don't have any more free time to devote to Sugar development now, so I wanted to let everyone that hasn't already noticed that I can't be depended on to maintain Browse. Also, I won't be paying much attention to the mailing list(s). Sugar was my gateway to real software development and I'd like to thank everyone that was patient with me and helped me along. I still like Sugar, and I'm not going anywhere, so if anyone wants to contact me about anything don't hesitate. Just wanted to say many thanks for all your contribution and effort. Much appreciated. I'm sure your work has had significant, positive impact on the ground for deployments. Wishing you all the best of luck for your future endevors! Regards, --Gary ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
[Sugar-devel] [ASLO] Release Visual Match-32
Activity Homepage: http://activities.sugarlabs.org/addon/4246 Sugar Platform: 0.82 - 0.96 Download Now: http://activities.sugarlabs.org/downloads/file/27737/visual_match-32.xo Release notes: 32 ENHANCEMENT: * Using Cairo graphics * Animate loading of new cards BUG FIX: * Set robot time during attract mode 31 ENHANCEMENT: * Animate matches when moving to discard pile BUG FIX: * FIx GPLv3 license address Sugar Labs Activities http://activities.sugarlabs.org ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel
Re: [Sugar-devel] Stepping down
On Thu, Nov 17, 2011 at 4:47 PM, Gary Martin garycmar...@googlemail.com wrote: Hi Lucian, On 17 Nov 2011, at 12:05, Lucian Branescu lucian.brane...@gmail.com wrote: This email is long overdue. As you might have noticed, I haven't contributed to Browse/Sugar in a long time. It was partly frustration with the technologies (GTK3/introspection migration, I hate you), partly lack of money; but mostly it was lack of spare time. I still don't have any more free time to devote to Sugar development now, so I wanted to let everyone that hasn't already noticed that I can't be depended on to maintain Browse. Also, I won't be paying much attention to the mailing list(s). Sugar was my gateway to real software development and I'd like to thank everyone that was patient with me and helped me along. I still like Sugar, and I'm not going anywhere, so if anyone wants to contact me about anything don't hesitate. Just wanted to say many thanks for all your contribution and effort. Much appreciated. I'm sure your work has had significant, positive impact on the ground for deployments. Wishing you all the best of luck for your future endevors! Regards, --Gary ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel Thank you!!! cheers, Sameer -- Sameer Verma, Ph.D. Professor, Information Systems San Francisco State University http://verma.sfsu.edu/ http://olpcsf.org/ ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel