From f1a4bac10df958459c12962e9354576c05747c35 Mon Sep 17 00:00:00 2001 From: jderose9 Date: Fri, 23 Dec 2016 17:08:34 -0500 Subject: [PATCH] allow show/hide of show apps button --- taskbar.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/taskbar.js b/taskbar.js index db591ba..af4c805 100644 --- a/taskbar.js +++ b/taskbar.js @@ -271,6 +271,16 @@ const taskbar = new Lang.Class({ this._container.add_actor(this._showAppsIcon); + if (!this._dtpSettings.get_boolean('show-show-apps-button')) + this.hideShowAppsButton(); + + this._dtpSettings.connect('changed::show-show-apps-button', Lang.bind(this, function() { + if (this._dtpSettings.get_boolean('show-show-apps-button')) + this.showShowAppsButton(); + else + this.hideShowAppsButton(); + })); + let rtl = Clutter.get_default_text_direction() == Clutter.TextDirection.RTL; this.actor = new St.Bin({ child: this._container, y_align: St.Align.START, x_align:rtl?St.Align.END:St.Align.START @@ -341,7 +351,6 @@ const taskbar = new Lang.Class({ Lang.bind(this, this._syncShowAppsButtonToggled) ] ); - }, destroy: function() { @@ -1075,7 +1084,7 @@ const taskbar = new Lang.Class({ // onComplete to avoid ugly flashing of original icons. let view = Main.overview.viewSelector.appDisplay._views[visibleView].view; let grid = view._grid; - view.animate(IconGrid.AnimationDirection.OUT, Lang.bind(this, function() { + view.animate(IconGrihideShowAppsButtond.AnimationDirection.OUT, Lang.bind(this, function() { Main.overview.viewSelector._appsPage.hide(); Main.overview.hide(); selector._showAppsButton.checked = false;