After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689724 - alternate-tab: Re-use window-switcher in gnome-shell
alternate-tab: Re-use window-switcher in gnome-shell
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-12-05 18:37 UTC by Florian Müllner
Modified: 2012-12-11 16:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
alternate-tab: Re-use window-switcher in gnome-shell (21.79 KB, patch)
2012-12-05 18:37 UTC, Florian Müllner
none Details | Review
alternate-tab: Re-use window-switcher in gnome-shell (22.39 KB, patch)
2012-12-05 22:25 UTC, Florian Müllner
needs-work Details | Review
alternate-tab: Re-use window-switcher in gnome-shell (22.49 KB, patch)
2012-12-05 22:40 UTC, Florian Müllner
none Details | Review
alternate-tab: Re-use window-switcher in gnome-shell (22.49 KB, patch)
2012-12-08 23:15 UTC, Debarshi Ray
committed Details | Review

Description Florian Müllner 2012-12-05 18:37:33 UTC
Now that we have a built-in window switcher, let's use the alternate-tab extension to just take over the default alt-tab keybinding.
Comment 1 Florian Müllner 2012-12-05 18:37:35 UTC
Created attachment 230802 [details] [review]
alternate-tab: Re-use window-switcher in gnome-shell

gnome-shell now provides its own traditional window switcher using
a dedicated keybinding, so update the extension to just take over
the default application-based switchers as well.
Comment 2 Florian Müllner 2012-12-05 22:25:14 UTC
Created attachment 230844 [details] [review]
alternate-tab: Re-use window-switcher in gnome-shell

Don't break distcheck :(
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-12-05 22:37:40 UTC
Review of attachment 230844 [details] [review]:

::: extensions/alternate-tab/extension.js
@@ +56,2 @@
     setKeybinding('switch-group', Lang.bind(Main.wm, Main.wm._startAppSwitcher));
     setKeybinding('switch-windows-backward', Lang.bind(Main.wm, Main.wm._startAppSwitcher));

missed this?
Comment 4 Florian Müllner 2012-12-05 22:40:07 UTC
Created attachment 230845 [details] [review]
alternate-tab: Re-use window-switcher in gnome-shell

Yeah ...
Comment 5 Debarshi Ray 2012-12-08 23:10:57 UTC
Typo alert:
-const Clutter = imports.gi.Clutter;

Clutter.Left and Clutter.Right are being used, so Clutter is needed.
Comment 6 Debarshi Ray 2012-12-08 23:15:20 UTC
Created attachment 231046 [details] [review]
alternate-tab: Re-use window-switcher in gnome-shell

Fixing aforementioned typo.
Comment 7 Giovanni Campagna 2012-12-10 22:24:49 UTC
Review of attachment 231046 [details] [review]:

I was thinking actually of dropping alternate-tab, given it is in core now, but given we're using extensions as a cheap way to override settings this one is probably fine.

::: extensions/alternate-tab/extension.js
@@ +50,3 @@
+    setKeybinding('switch-group', Lang.bind(Main.wm, Main.wm._startWindowSwitcher));
+    setKeybinding('switch-applications-backward', Lang.bind(Main.wm, Main.wm._startWindowSwitcher));
+    setKeybinding('switch-group-backward', Lang.bind(Main.wm, Main.wm._startWindowSwitcher));

Uhm... you're still binding Main.wm._startWindowSwitcher, that is, you're not changing the handler.
Comment 8 Florian Müllner 2012-12-11 06:39:46 UTC
(In reply to comment #7)
> Uhm... you're still binding Main.wm._startWindowSwitcher, that is, you're not
> changing the handler.

I am, from Main.wm._start*App*Switcher to Main.wm._start*Window*Switcher.
Comment 9 Giovanni Campagna 2012-12-11 15:25:35 UTC
Review of attachment 231046 [details] [review]:

Ah, obviously...
Comment 10 Florian Müllner 2012-12-11 16:57:13 UTC
Attachment 231046 [details] pushed as 61f86a3 - alternate-tab: Re-use window-switcher in gnome-shell