<br><br><div class="gmail_quote">On Mon, Feb 18, 2013 at 7:58 PM, Paul Fox <span dir="ltr"><<a href="mailto:pgf@laptop.org" target="_blank">pgf@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">ajay wrote:<br>
> Thanks Gary and Paul.<br>
> I tested "Moon" on build 28 on XO-4; and the rotation caused the canvas to<br>
> be redrawn appropriately.<br>
><br>
<br>
</div>okay. was that unexpected?<br><br></blockquote><div><br>No.. just wanted to state it explicitly that it worked :)<br><br><br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im"><br>
><br>
> Paul,<br>
><br>
> I have two queries ::<br>
><br>
> a)<br>
> In "Moon"'s code (as already told by Gary), the "size-changed" signal is<br>
> used to call the callback that redraws the canvas.<br>
> So, in this case, is the "size-changed" signal a result of the<br>
> rotate-key-event (KEY_SWITCHVIDEOMODE), or "size-changed" signal is<br>
> generated via some another mechanism?<br>
<br>
</div>i don't know.<br></blockquote><div><br>ok :)<br><br><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im"><br>
><br>
> b)<br>
> Is the behaviour of olpc-kbdshim the same for a XO-1.75 and a XO-4 (as far<br>
> as "that code is written to either run a command<br>
> attached to the event (currently /usr/bin/olpc-rotate), or pass the event<br>
> through, but not both" is concerned)?<br>
<br>
</div>yes. and for XO-1 and XO-1.5 as well.<br></blockquote><div><br>Great.. thanks !!!<br><br><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
paul<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
><br>
><br>
><br>
> On Mon, Feb 18, 2013 at 7:18 PM, Paul Fox <<a href="mailto:pgf@laptop.org">pgf@laptop.org</a>> wrote:<br>
><br>
> > ajay wrote:<br>
> > > Hi all.<br>
> > ><br>
> > > Is it possible to hack the "rotate" key in XO?<br>
> > ><br>
> > > I wish to have the following working ::<br>
> > ><br>
> > > * Press the "rotate" key. This will rotate the window.<br>
> > > * Just after that, have a callback function being called in "sugar"<br>
> > > (this of course being possible only if the "rotate" key could be<br>
> > hacked).<br>
> > ><br>
> ><br>
> > as gary points out, the rotate key event (KEY_SWITCHVIDEOMODE) is<br>
> > caught by olpc-kbdshim. that code is written to either run a command<br>
> > attached to the event (currently /usr/bin/olpc-rotate), or pass the<br>
> > event through, but not both.<br>
> ><br>
> > if there were consensus that running the command _and_ passing the<br>
> > event was safe and reasonable, maybe we could do that, though it<br>
> > doesn't feel right to me.<br>
> ><br>
> > but i also think gary's on the right track by suggesting you look at<br>
> > other window events to learn of the rotation changes -- after all,<br>
> > rotation doesn't require a button press. it can be caused by manual<br>
> > xrandr invocation, or simply by someone typing "olpc-rotate left".<br>
> ><br>
> > paul<br>
> ><br>
> > ><br>
> > ><br>
> > > I will be thankful for any pointers.<br>
> > ><br>
> > ><br>
> > ><br>
> > > Regards,<br>
> > ><br>
> > > Ajay Garg<br>
> > > Dextrose Developer<br>
> > > Activity Central: <a href="http://activitycentral.com" target="_blank">http://activitycentral.com</a><br>
> > > part 2 text/plain 129<br>
> > > _______________________________________________<br>
> > > Devel mailing list<br>
> > > <a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
> > > <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
> ><br>
> > =---------------------<br>
> > paul fox, <a href="mailto:pgf@laptop.org">pgf@laptop.org</a><br>
> > _______________________________________________<br>
> > Devel mailing list<br>
> > <a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
> > <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> Regards,<br>
><br>
> Ajay Garg<br>
> Dextrose Developer<br>
> Activity Central: <a href="http://activitycentral.com" target="_blank">http://activitycentral.com</a><br>
<br>
=---------------------<br>
paul fox, <a href="mailto:pgf@laptop.org">pgf@laptop.org</a><br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font face="arial, sans-serif">Regards,<br><br>Ajay Garg</font><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font face="arial, sans-serif">Dextrose Developer</font><br style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Activity Central: </span><a href="http://activitycentral.com/" style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">http://activitycentral.com</a>