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, the

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 a...@activitycentral.com 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

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 a...@activitycentral.com 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

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-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 certainly

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 p...@laptop.org 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 over

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 p...@laptop.org 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

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 a...@activitycentral.com wrote: On Mon, Jan 28, 2013 at 11:01 PM, Paul Fox p...@laptop.org 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

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 gonz...@laptop.org wrote: On Mon, Jan 28, 2013 at 2:50 PM, Ajay Garg a...@activitycentral.com wrote: On Mon, Jan 28, 2013 at 11:01 PM, Paul Fox p...@laptop.org wrote: ajay wrote: Hi all. A simple solution was found :) I hacked 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-together

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 a...@activitycentral.com 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 ::

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 walter.ben...@gmail.comwrote: On Thu, Jan 24, 2013 at 3:22 AM, Ajay Garg a...@activitycentral.com 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

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 way? (I don't

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 gonz...@laptop.org 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: Do

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 a...@activitycentral.com wrote: On Thu, Jan 24, 2013 at 6:45 PM, Gonzalo Odiard gonz...@laptop.orgwrote: Please find attached a sample screenshot of the Speak activity; the window has been resized to 0.7 of the original size (the screenshot

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 ___ Devel mailing list

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 gonz...@laptop.org 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..

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 a...@activitycentral.com wrote: On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard gonz...@laptop.orgwrote: 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

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 a...@activitycentral.com wrote: On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg a...@activitycentral.comwrote: On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard gonz...@laptop.orgwrote: 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 je...@laptop.org.au wrote: On 24 January 2013 08:11, Ajay Garg a...@activitycentral.com wrote: On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg a...@activitycentral.comwrote: On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard gonz...@laptop.orgwrote:

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 a...@activitycentral.com wrote: On Thu, Jan 24, 2013 at 7:37 PM, Ajay Garg a...@activitycentral.comwrote: On Thu, Jan 24, 2013 at 7:36 PM, Gonzalo Odiard gonz...@laptop.orgwrote: So, it seems that just

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 p...@laptop.org 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 --

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 martin.langh...@gmail.comwrote: On Thu, Jan 24, 2013 at 10:13 AM, Paul Fox p...@laptop.org 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

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

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 ___ Devel

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 gonz...@laptop.org 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

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 --query

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 a...@activitycentral.com 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

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 walter.ben...@gmail.com wrote: On Wed, Jan 23, 2013 at 1:20 AM, Ajay Garg a...@activitycentral.com 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