[Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

2013-06-09 Thread lionel
Hi all, I’m trying to port an activity to Gtk3 on the latest sugar-build. I’ve imported all sugar3.*. I’ve substituted all gtk to gi.repository import gtk. BTW I’m stick on a strange error on EllipsizeMode in Pango (see below). Does I miss something? Lionel.

Re: [Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

2013-06-09 Thread lionel
Inspired by http://bugs.sugarlabs.org/ticket/3744, I’ve temporarily solved the issue myself by commenting following lines in sugar3/graphics/palette.py Lionel. 133#if text_maxlen 0: 134#self._label.set_max_width_chars(text_maxlen) 135#

[Sugar-devel] [sugar-build] Build breakage on Debian jessy

2013-06-09 Thread Daniel Narvaez
Hello, automake was upgraded but gnome-common was not. This breaks the build of many gnome modules. The new gnome-common is in unstable, so hopefully it will make it soon to testing. -- Daniel Narvaez ___ Sugar-devel mailing list

Re: [Sugar-devel] [sugar-build] Build breakage on Debian jessy

2013-06-09 Thread Daniel Narvaez
As a workaround you can install the unstable deb http://ftp.us.debian.org/debian/pool/main/g/gnome-common/gnome-common_3.7.4-1_all.deb On 9 June 2013 11:31, Daniel Narvaez dwnarv...@gmail.com wrote: Hello, automake was upgraded but gnome-common was not. This breaks the build of many gnome

Re: [Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

2013-06-09 Thread Daniel Narvaez
Please push your port somewhere. It appear to work fine with existing activities. Something to be careful about is that you are not loading any old gobject stuff (not in gi.*), you can't mix them. On 9 June 2013 10:31, lio...@olpc-france.org wrote: ** ** Inspired by

Re: [Sugar-devel] [Systems] Moving pootle to github

2013-06-09 Thread Daniel Narvaez
On 9 June 2013 01:38, Bernie Innocenti ber...@sugarlabs.org wrote: On 06/07/2013 09:10 AM, Daniel Narvaez wrote: No, just glucose. You can see the exact list of modules on https://github.com/sugarlabs/ By the way, what is sugarlabs, a shared account? It's an organization

Re: [Sugar-devel] [Systems] Moving pootle to github

2013-06-09 Thread Daniel Narvaez
Something I would like to stress, aside from philosophical considerations, is that the new process is working. There is not a single patch stuck in the queue (couple of old ones from Walter but they are just blocked on another set he submitted, which is going to land soon). On 9 June 2013 11:51,

Re: [Sugar-devel] [Systems] Moving pootle to github

2013-06-09 Thread Daniel Narvaez
Awesome! As a first step, could you please turn off pottle pushing to gitorious? I need to resync github with gitorious and if pootle keeps committing to gitorious I won't be able to do that properly. Also, do you have a github account or can you create one? The idea is that you add an ssh key

Re: [Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

2013-06-09 Thread Walter Bender
yes. I had a similar error with activities that inadvertently had some mixed code between gtk2 and gtk3. -walter On Sun, Jun 9, 2013 at 5:44 AM, Daniel Narvaez dwnarv...@gmail.com wrote: Please push your port somewhere. It appear to work fine with existing activities. Something to be careful

Re: [Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

2013-06-09 Thread Daniel Narvaez
If it turns out to be that please close the ticket. On 9 June 2013 13:17, Walter Bender walter.ben...@gmail.com wrote: yes. I had a similar error with activities that inadvertently had some mixed code between gtk2 and gtk3. -walter On Sun, Jun 9, 2013 at 5:44 AM, Daniel Narvaez

Re: [Sugar-devel] Requiring test coverage for new code

2013-06-09 Thread Daniel Narvaez
The first patch with tests landed just now! I'd say it went pretty smoothly. Thanks to Walter for trying this out first :) ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

Re: [Sugar-devel] Requiring test coverage for new code

2013-06-09 Thread Daniel Narvaez
And the tests are doing their job :) http://buildbot.sugarlabs.org/builders/raring-amd64-quick/builds/189/steps/shell_4/logs/stdio On 9 June 2013 14:30, Daniel Narvaez dwnarv...@gmail.com wrote: The first patch with tests landed just now! I'd say it went pretty smoothly. Thanks to Walter for

Re: [Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

2013-06-09 Thread lionel
Finally solved my issue with a big review of my imports. Thanks. I’ve got a last issue on Pango, no way to found some Pango constants (ALIGN_CENTER and WRAP_WORD – view my calls below). Any idea where I can found it? Lionel.

Re: [Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

2013-06-09 Thread Daniel Narvaez
Try dir(Pango) in a python console. It's Pango.WrapMode... I'm sure there is a logic to go from C api to python too, but I don't know it :) On 9 June 2013 16:22, lio...@olpc-france.org wrote: ** ** Finally solved my issue with a big review of my imports. Thanks. ** ** I’ve got a last

Re: [Sugar-devel] EllipsizeMode error trying to port an activity to Gtk3

2013-06-09 Thread lionel
Yes, you got it ! Thanks for the tip. Here my missing constants: layout.set_alignment(Pango.Alignment.CENTER) layout.set_wrap(Pango.WrapMode.WORD) Lionel De : Daniel Narvaez [mailto:dwnarv...@gmail.com] Envoyé : dimanche 9 juin 2013 16:25 À :

[Sugar-devel] osbuild check

2013-06-09 Thread Daniel Narvaez
Hi, since not everyone seem to know about the tool... Before submitting patches make sure to run ./osbuild check. That will run all the code checks and the unit tests making sure you won't break the build when the patches are pushed. -- Daniel Narvaez

Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-09 Thread Daniel Narvaez
I made some decent progress on this. I have a tool that will build an F19 chroot (tested on Fedora, but supposed to work on any distro where you have yum packages). https://github.com/dnarvaez/broot Must be installed in system path. Then create a dir with a manifest like this

Re: [Sugar-devel] Gtk3 sugar on Android

2013-06-09 Thread Daniel Narvaez
On 9 June 2013 17:07, Daniel Narvaez dwnarv...@gmail.com wrote: Now ideally we would emulator -partition-size 4096 Heh 2048 seems to work, which should be enough. Now I can't adb shell for some reason, perhaps just uncleaned state from the arm build I made before. Rebuilding a clean

Re: [Sugar-devel] [Systems] Moving pootle to github

2013-06-09 Thread Bernie Innocenti
I'm very happy to hear that. Kudos! On 06/09/13 06:13, Daniel Narvaez wrote: Something I would like to stress, aside from philosophical considerations, is that the new process is working. There is not a single patch stuck in the queue (couple of old ones from Walter but they are just blocked

[Sugar-devel] [Saucy Salamander] Sugar-Emulator

2013-06-09 Thread Ignacio Rodríguez
Trying to start sugar-emulator.. ignacio@ignacio:~$ sugar-emulator Initializing built-in extension Generic Event Extension Initializing built-in extension SHAPE Initializing built-in extension MIT-SHM Initializing built-in extension XInputExtension Initializing built-in extension XTEST

Re: [Sugar-devel] [Saucy Salamander] Sugar-Emulator

2013-06-09 Thread Daniel Narvaez
Try to run Xephyr :100, if it crashes it's an Ubuntu bug, report it to launchpad. (sugar-emulator is gone in master btw) On Sunday, 9 June 2013, Ignacio Rodríguez wrote: Trying to start sugar-emulator.. ignacio@ignacio:~$ sugar-emulator Initializing built-in extension Generic Event

Re: [Sugar-devel] [Saucy Salamander] Sugar-Emulator

2013-06-09 Thread Ignacio Rodríguez
Same problem.. Sugar emulator work. Me: sudo apt-get dist-upgrade Then (today).. Sugar-Emulator not work 2013/6/9 Daniel Narvaez dwnarv...@gmail.com Try to run Xephyr :100, if it crashes it's an Ubuntu bug, report it to launchpad. (sugar-emulator is gone in master btw) On Sunday, 9 June

Re: [Sugar-devel] [Saucy Salamander] Sugar-Emulator

2013-06-09 Thread Daniel Narvaez
On Sunday, 9 June 2013, Daniel Narvaez wrote: Try to run Xephyr :100, if it crashes it's an Ubuntu bug, report it to launchpad. (sugar-emulator is gone in master btw) On Sunday, 9 June 2013, Ignacio Rodríguez wrote: Trying to start sugar-emulator.. ignacio@ignacio:~$ sugar-emulator

Re: [Sugar-devel] [Saucy Salamander] Sugar-Emulator

2013-06-09 Thread Daniel Narvaez
Might be this btw https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/635523 Don't think that's ever going to be fixed. On Sunday, 9 June 2013, Daniel Narvaez wrote: Try to run Xephyr :100, if it crashes it's an Ubuntu bug, report it to launchpad. (sugar-emulator is gone in master

Re: [Sugar-devel] [Saucy Salamander] Sugar-Emulator

2013-06-09 Thread Daniel Narvaez
If Xephyr doesn't start with the command I suggested it's an Ubuntu bug, nothing we can do about it in Sugar. Report it to Ubuntu. On Sunday, 9 June 2013, Ignacio Rodríguez wrote: Same problem.. Sugar emulator work. Me: sudo apt-get dist-upgrade Then (today).. Sugar-Emulator not work

Re: [Sugar-devel] [Saucy Salamander] Sugar-Emulator

2013-06-09 Thread Ignacio Rodríguez
OK, thx 2013/6/9 Daniel Narvaez dwnarv...@gmail.com If Xephyr doesn't start with the command I suggested it's an Ubuntu bug, nothing we can do about it in Sugar. Report it to Ubuntu. On Sunday, 9 June 2013, Ignacio Rodríguez wrote: Same problem.. Sugar emulator work. Me: sudo apt-get