Re: Getting a gtk.image from the get_preview function
On Wed, Aug 5, 2009 at 03:06, sumit singhsumit.co...@gmail.com wrote: Hi all, I would like to ask what is the best way to get a gtk.Image from the data returned by get_preview function of activity.Activity fn of sugar. I want to make an image buttton using this data. Currently, I am doing it by saving the data in a temp file using the tempfile module of sugar and then by loading the image from this file, however, as I will be req to load around 15-20 such images, I can't say how fast the process will end into. Is there a faster method? For your reference , here is the code of how the journal activity uses this data http://pastebin.be/20177 , but as I don't want to use hippo canvas, so this method won't work. Kindly give your suggestions. Sorry, didn't remembered that the journal used hippo to display the previews when I recommended you to look at that. If you get a cairo surface like the journal does, you can draw it to a pixmap and then tell a gtk.Image to display it. More details in this post (disregard the pixbuf stuff): http://lethalman.blogspot.com/2009/04/create-pixbuf-from-cairo-surface.html HTH, Tomeu Regards, sumit ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Getting a gtk.image from the get_preview function
Hi Tomeu, Thanx for your reply. I tried using the it , but it doesn't seem to work, it gives an error that the image should be a gdkpixbuf or None. Here is my code- http://pastebin.be/20184 , isn't it so that while creating the pixmap on line no15, we are just using the height and width of the surface and not the surface anywhere. I mean how are we transferring the data of the image to the pixmap. Thinking this I also tried this approach but didn't worked http://pastebin.be/20185 . Kindly have a look as in where am I doing the mistake. Regards, sumit On Wed, Aug 5, 2009 at 12:33 PM, Tomeu Vizosoto...@sugarlabs.org wrote: On Wed, Aug 5, 2009 at 03:06, sumit singhsumit.co...@gmail.com wrote: Hi all, I would like to ask what is the best way to get a gtk.Image from the data returned by get_preview function of activity.Activity fn of sugar. I want to make an image buttton using this data. Currently, I am doing it by saving the data in a temp file using the tempfile module of sugar and then by loading the image from this file, however, as I will be req to load around 15-20 such images, I can't say how fast the process will end into. Is there a faster method? For your reference , here is the code of how the journal activity uses this data http://pastebin.be/20177 , but as I don't want to use hippo canvas, so this method won't work. Kindly give your suggestions. Sorry, didn't remembered that the journal used hippo to display the previews when I recommended you to look at that. If you get a cairo surface like the journal does, you can draw it to a pixmap and then tell a gtk.Image to display it. More details in this post (disregard the pixbuf stuff): http://lethalman.blogspot.com/2009/04/create-pixbuf-from-cairo-surface.html HTH, Tomeu Regards, sumit ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Another F11 build for the XO-1 has been released
I have released a new build of F11 for the XO-1 named OS4 You can find it at http://dev.laptop.org/~smparrish/xo-1/builds/ This new build includes the addition of the ImageViewer, Physics and Jukebox Activities, an update to the Write Activity, and the kbdshim and powerd packages. I have also included the md5sum for the .img and .iso Keep in mind this is a full OS image and installing it will result in the loss of all data on your XO-1. The usual cautions apply: this is development code, there will be bugs. Installation instructions: use copy-nand to install os4.img with os4.crc. = Steven M. Parrish - gpg fingerprint: 4B6C 8357 059E B7ED 8095 0FD6 1F4B EDA0 A9A6 13C0 http://tuxbrewr.fedorapeople.org/ irc.freenode.net: SMParrish @ #fedora-kde, #fedora-devel, #fedora-olpc, #sugar ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Another F11 build for the XO-1 has been released
2009/8/6 Steven M. Parrish smparr...@gmail.com: I have released a new build of F11 for the XO-1 named OS4 You can find it at http://dev.laptop.org/~smparrish/xo-1/builds/ This new build includes the addition of the ImageViewer, Physics and Jukebox Activities, an update to the Write Activity, and the kbdshim and powerd packages. It also fixes the bug where the XO would shutdown when you go online. thanks for your efforts! Daniel ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
[PATCH] add CONFIG_DISABLE_SUSPEND_VT_SWITCH=y to XO-1 defconfig
a la the change to XO-1.5 defconfig to set CONFIG_DISABLE_SUSPEND_VT_SWITCH=y from commit ad61cc33bd070e2c7bf98d4574b998fde58c862d, update XO-1 defconfig similarly. Stops make silentoldconfig for the XO-1 from failing. --- arch/x86/configs/xo_1_defconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/configs/xo_1_defconfig b/arch/x86/configs/xo_1_defconfig index 3d6f55d..43cac6b 100644 --- a/arch/x86/configs/xo_1_defconfig +++ b/arch/x86/configs/xo_1_defconfig @@ -313,6 +313,7 @@ CONFIG_PM=y CONFIG_PM_DEBUG=y # CONFIG_PM_VERBOSE is not set CONFIG_CAN_PM_TRACE=y +CONFIG_DISABLE_SUSPEND_VT_SWITCH=y # CONFIG_PM_TRACE_RTC is not set CONFIG_PM_SLEEP=y CONFIG_SUSPEND=y -- 1.6.0.6 ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: Disk layout for XO-1.5
On Tue, Aug 4, 2009 at 2:32 PM, Martin Langhoffmartin.langh...@gmail.com wrote: On Tue, Aug 4, 2009 at 4:42 AM, Albert Cahalanacaha...@gmail.com wrote: First partition: FAT16 with 4 KB clusters Second partition: LVM with ext4 Gentlemen, before LVM can be considered, we need - fs resize that is fail-safe in the face of powerloss, for the fs types we plan to use. - lvm resize that is fail-safe in the face of powerloss Unless you have a bug number, this is FUD. Where is the bug number? BTW, note that the flash disk itself is not certain to be fail-safe in the face of powerloss. Neither the firmware nor the hardware is supplied with proof of correctness. Problems in similar hardware are not uncommon. ___ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel
Re: [Server-devel] Marvell Wi-Fi ejabberd
On Wed, Aug 5, 2009 at 2:17 PM, Miguel Salazarmiguelsalaz...@gmail.com wrote: Hi, my name is Miguel Salazar and I'm working on the OLPC Chiapas deployment. We're working with Intel Classmates notebook computers running Sugar-on-a-Stick. Hi! The XS Recommended Hardware wiki page states in the Hardware Profile section that Marvell Wi-Fi nodes are needed, as well as four to six USB interfaces. We plan to deploy 15 notebooks per classroom, connected on a LAN to an XS through a router. Are Marvell Wi-Fi nodes absolutely necessary, or can this be achieved with a Linksys home router? What are the USB interfaces used for? That is somewhat outdated. I edited that a bit, the marvell wifi antennas are experimental at the moment. Just use an AP. You'll want it in bridge more, not as a router. Regarding ejabberd running on XS, is this a regular ejabberd (the same one that can be downloaded) or is this a patched version of ejabberd so it can work with XS? Patched. Search this list for abundant details on how and why. 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 ___ Server-devel mailing list Server-devel@lists.laptop.org http://lists.laptop.org/listinfo/server-devel