From kwin Fri Mar 30 06:23:06 2012 From: "Commit Hook" Date: Fri, 30 Mar 2012 06:23:06 +0000 To: kwin Subject: Re: Review Request: Global Shortcut support for KWin Scripts Message-Id: <20120330062306.17686.8358 () vidsolbach ! de> X-MARC-Message: https://marc.info/?l=kwin&m=133308867631190 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============3153858892451633970==" --===============3153858892451633970== Content-Type: multipart/alternative; boundary="===============4760910938473536260==" --===============4760910938473536260== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/104400/#review11994 ----------------------------------------------------------- This review has been submitted with commit b0274fdc66e5bba1e1146c2f9de2f215= 2f44bcbb by Martin Gr=C3=A4=C3=9Flin to branch master. - Commit Hook On March 25, 2012, 8:03 a.m., Martin Gr=C3=A4=C3=9Flin wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/104400/ > ----------------------------------------------------------- > = > (Updated March 25, 2012, 8:03 a.m.) > = > = > Review request for kwin. > = > = > Description > ------- > = > Scripts can register callbacks for global shortcuts. > = > Needs to be made available to scripted effects, too. > = > = > Diffs > ----- > = > kwin/scripting/scriptedeffect.h b0080ba = > kwin/scripting/scriptedeffect.cpp cc0cf73 = > kwin/scripting/scripting.h 67184b4 = > kwin/scripting/scripting.cpp b5b1a2e = > kwin/scripting/scriptingutils.h PRE-CREATION = > = > Diff: http://git.reviewboard.kde.org/r/104400/diff/ > = > = > Testing > ------- > = > var callback =3D function() { > print("Global Shortcut triggered in script"); > }; > = > registerShortcut("Test", "This is the title to test", "Ctrl+Alt+7", callb= ack); > = > = > Thanks, > = > Martin Gr=C3=A4=C3=9Flin > = > --===============4760910938473536260== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
This is an automatically generated e-mail. To reply, visit: http://git.revie= wboard.kde.org/r/104400/

This revie=
w has been submitted with commit b0274fdc66e5bba1e1146c2f9de2f2152f44bcbb b=
y Martin Gr=C3=A4=C3=9Flin to branch master.

- Commit


On March 25th, 2012, 8:03 a.m., Martin Gr=C3=A4=C3=9Flin wrote:

Review request for kwin.
By Martin Gr=C3=A4=C3=9Flin.

Updated March 25, 2012, 8:03 a.m.

Descripti= on

Scripts can register callbacks for global shortcuts.

Needs to be made available to scripted effects, too.

Testing <= /h1>
var callback =3D function() {
  print("Global Shortcut triggered in script");
};

registerShortcut("Test", "This is the title to test", &=
quot;Ctrl+Alt+7", callback);

Diffs=

  • kwin/scripting/scriptedeffect.h (b0080ba)<= /span>
  • kwin/scripting/scriptedeffect.cpp (cc0cf73= )
  • kwin/scripting/scripting.h (67184b4)
  • kwin/scripting/scripting.cpp (b5b1a2e)
  • kwin/scripting/scriptingutils.h (PRE-CREAT= ION)

View Diff

--===============4760910938473536260==-- --===============3153858892451633970== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kwin mailing list kwin@kde.org https://mail.kde.org/mailman/listinfo/kwin --===============3153858892451633970==--