Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-02-18 Thread Ajay Garg
Hi all. Just wanted to know that whether the signals used in the "Write" activity 'size-allocate', 'request-clear-area', 'unset-clear-area', are usable anywhere else too? I can see that these signals are being listened by "class DocumentView(Abi.Widget)"; however,

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-29 Thread Gonzalo Odiard
On Tue, Jan 29, 2013 at 2:17 AM, Ajay Garg wrote: > I agree with Gonzalo and Gary; this is just a makeshift solution for the > time-being, so that activities like Speak, Chat, Terminal are not rendered > completely unusable in ebook-mode. > > In my opinion, in this case, your hack, is exposed to

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-29 Thread Gary Martin
Hi Ajay, On 29 Jan 2013, at 05:17, Ajay Garg wrote: > I agree with Gonzalo and Gary; this is just a makeshift solution for the > time-being, so that activities like Speak, Chat, Terminal are not rendered > completely unusable in ebook-mode. > > Ideally, the best solution would be to have the

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-28 Thread Ajay Garg
I agree with Gonzalo and Gary; this is just a makeshift solution for the time-being, so that activities like Speak, Chat, Terminal are not rendered completely unusable in ebook-mode. Ideally, the best solution would be to have the OSK-appearance-and window-shrinkage on "automatic" and "tied-togeth

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-28 Thread Gary Martin
On 28 Jan 2013, at 18:33, Gonzalo Odiard wrote: > > > On Mon, Jan 28, 2013 at 2:50 PM, Ajay Garg wrote: > > > On Mon, Jan 28, 2013 at 11:01 PM, Paul Fox wrote: > ajay wrote: > > Hi all. > > > > A simple solution was found :) > > > > I hacked the "KP_Prior" and "KP_Next" keys, and now t

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-28 Thread Bert Freudenberg
On 2013-01-28, at 19:16, Paul Fox wrote: > certainly not my call, but stealing keys which have always been > intended for activities to use seems like it shouldn't be done > lightly. +1 - Bert - ___ Sugar-devel mailing list Sugar-devel@lists.sugar

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-28 Thread Gonzalo Odiard
On Mon, Jan 28, 2013 at 2:50 PM, Ajay Garg wrote: > > > On Mon, Jan 28, 2013 at 11:01 PM, Paul Fox wrote: > >> ajay wrote: >> > Hi all. >> > >> > A simple solution was found :) >> > >> > I hacked the "KP_Prior" and "KP_Next" keys, and now they are used for >> > making-window-smaller and re

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-28 Thread Paul Fox
ajay wrote: > On Mon, Jan 28, 2013 at 11:01 PM, Paul Fox wrote: > > > ajay wrote: > > > Hi all. > > > > > > A simple solution was found :) > > > > > > I hacked the "KP_Prior" and "KP_Next" keys, and now they are used for > > > making-window-smaller and restoring-original-window-siz

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-28 Thread Ajay Garg
On Mon, Jan 28, 2013 at 11:01 PM, Paul Fox wrote: > ajay wrote: > > Hi all. > > > > A simple solution was found :) > > > > I hacked the "KP_Prior" and "KP_Next" keys, and now they are used for > > making-window-smaller and restoring-original-window-size respectively :) > > so sugar takes ov

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-28 Thread Paul Fox
ajay wrote: > Hi all. > > A simple solution was found :) > > I hacked the "KP_Prior" and "KP_Next" keys, and now they are used for > making-window-smaller and restoring-original-window-size respectively :) so sugar takes over those keys? aren't those keys used by activities? they're cert

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-28 Thread Ajay Garg
Hi all. A simple solution was found :) I hacked the "KP_Prior" and "KP_Next" keys, and now they are used for making-window-smaller and restoring-original-window-size respectively :) All thanks to * /usr/share/X11/xkb/keycodes/evdev * sugar/src/jarabe/view/keyhandler.py Just one

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Paul Fox
gonzalo wrote: > Write does not know what is the ebook switch state, that logic is in the > osk. > > Looking in the wiki and sugar code, I could not find information about how > read the switch, > but in ticket http://dev.laptop.org/ticket/12326 found this: > > If you do: > > evtest --

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Martin Langhoff
On Thu, Jan 24, 2013 at 12:02 PM, Gonzalo Odiard wrote: > Write does not know what is the ebook switch state, that logic is in the > osk. And that's correct. ebook mode is one reason to show the OSK. There are other reasons -- for example, - accesibility - typing in a different language from

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Gonzalo Odiard
> There are any official doc about the switches I am missing? There are a > way to catch a event when the switch is activated, using dbus or something > similar? > > http://wiki.laptop.org/go/Power_management#Ebook_sense_switch looks outdated ___ Sug

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Gonzalo Odiard
Write does not know what is the ebook switch state, that logic is in the osk. Looking in the wiki and sugar code, I could not find information about how read the switch, but in ticket http://dev.laptop.org/ticket/12326 found this: If you do: evtest --query /dev/input/event4 EV_SW SW_TABLET_MODE;

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 8:46 PM, Martin Langhoff wrote: > On Thu, Jan 24, 2013 at 10:13 AM, Paul Fox wrote: > > i believe sugar already has code to detect the two modes, since > > that's how it knows whether to present the OSK or not. > > Yep. Ajay, I think Write shows you the way :-) > Great..

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Martin Langhoff
On Thu, Jan 24, 2013 at 10:13 AM, Paul Fox wrote: > i believe sugar already has code to detect the two modes, since > that's how it knows whether to present the OSK or not. Yep. Ajay, I think Write shows you the way :-) m -- martin.langh...@gmail.com mar...@laptop.org -- Software Architect

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Paul Fox
jerry wrote: > On 24 January 2013 08:11, Ajay Garg wrote: > > > > > > > On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg wrote: > > > >> > >> > >> On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard wrote: > >> > >>> > >>> > So, it seems that just hacking onto the game-key won't help

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 8:20 PM, Jerry Vonau wrote: > > > On 24 January 2013 08:11, Ajay Garg wrote: > >> >> >> On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg wrote: >> >>> >>> >>> On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard wrote: >>> > So, it seems that just hacking onto the

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Jerry Vonau
On 24 January 2013 08:11, Ajay Garg wrote: > > > On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg wrote: > >> >> >> On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard wrote: >> >>> >>> So, it seems that just hacking onto the game-key won't help :( >>> >>> No. Will not work, because the osk

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg wrote: > > > On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard wrote: > >> >> >>> So, it seems that just hacking onto the game-key won't help :( >>> >> >> No. Will not work, because the osk will appear if you touch over a input >> widget. >> The game

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard wrote: > > >> So, it seems that just hacking onto the game-key won't help :( >> > > No. Will not work, because the osk will appear if you touch over a input > widget. > The game keys are not the expected way to show the osk. > Hmm.. which brin

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Gonzalo Odiard
> So, it seems that just hacking onto the game-key won't help :( > No. Will not work, because the osk will appear if you touch over a input widget. The game keys are not the expected way to show the osk. Gonzalo ___ Sugar-devel mailing list Sugar-

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 7:04 PM, Ajay Garg wrote: > > > On Thu, Jan 24, 2013 at 6:45 PM, Gonzalo Odiard wrote: > >> > Please find attached a sample screenshot of the "Speak" activity; the >> window >> >>> > has been resized to 0.7 of the original size (the screenshot doesn't show a > k

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 6:45 PM, Gonzalo Odiard wrote: > > Please find attached a sample screenshot of the "Speak" activity; the > window > >> > has been resized to 0.7 of the original size (the screenshot doesn't >>> show a >>> > keyboard yet, as it was done on sugar-build). >>> >>> Question:

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Gonzalo Odiard
> Please find attached a sample screenshot of the "Speak" activity; the window > > has been resized to 0.7 of the original size (the screenshot doesn't >> show a >> > keyboard yet, as it was done on sugar-build). >> >> Question: Do all activities behave properly when the screen is scaled >> that

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Ajay Garg
On Thu, Jan 24, 2013 at 5:50 PM, Walter Bender wrote: > On Thu, Jan 24, 2013 at 3:22 AM, Ajay Garg > wrote: > > Thanks Walter and Gary for your replies. > > > > Well, what I am trying to achieve is, is just a simple and consistent > > (fixed) behaviour across every activity - make the window-size

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-24 Thread Walter Bender
On Thu, Jan 24, 2013 at 3:22 AM, Ajay Garg wrote: > Thanks Walter and Gary for your replies. > > Well, what I am trying to achieve is, is just a simple and consistent > (fixed) behaviour across every activity - make the window-size smaller. > This serves two advantages :: > >* Work

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-23 Thread Gary Martin
On 23 Jan 2013, at 15:29, Walter Bender wrote: > On Wed, Jan 23, 2013 at 1:20 AM, Ajay Garg wrote: >> Hi all. >> >> I wish to fix the bug, where some activities (Chat, Terminal, Speak for >> instance) are rendered unusable in the ebook-mode, due to the OSK covering >> the area of text-input. >>

Re: [Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-23 Thread Walter Bender
On Wed, Jan 23, 2013 at 1:20 AM, Ajay Garg wrote: > Hi all. > > I wish to fix the bug, where some activities (Chat, Terminal, Speak for > instance) are rendered unusable in the ebook-mode, due to the OSK covering > the area of text-input. > I have figured out a generic working solution for this -

[Sugar-devel] Hacking onto the "appearing" and "hiding" of OSK

2013-01-22 Thread Ajay Garg
Hi all. I wish to fix the bug, where some activities (Chat, Terminal, Speak for instance) are rendered unusable in the ebook-mode, due to the OSK covering the area of text-input. I have figured out a generic working solution for this - the idea is to minimize the activity windows when the OSK appe