[Sugar-devel] Clipboard menu off screen #2201

2010-12-17 Thread Aleksey Lim
Patches do the same as Mukul Gupta's one but moves the code to sugar-toolkit. ___ Sugar-devel mailing list Sugar-devel@lists.sugarlabs.org http://lists.sugarlabs.org/listinfo/sugar-devel

[Sugar-devel] [PATCH sugar-toolkit] Clipboard menu off screen #2201

2010-12-17 Thread Aleksey Lim
By default, set palette title width to a half of screen widht. --- src/sugar/graphics/palette.py |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py index 46f167b..8d5794d 100644 ---

[Sugar-devel] [PATCH sugar] Clipboard menu off screen #2201

2010-12-17 Thread Aleksey Lim
Rely on sugar-toolkit in setting most appropriate text_maxlen --- src/jarabe/frame/clipboardmenu.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/jarabe/frame/clipboardmenu.py b/src/jarabe/frame/clipboardmenu.py index d11538d..5ce78b2 100644 ---

Re: [Sugar-devel] Wacom Bamboo with Colors! on XO-1 (again)?

2010-12-17 Thread Wade Brainerd
Hey Chris, Two things are going wrong: 1) You need internet connectivity to run that script. It downloads the kernel module from dev.laptop.org. 2) The script referenced a copy of the wacom.ko from Paul Firth's home directory, but it's not there any more. I updated the script to reference a

[Sugar-devel] [ASLO] Release Turtle Blocks-105

2010-12-17 Thread Sugar Labs Activities
Activity Homepage: http://activities.sugarlabs.org/addon/4027 Sugar Platform: 0.82 - 0.90 Download Now: http://activities.sugarlabs.org/downloads/file/27142/turtle_art-105.xo Release notes: 105 BUG FIXES * Fixed problem with coordinate overlay mislabeling when rescaling coordinates * Fixed

[Sugar-devel] tracking CTRL and ALT keys in a sugar activity

2010-12-17 Thread Erik Blankinship
I would like to know when CTRL or ALT are being pressed in my sugar activity. To be complete, I would need to know if they are pressed when the activity regains focus (e.g. changing activities or if the focus was in a textfield). I am not sure of the right way to do this. My current thinking is

Re: [Sugar-devel] tracking CTRL and ALT keys in a sugar activity

2010-12-17 Thread Walter Bender
On Fri, Dec 17, 2010 at 4:48 PM, Erik Blankinship er...@mediamods.com wrote: I would like to know when CTRL or ALT are being pressed in my sugar activity.  To be complete, I would need to know if they are pressed when the activity regains focus (e.g. changing activities or if the focus was in a

Re: [Sugar-devel] tracking CTRL and ALT keys in a sugar activity

2010-12-17 Thread Erik Blankinship
On Fri, Dec 17, 2010 at 4:52 PM, Walter Bender walter.ben...@gmail.comwrote: On Fri, Dec 17, 2010 at 4:48 PM, Erik Blankinship er...@mediamods.com wrote: I would like to know when CTRL or ALT are being pressed in my sugar activity. To be complete, I would need to know if they are pressed

Re: [Sugar-devel] [PATCH sugar-toolkit] Clipboard menu off screen #2201

2010-12-17 Thread James Cameron
On Fri, Dec 17, 2010 at 11:34:08AM +, Aleksey Lim wrote: By default, set palette title width to a half of screen widht. s/widht/width +CHAR_WIDTH = gtk.Label().create_pango_layout('W').get_pixel_size()[0] 'W' is chosen because it is the longest letter in your alphabet? def

Re: [Sugar-devel] tracking CTRL and ALT keys in a sugar activity

2010-12-17 Thread Michael Stone
On Fri, Dec 17, 2010 at 4:48 PM, Erik Blankinship er...@mediamods.com wrote: On Fri, Dec 17, 2010 at 4:52 PM, Walter Bender walter.ben...@gmail.comwrote: On Fri, Dec 17, 2010 at 4:48 PM, Erik Blankinship er...@mediamods.com wrote: I would like to know when CTRL or ALT are being pressed in my

[Sugar-devel] [PATCH sugar-toolkit] Clipboard menu off screen #2201

2010-12-17 Thread Aleksey Lim
New font.char_width property to return approximate char width. Set Palette's text_maxlen to a half of the screen by defualt. --- src/sugar/graphics/palette.py | 21 + src/sugar/graphics/style.py | 40 2 files changed, 53

Re: [Sugar-devel] tracking CTRL and ALT keys in a sugar activity

2010-12-17 Thread Aleksey Lim
On Fri, Dec 17, 2010 at 05:23:03PM -0500, Erik Blankinship wrote: On Fri, Dec 17, 2010 at 4:52 PM, Walter Bender walter.ben...@gmail.comwrote: On Fri, Dec 17, 2010 at 4:48 PM, Erik Blankinship er...@mediamods.com wrote: I would like to know when CTRL or ALT are being pressed in my sugar