Removes backward compatibility to Gnome 3.16 and 3.18

This commit is contained in:
spin83
2017-05-14 20:11:09 +02:00
parent 93bfb48f38
commit 3b0a8d43e1
3 changed files with 4 additions and 6 deletions

View File

@@ -9,7 +9,8 @@ in dynamic fashion, no restart needed.
Versions
========
* Branch [master](https://github.com/spin83/multi-monitors-add-on/tree/master) contains extension for GNOME 3.16, 3.18, 3.20, 3.22 and 3.24
* Branch [master](https://github.com/spin83/multi-monitors-add-on/tree/master) contains extension for GNOME 3.20, 3.22 and 3.24
* Branch [gnome-3-16_3-18](https://github.com/spin83/multi-monitors-add-on/tree/gnome-3-16_3-18) contains extension for GNOME 3.16 and 3.18
* Branch [gnome-3-14](https://github.com/spin83/multi-monitors-add-on/tree/gnome-3-14) contains extension for GNOME 3.14
* Branch [gnome-3-10](https://github.com/spin83/multi-monitors-add-on/tree/gnome-3-10) contains extension for GNOME 3.10

View File

@@ -1,5 +1,5 @@
{
"shell-version": ["3.16", "3.18", "3.20", "3.22", "3.24"],
"shell-version": ["3.20", "3.22", "3.24"],
"uuid": "multi-monitors-add-on@spin83",
"name": "Multi Monitors Add-On",
"settings-schema": "org.gnome.shell.extensions.multi-monitors-add-on",

View File

@@ -113,8 +113,6 @@ const MultiMonitorsThumbnailsBox = new Lang.Class({
_init: function(monitorIndex) {
this._monitorIndex = monitorIndex;
this._currentVersion = Config.PACKAGE_VERSION.split('.');
this.actor = new Shell.GenericContainer({ reactive: true,
style_class: 'workspace-thumbnails',
@@ -155,8 +153,7 @@ const MultiMonitorsThumbnailsBox = new Lang.Class({
this.actor.connect('button-press-event', function() { return Clutter.EVENT_STOP; });
this.actor.connect('button-release-event', Lang.bind(this, this._onButtonRelease));
if (this._currentVersion[0]==3 && this._currentVersion[1]>18)
this.actor.connect('touch-event', Lang.bind(this, this._onTouchEvent));
this.actor.connect('touch-event', Lang.bind(this, this._onTouchEvent));
this._showingId = Main.overview.connect('showing', Lang.bind(this, this._createThumbnails));
this._hiddenId = Main.overview.connect('hidden', Lang.bind(this, this._destroyThumbnails));